track track-entry-number: Associates the static route with a track entry. Use the track-entry-number
argument to specify a track entry number, in the range of 1 to 1024.
Use ip route-static to configure a unicast static route.
Use undo ip route-static to delete a unicast static route.
When you configure a unicast static route, follow these guidelines:
If the destination IP address and the mask are both 0.0.0.0 (or 0), the configured route is a default
route. The default route will be used for forwarding a packet if no route is available for the packet
in the routing table.
Implement different routing policies by tuning route preference. For example, to enable multiple
routes to the same destination address to share load, assign the same preference to the routes; to
enable them to back up one another, assign different preferences to them.
Specify the output interface or the next hop address of the static route as needed.
If the output interface supports network address-to-link layer address resolution or is a
point-to-point interface, you may specify only the interface or the next hop address.
If the output interface is a Null 0 interface, no next hop address is required.
If you specify a broadcast interface (such as a VLAN interface) as the output interface for a
static route, you must specify the corresponding next hop of the interface at the same time.
To implement BFD with the control-packet mode, the remote end must create a BFD session;
otherwise the BFD function cannot work. To implement BFD with the echo-packet mode, the
BFD function can work without the remote end needing to create any BFD session.
To configure a static route and enable BFD control packet mode for it, specify an output
interface and a direct next hop—BFD establishes a direct session, or specify an indirect next
hop and a specific BFD packet source address—BFD establishes an indirect session—for the
The next hop address cannot be the IP address of a local interface (such as a VLAN interface).
Otherwise, the static route does not take effect.
Enabling BFD for a flapping route could worsen the situation. Therefore, use it with caution. For
more information about BFD, see High Availability Configuration Guide.
If the track module uses NQA to detect the reachability of the private network static route's next hop,
the VPN instance number of the static route's next hop must be identical to that configured in the
NQA test group.
If a static route needs route recursion, the associated track entry must monitor the next hop of the
recursive route instead of that of the static route. Otherwise, a valid route may be mistakenly
Do not specify the permanent keyword together with the bfd or track keyword.
Related commands: display ip routing-table and ip route-static default-preference.
# Configure a static route, whose destination address is 188.8.131.52/24, next hop address is 184.108.40.206, tag value
is 45, and description information is for internet & intranet.
[Sysname] ip route-static 220.127.116.11 24 18.104.22.168 tag 45 description for internet & intranet
# Configure a static route for a VPN instance named vpn1: the destination address is 22.214.171.124/16 and the
next hop address is 126.96.36.199, which is the address of this VPN instance.