ip|ipv6 vrf
Syntax
[ip|ipv6] route <PREFIX> <SRC-VRF-LOCAL-IFACE>
<SRC-VRF-NEXTHOP-IP> vrf <DST-VRF-NAME>
no [ip|ipv6] route <PREFIX> <SRC-VRF-LOCAL-IFACE>
<SRC-VRF-NEXTHOP-IP> vrf <DST-VRF-NAME>
Description
The IP/IPv6 route command sets the subnet mask, the reachable network interface, the next-hop IP for the reachable network, and the VRF route leak destination.Command context
config
Parameters
<PREFIX>
- The subnet mask (prefix of the network).
<SRC-VRF-LOCAL-IFACE>
The interface which is reachable by the network.
<SRC-VRF-NEXTHOP-IP>
The next-hop IP for the reachable network.
<DST-VRF-NAME>
The VRF route leak destination.
Authority
Administrators
Examples
Using the command, leak the named route "Blue" VRF, using prefix 100.0.0.0/24 which is reachable by the next-hop IP 20.0.0.1 on the interface 1/1/1 from VRF "Red":
switch(config)# ip route 100.0.0.0/24 1/1/1 20.0.0.1 vrf blue