Junos OS

Expand all | Collapse all

looking for a similar command like "show bgp policy" in junos

Jump to Best Answer
  • 1.  looking for a similar command like "show bgp policy" in junos

    Posted 10-22-2017 21:56

    Hi, there

    In Cisco IOSXR, you can attach a route-policy to a "show bgp" command so you can see how the route-policy is filtering or actioning. It's a very handy command so you can preview how the route-policy is affecting the import/export routes before you really apply the config to the peer.

    Is there any similar function in Junos? 

    https://www.cisco.com/c/en/us/td/docs/ios_xr_sw/iosxr_r3-7/routing/command/reference/rr37bgp.html#wp2240737

     

    If not, what's the best way on Junos i can check what prefix the policy has been filtering or rejecting or passing. Thanks



  • 2.  RE: looking for a similar command like "show bgp policy" in junos
    Best Answer

    Posted 10-22-2017 23:42

    Not sure, if an exact equivalent command is there to use (that without activating modifications show what RIB-OUT would be).

     

    But there is a test policy command that shows if pattern defined in policy is matching. Check if this helps in any way.

     

    https://www.juniper.net/documentation/en_US/junos/topics/usage-guidelines/policy-testing-routing-policies.html 



  • 3.  RE: looking for a similar command like "show bgp policy" in junos

    Posted 10-23-2017 22:33

    thanks. The test policy command gives some sort of similar function.

    A side question. Any command on Junos that is similar to XR "show bgp bestpath-compare " that shows why a path is selected as best-path?

     

    Thanks



  • 4.  RE: looking for a similar command like "show bgp policy" in junos

    Posted 10-24-2017 02:16
    ru


  • 5.  RE: looking for a similar command like "show bgp policy" in junos

    Posted 10-24-2017 02:21
    You may try "run show route <Ip address / prefix> extensive ...
    also u may search the reason in that...

    One more command u may try is

    run show route protocol bgp <ip/prefix> extensive..

    HTH,

    Pl mark this solution as accepted if it resolved u r issue..Kudos would be appreciated..


  • 6.  RE: looking for a similar command like "show bgp policy" in junos

    Posted 10-23-2017 01:41