Routing

Expand all | Collapse all

question about bgp advertise-inactive

Jump to Best Answer
  • 1.  question about bgp advertise-inactive

    Posted 03-03-2021 23:50
    I have three routers

    R1 --------- R2 --------R3

    On R2, I have the following:
    root@R2# run show route 10.150.0.99

    inet.0: 19 destinations, 21 routes (19 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    10.150.0.99/32 *[Static/5] 00:45:51
    > to 10.1.2.2 via ge-0/0/3.0
    [BGP/170] 00:44:01, localpref 100, from 10.150.0.99
    AS path: 9999 I, validation-state: unverified
    > to 10.1.2.2 via ge-0/0/3.0

    set protocols bgp group ToDC type external
    set protocols bgp group ToDC local-address 172.16.200.176
    set protocols bgp group ToDC advertise-inactive
    set protocols bgp group ToDC export Exp2BGP
    set protocols bgp group ToDC peer-as 10458
    set protocols bgp group ToDC neighbor 192.168.0.2 multihop

    root@R2# run show route advertising-protocol bgp 192.168.0.2

    [edit]

    Why is the inactive route not advertised to R3?

    thanks a lot in advance !!


  • 2.  RE: question about bgp advertise-inactive

     
    Posted 03-04-2021 05:59
    The advertise inactive option will only advertise inactive routes that do not have a corresponding active one.  In your case there is a static route too so that is the one that would be advertised if your export policy were to pick up static routes.

    ------------------------------
    Steve Puluka BSEET - Juniper Ambassador
    IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
    http://puluka.com/home
    ------------------------------



  • 3.  RE: question about bgp advertise-inactive

    Posted 03-04-2021 09:36
    I do not have any export policy. 
    10.150.0.99/32 is the loopback interface in R1, R2 has a static route pointing to 10.150.0.99/32 for BGP.  R1 advertises 10.150.0.99/32 in BGP.
    I assume R2 will advertise 10.150.0.99/32 to R3 if I use advertise-inactive. 

    I know I miss something here, but do not know what.

    thanks a lot !!


  • 4.  RE: question about bgp advertise-inactive

     
    Posted 03-04-2021 08:47
    Do you have EBGP between the 3 routers? 

    ------------------------------
    Yasmin Lara
    Juniper Ambassador
    JNCIE-SP, JNCIE-ENT, JNCIE-DC, JNCIE-SEC
    JNCDS-DC, JNCIA-DevOps, JNCIP-CLOUD, CCNP-ENT
    ------------------------------



  • 5.  RE: question about bgp advertise-inactive

    Posted 03-04-2021 09:39
    Yes.
    R1 peers with R2 with its loopback 10.150.0.99/32. R1 also advertises 10.150.0.99/32 in BGP via export policy.
    R2 has a static route pointing to 10.150.0.99/32 for BGP.

    I assume R2 would advertise 10.150.0.99/32 to R3 if I use advertise-inactive.

    I know I miss something here, but do not know what.

    thanks so much !!


  • 6.  RE: question about bgp advertise-inactive
    Best Answer

     
    Posted 03-04-2021 09:30
    I checked your config again, and the session R2 <=> R3 seems to be EBGP so it should work. 

    How does you export policy Exp2BGP look like? 



    Regards, 

    ------------------------------
    Yasmin Lara
    Juniper Ambassador
    JNCIE-SP, JNCIE-ENT, JNCIE-DC, JNCIE-SEC
    JNCDS-DC, JNCIA-DevOps, JNCIP-CLOUD, CCNP-ENT
    ------------------------------



  • 7.  RE: question about bgp advertise-inactive

    Posted 03-04-2021 09:42
    thanks so so much.
    That export policy causes the issue. It has a reject at last.

    After I removed it, it worked fine.

    thanks a lot again !!