Routing
Highlighted
Routing

How to see routes for specific RD?

‎02-19-2017 06:33 PM

Hi

What command can be used to see routes for specific RD in Juniper?

In Cisco, the command is "show bgp vpnv4 unicast rd 22300:1234"

Thank you

4 REPLIES 4
Highlighted
Routing

Re: How to see routes for specific RD?

‎02-19-2017 11:07 PM

Try "show route table bgp.l3vpn.0 match-prefix 22300:1234:*"

Highlighted
Routing

Re: How to see routes for specific RD?

‎02-20-2017 11:13 AM

Yes, I can get it. 

 

Here is topology:

RouterA is connected to routerB and routerC with bgp neighbor. RouterA send route with 22300:1234. By the command "show route table bgp.l3vpn.0 match-prefix 22300:1234:*", routerB can see routes with 22300:1234, but routerC cannot see it and only get the below error message:

"error: No routing tables matching specification"

 

My question is why routerC cannot see it and get the error message? 

 

Thank you

 

 

Highlighted
Routing

Re: How to see routes for specific RD?

[ Edited ]
‎02-20-2017 11:14 AM

Please try this and see if it is going to give you what you are looking for

 

root@Siruis> show route table bgp.l3vpn.0 rd-prefix ?
Possible completions:
  <rd-prefix>          Route distinguisher with ip prefix (rd:prefix)

 

Thanks

Highlighted
Routing

Re: How to see routes for specific RD?

‎02-20-2017 11:24 AM

Hi eesunj,

 

Junos creates the respective routing table once the protocol/family/stanza relative to that table is active on the configuration file. So you only get this kind of error message when you do not have family inet-vpn active on your BGP configuration

Check the below example

 

Without family inet-vpn (Table does not exist)

root@Siruisvmx> show configuration protocols bgp | match inet-vpn


root@Siruisvmx> show route table bgp.l3vp.0
error: No routing tables matching specification.

 

With family inet-vpn (Table exists)

root@Siruisvmx> show configuration protocols bgp | match inet-vpn    
    family inet-vpn {

root@Siruisvmx> show route table bgp.l3vpn.0

 

hope that helps, thanks

Feedback