Why is BGP route not advertised?

There may be several reasons why a BGP route isn’t advertised to its eBGP neighbor in JUNOS. I was doing some tests and noticed that one of my routes isn’t advertised to its neighbor.

Show route indicates that route is also learned via OSPF as well due to my crap topology at the moment:) and doesn’t choose it as BGP best route.

root@JGW3> show route 

inet.0: 27 destinations, 29 routes (27 active, 1 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both     *[OSPF/150] 00:21:41, metric 0, tag 0
                    > to via ge-0/0/2.0
                    [BGP/170] 01:38:26, localpref 100
                      AS path: 8000 I
                    > to via ge-0/0/0.0

inactive-path option also clearly indicates a problem with the preference.

root@JGW3> show route inactive-path extensive

inet.0: 27 destinations, 29 routes (27 active, 1 holddown, 0 hidden) (2 entries, 2 announced)
KRT in-kernel -> {}
Page 0 idx 1 Type 1 val 937ce38
    Nexthop: Self
    AS path: [4000] 8000 I
Path from Vector len 4.  Val: 1
         BGP    Preference: 170/-101
                Next hop type: Router, Next hop index: 563
                Address: 0x9348520
                Next-hop reference count: 2
                Next hop: via ge-0/0/0.0, selected
                Inactive reason: Route Preference
                Local AS:  4000 Peer AS:  8000
                Age: 1:34:14
                Task: BGP_8000.
                Announcement bits (1): 3-BGP_RT_Background
                AS path: 8000 I
                Localpref: 100
                Router ID:

If a route isn’t advertised, it is good to check with the detail option!

About: rtoodtoo

Worked for more than 10 years as a Network/Support Engineer and also interested in Python, Linux, Security and SD-WAN // JNCIE-SEC #223 / RHCE / PCNSE

You have a feedback?

Discover more from RtoDto.net

Subscribe now to keep reading and get access to the full archive.

Continue reading