SRX

last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  viewing unfiltered bgp routes?

    Posted 10-26-2016 19:44

    On an SRX running 12.3, what is the command to view raw unfiltered BPG routes as advertised by our peers?  "show route protocol bgp" only gives you the table entries after route filtering has been applied.



  • 2.  RE: viewing unfiltered bgp routes?

     
    Posted 10-26-2016 20:12

    show route receive-protocol bgp <neighbor-address>  is the command to view raw unfiltered BPG routes as advertised by our peers

    Eg show route receive-protocol bgp 1.1.1.1 (here 1.1.1.1 is the bgp peer-address)

     

    More info on the command:

     

     

    https://www.juniper.net/documentation/en_US/junos14.1/topics/reference/command-summary/show-route-receive-protocol.html

     

    The output displays the selected routes and the attributes with which they were received, but does not show the effects of import policy on the routing attributes.

     

    Here are  more explanation on Table's of bgp:

     

     

     

    Adjacency-RIB-IN: Contains all received routes from each peer. The Adjacency-RIB-In tables are the pre-policy tables, meaning that the routes in these tables have not been filtered or modified by routing policies. An Adjacency-RIB-In table is created on the local router for each established BGP peer. All routes received from the peer are placed in the appropriate memory table. There’s one notable exception to this rule: Routes containing an AS Path loop are immediately discarded by the local route

     

    Command : show route receive-protocol bgp <neighbor-address>


    RIB-LOCAL: Contains routes the local router uses to forward traffic. The Local-RIB tables are the post-policy tables. Even though some vendor may implement 3 different routing table, Junipers implementation use the local inet.0 as the BGP Local-RIB

     

    Command : show route protocol bgp

     


    Adjacency-RIB-OUT: Contains all advertised routes sent to each peer and are placed in the appropriate memory table. In other words, a BGP router advertises only routes that it is currently using to forward data traffic. By default, all Local-RIB routes are placed in each Adjacency-RIB-OUT

     

    Command :show route advertising-protocol bgp <neighbor-address>

     

     

    Please mark my Solution as accepted(under Options drop down menu) , as it solves your question



  • 3.  RE: viewing unfiltered bgp routes?

    Posted 10-26-2016 21:49

    Thanks for the prompt reply. Thats exactly what i needed. One more question - several routes are flagged as 'hidden' and are therefore not added to the local table. Why might this be?



  • 4.  RE: viewing unfiltered bgp routes?
    Best Answer

     
    Posted 10-26-2016 22:03

    "show route protocol bgp hidden extensive " will display the hidden routes and the reason each of them went hidden.

     

    There can be many reasons. Predominantly it might be due to next hop not reachable . Check your next-hop-self policy,if you had got the routes advertised from an IBGP speaker/peer..

     

    You can also try " show route advertising-protocol bgp <neighbor-address> hidden" if you want to see hidden routes

    specific from a neighbor

     

    "show route hidden " will also displays the hidden routes 

     

     

    Please marked this as accepted solution, if it solves the problem.