Ip route vrf <vrf-name>
Use this command to configure a tracking-id to ipv4 static route in non-default vrf.
Use the no form of this command to delete the tracking id
Command Syntax
ip route vrf <vrf-name> A.B.C.D/M (A.B.C.D|IFNAME){<track <1-500>}
Parameters
vrf-name
Vrf name
A.B.C.D/M
Destination prefix with subnet in ipv4 format
A.B.C.D
Gateway address in ipv4 format
IFNAME
Gateway address in interface name format
<1-500>
Identifier for the tracked object
Command Mode
Configuration mode
Applicability
This command was introduced in OcNOS version 5.1.
Example
#configure terminal
(config)# ip route vrf vrf1 40.1.1.0/24 eth1 track 10
(config-object-track)#commit
(config)#no ip route vrf vrf1 40.1.1.0/24 eth1 track 10
(config)#commit
Last modified date: 10/16/2023