2-4
z
The static route does not take effect if you specify its next hop address first and then
configure the address as the IP address of a local interface, such as a VLAN interface.
z
If route flapping occurs, enabling BFD may worsen it. Be cautious when using BFD. For
details about BFD, see
BFD Configuratio
in the
High Availability Configuration Guide
.
z
To configure track monitoring for an existing static route, simply associate the static route
with a track entry. For a non-existent static route, configure it and associate it with a track
entry.
z
If the track module uses NQA to detect the reachability of a private network static route's
nexthop, the VPN instance number of the static route's nexthop must be identical to that
configured in the NQA test group.
z
If a static route needs route recursion, the associated track entry must monitor the nexthop
of the recursive route instead of that of the static route; otherwise, a valid route may be
mistakenly considered invalid.
Examples
# Configure a static route, whose destination address is 1.1.1.1/24, next hop address is 2.2.2.2,
tag value is 45, and description information is
for internet & intranet
.
<Sysname> system-view
[Sysname] ip route-static 1.1.1.1 24 2.2.2.2 tag 45 description for internet & intranet
# Configure a static route for a VPN instance named
vpn1
: the destination address is 1.1.1.1/16
and the next hop address is 1.1.1.2, which is the address of this VPN instance.
<Sysname> system-view
[Sysname] ip route-static vpn-instance vpn1 1.1.1.1 16 vpn-instance vpn1 1.1.1.2
# Configure a static route: the destination address is 1.1.1.1/24, the output interface is
Vlan-interface 1, and the next hop address is 2.2.2.2, and enable BFD with the echo packet
mode.
<Sysname> system-view
[Sysname] ip route-static 1.1.1.1 24 Vlan-interface 1 2.2.2.2 bfd echo-packet
ip route-static default-preference
Syntax
ip route-static default-preference default-preference-value
undo ip route-static default-preference
View
System view
Default Level
2: System level
Parameters
default-preference-value
: Default preference for static routes, which is in the range of 1 to 255.