05-31-2023
05:08 AM
- last edited on
06-22-2023
12:38 AM
by
Translator
I 've a router configured with multiple VRF's, I want to look for a particular subnet is lying on which VRF on the router, Is there any command to look for a particular
subnet /Prefix
onto a particular VRF on the router.
Solved! Go to Solution.
05-31-2023
05:30 AM
- last edited on
07-14-2023
04:15 AM
by
Translator
Hi
The commands may vary depending on the platform. But you can check on the SVI directly or interface L3 and see which vrf is assigned to it
You can also check on the VRF routing table with the command
show ip route vrf
<vrf name> | incluse <subnet you are looking for>
If you have many VRF use this command instead
show ip route vrf *
| in <subnet you are looking for>
show ip route vrf
<vrf name>
05-31-2023 05:27 AM - edited 06-20-2023 03:51 AM
thanks
MHM
05-31-2023
05:30 AM
- last edited on
07-14-2023
04:15 AM
by
Translator
Hi
The commands may vary depending on the platform. But you can check on the SVI directly or interface L3 and see which vrf is assigned to it
You can also check on the VRF routing table with the command
show ip route vrf
<vrf name> | incluse <subnet you are looking for>
If you have many VRF use this command instead
show ip route vrf *
| in <subnet you are looking for>
show ip route vrf
<vrf name>
05-31-2023
07:00 AM
- last edited on
07-14-2023
04:16 AM
by
Translator
Hi @Flavio Miranda ,
If you want to see the VRF name, you would need to add the following to your suggested command:
show ip route vrf *
| in <subnet you are looking for>|Routing Table:
Regards,
05-31-2023 07:10 AM
@Harold Ritter Thank you very much.
05-31-2023
05:33 AM
- last edited on
07-14-2023
04:17 AM
by
Translator
Hello @Arvind kumar,
With MPLS/L3VPN we can see for a subnet the vrf(s) attached to it:
#sh bgp vpnv4 unicast all A.B.C.D
But with tradionnal vrf confguration on a router you can not see for a particular subnet on which VRF is lying. You need to know the vrf name and check the routing table attached to this vrf!
05-31-2023 06:48 AM
It is possible the same subnet is in one or more VRFs.
06-20-2023 03:50 AM
that same in my mind that why I suggest to him use the interface number not depend on routing table.
BUT he select easy answer, may be he dont use same subnet in multi VRF.
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