![H3C S5500-EI series Configuration Manual Download Page 26](http://html2.mh-extra.com/html/h3c/s5500-ei-series/s5500-ei-series_configuration-manual_3726960026.webp)
9
NOTE:
•
When you configure a static route, the static route does not take effect if you specify the next hop address
first and then configure it as the IP address of a local interface, such as Ethernet interface and VLAN
interface.
•
If you do not specify the preference when you configure a static route, the default preference will be
used. Reconfiguring the default preference applies only to newly created static routes.
•
You can flexibly control static routes by configuring tag values and using the tag values in the routing
policy.
•
If the destination IP address and mask are both configured as 0.0.0.0 with the ip route-static command,
then the route is the default route.
•
For detailed information about track, see
High Availability Configuration Guide.
Configuring BFD for static routes
NOTE:
Only the S5500-E1 Switch Series supports BFD for static routes.
Bidirectional forwarding detection (BFD) provides a general-purpose, standard, medium-, and
protocol-independent fast failure detection mechanism. It can uniformly and quickly detect the failures of
the bidirectional forwarding paths between two routers for protocols, such as routing protocols. For more
information about BFD, see
High Availability Configuration Guide
.
A dynamic routing protocol notifies BFD of its neighbor information. BFD uses such information to
establish sessions with neighbors by sending BFD control packets. Static routing has no neighbor
discovery mechanism. This section describes how static routing implements BFD.
BFD control packet mode
To use BFD control packets for bidirectional detection between two devices, you must enable BFD control
packet mode for each device’s static route destined to the peer.
To configure a static route and enable BFD control packet mode for it, specify an outbound 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 static route.
Follow these steps to configure a static route with BFD control packet mode enabled (direct session):
To do…
Use the command…
Remarks
Enter system view
system-view
—
ip route-static
dest-address
{
mask
|
mask-length
}
interface-type
interface-number next-hop-address
bfd
control-packet
[
preference
preference-value
] [
tag
tag-value
] [
description
description-text
]
Configure a static route
and enable BFD control
packet mode for it
ip route-static vpn-instance
s-vpn-instance-name
&<1-6>
dest-address
{
mask
|
mask-length
}
interface-type
interface-number next-hop-address
bfd
control-packet
[
preference
preference-value
] [
tag
tag-value
] [
description
description-text
]
Required
Use either
command