cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
615
Views
0
Helpful
5
Replies

MPLS-BGP L3 VPN Question

n.nandrekar
Level 4
Level 4

Hi!

Can anyone tell me how I could see all the prefixes imported/exported by particular RT? Is there any command which will show me which prefixes are imported into the VRF as a result of 1 of the many configured RTs for that VRF?

Thanks.

Reg,

Niranjan

1 Accepted Solution

Accepted Solutions

Hi Niranjan,

you can define an extended community list and match on that. Example:

R1(config)#ip extcommunity-list expanded myRTlist permit 65000:1

R1#show bgp vpnv4 unicast [all|rd RD| vrf VRFNAME] extcommunity-list myRTlist

OR

R1#show ip bgp vpnv4 all extcommunity-list myRTlist

This will filter based on RT, which is especially helpful on route-reflectors, where no VRFs are configured.

Hope this helps!

Regards, Martin

View solution in original post

5 Replies 5

mikedavi1
Level 1
Level 1

Imported into vrf xxx:

show ip bgp vpn vrf xxx

Exported to a neighbor 1.1.1.1:

show ip bgp vpn all neighbors 1.1.1.1 advertised-routes

HTH,

Mike

Thanks Mike!

These show commands seem fine but they will show all the routes in the VRF table (imported routes) or all routes exported to a neighbour( second command)

What I was looking for is how to see the routes imported/exported by a perticular RT.

eg. I might have 3 different import RTs and also might have different export RTs for the same VRF.

The commands that you suggested would give me the cumulative result. Is there some command using which I could see exactly which routes are imported/exported by a particular RT from a set of RTs that I have configured for the same VRF.

Thanks.

reg, Niranjan

Hi Niranjan,

you can define an extended community list and match on that. Example:

R1(config)#ip extcommunity-list expanded myRTlist permit 65000:1

R1#show bgp vpnv4 unicast [all|rd RD| vrf VRFNAME] extcommunity-list myRTlist

OR

R1#show ip bgp vpnv4 all extcommunity-list myRTlist

This will filter based on RT, which is especially helpful on route-reflectors, where no VRFs are configured.

Hope this helps!

Regards, Martin

Thanks Martin!!!

Sorry I misunderstood what you were looking for. Looks like Martin got you hooked up. He's quite good at that!

I'm partial to the cumulative view in that I can verify that I don't any unwanted routes caused by faulty policy. Not such a big deal when you are just doing RT import/export, but things can get hairy when you are using route-maps on vpnv4 peers or in the vrf.

Anyway, I'm glad you got the answer you needed.

Mike

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: