10-06-2004 10:54 PM
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.
Solved! Go to Solution.
10-07-2004 02:11 AM
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
10-07-2004 02:11 AM
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
10-07-2004 02:56 AM
I testet your tip and it worked fine, thank you.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide