2-3
preference
preference-value
: Specifies the preference of the static route, which is in the range
of 1 to 255 and defaults to 60.
tag
tag-value
: Sets a tag value for the static route from 1 to 4294967295. The default is 0. Tags
of routes are used in routing policies to control routing.
description description-text
: Configures a description for the static route, which consists of 1 to
60 characters, including special characters like space, but excluding
?
.
bfd:
Enable the BFD (bidirectional forwarding detection) function to detect reachability of the
static route’s next hop. Once the next hop is unreachable, the system will switch to a backup
route.
control-packet
: Implements BFD in the control packet mode.
echo-packet
: Implements BFD in the echo packet mode.
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 1 to 1024.
Description
Use the
ip route-static
command to configure a unicast static route.
Use the
undo ip route-static
command to delete a unicast static route.
When configuring a unicast static route, follow these guidelines:
1) If the destination IP address and the mask are both 0.0.0.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.
2) You can implement different routing policies by tuning route preferences. For example, to
enable multiple routes to the same destination address to share load, assign the same
preference for the routes; to enable them to back up one another, assign different
preferences for them.
3) You can specify the output interface or the next hop address of the static route as needed.
The next hop address cannot be the IP address of a local interface; otherwise, the route
configuration will not take effect. 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. Note that:
z
If the output interface is a Null 0 interface, there is no need to configure the next hop
address.
z
It is not recommended to specify a broadcast interface (such as an Ethernet interface or a
VLAN interface) as the output interface for a static route, because a broadcast interface
may have multiple next hops. If you have to do so, you must specify the corresponding next
hop of the interface at the same time.
z
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.
Related commands:
ip route-static default-preference
and
display ip routing-table
in
IP
Routing Basics Configuration Commands
in the
Layer 3 - IP Routing Command Reference
.