cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
402
Views
0
Helpful
2
Replies
danielbarri
Beginner

MPLS - Finding a subnet in a jungle of VRF's

How can I keep track off in which VRF a certain subnet can be found.

For ex. I need trace the 172.16.1.0.

1 ACCEPTED SOLUTION

Accepted Solutions

Try using the following command:

- sh ip bgp vpnv4 all x.x.x.x

Here's an example:

PE2#sh ip bgp vpnv4 all 20.20.20.7

BGP routing table entry for 1:1:20.20.20.7/32, version 22

Paths: (1 available, best #1, table v1) <--- v1 is the name of my vrf

Advertised to update-groups:

1

Local

20.0.2.7 from 0.0.0.0 (10.10.10.5)

Origin incomplete, metric 1, localpref 100, weight 32768, valid, sourced, best

Extended Community: RT:1:1,

mpls labels in/out 24/nolabel

PE2#

PE2#sh ip route vrf v1 20.20.20.7

Routing entry for 20.20.20.7/32

Known via "rip", distance 120, metric 1

Redistributing via rip, bgp 1

Advertised by bgp 1

Last update from 20.0.2.7 on Ethernet3/0, 00:00:01 ago

Routing Descriptor Blocks:

* 20.0.2.7, from 20.0.2.7, 00:00:01 ago, via Ethernet3/0

Route metric is 1, traffic share count is 1

PE2#

As you can see the route is in vrf v1 as seen in the first command output.

HTH

View solution in original post

2 REPLIES 2

Try using the following command:

- sh ip bgp vpnv4 all x.x.x.x

Here's an example:

PE2#sh ip bgp vpnv4 all 20.20.20.7

BGP routing table entry for 1:1:20.20.20.7/32, version 22

Paths: (1 available, best #1, table v1) <--- v1 is the name of my vrf

Advertised to update-groups:

1

Local

20.0.2.7 from 0.0.0.0 (10.10.10.5)

Origin incomplete, metric 1, localpref 100, weight 32768, valid, sourced, best

Extended Community: RT:1:1,

mpls labels in/out 24/nolabel

PE2#

PE2#sh ip route vrf v1 20.20.20.7

Routing entry for 20.20.20.7/32

Known via "rip", distance 120, metric 1

Redistributing via rip, bgp 1

Advertised by bgp 1

Last update from 20.0.2.7 on Ethernet3/0, 00:00:01 ago

Routing Descriptor Blocks:

* 20.0.2.7, from 20.0.2.7, 00:00:01 ago, via Ethernet3/0

Route metric is 1, traffic share count is 1

PE2#

As you can see the route is in vrf v1 as seen in the first command output.

HTH

View solution in original post

I testet your tip and it worked fine, thank you.