cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
791
Views
0
Helpful
1
Replies

ip route vrf TEST 10.10.10.0 255.255.255.0 Vlan20 20.20.20.20

humair.amil
Level 1
Level 1

Hi all,

Our layer-3 switch has all routes configured like the one below:

ip route vrf TEST 10.10.10.0 255.255.255.0 Vlan20 20.20.20.20

Usually when you add new router you just use exit interface or the IP address as the next hop. I am confused why in this case the static routes are configured by specifying exit interface as well as a next hop IP address.

Can someone please translate this in plain english? :)

Thanks!

1 Reply 1

Hello humair.amil,

It is highly possible that static route is configured following the guidelines of 'VRF-leaking' statements.

Here a portion of the Cisco documentation:

The same applies if the VRF interface is a LAN interface (for example, Ethernet). The exact configuration command for that is:

    ip route 10.0.2.0 255.255.255.252 Ethernet2/0 10.0.2.2

Note: The IP address configured after the interface name is only used by Address Resolution Protocol (ARP), to know what address to resolve.

- Route Leaking in MPLS/VPN Networks

Is Vlan20 assigned to a specific VRF? Try with 'show running-config interface vlan20'. I am suspecting Vlan20 is not on vrf TEST.

The static route in your L3 Switch should create an entry in the Routing Table vrf TEST for 10.10.10.0/24, it indicates the network is reachable via 20.20.20.20 & outbound interface Vlan20 (both on Global RIB or a different VRF).

I hope this helps.

Best Regards.

Review Cisco Networking products for a $25 gift card