cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5742
Views
5
Helpful
7
Replies

Route VRF

Arvind kumar
Level 1
Level 1

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.

 

 

 

 

 

1 Accepted Solution

Accepted Solutions

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>

View solution in original post

7 Replies 7

thanks 
MHM

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>

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,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

@Harold Ritter  Thank you very much.

M02@rt37
VIP
VIP

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!

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Dan Frey
Cisco Employee
Cisco Employee

It is possible the same subnet is in one or more VRFs.   

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.