8
Step Command
Remarks
2.
Configure a static
route.
•
Approach 1:
ip
route-static
dest-address
{
mask
|
mask-length
} {
next-hop-address
[
track
track-entry-number
] |
interface-type
interface-number
[
next-hop-address
] |
vpn-instance
d-vpn-instance-name
next-hop-address
[
track
track-entry-numbe
r ] }
[
preference
preference-value
] [
tag
tag-value ]
[
permanent
] [
description
description-text
]
•
Approach 2:
ip route-static
vpn-instance
s-vpn-instance-nam
e&<1-6>
dest-address
{
mask
|
mask-length
} {
next-hop-address
[
public
] [
track
track-entry-number
] |
interface-type interface-number
[
next-hop-address
] |
vpn-instance
d-vpn-instance-name next-hop-address
[
track
track-entry-number
] } [
preference
preference-value
] [
tag
tag-value
]
[
permanent
] [
description
description-text
]
Use either approach.
By default,
preference
for
static routes is 60,
tag
is 0,
and no description
information is configured.
Do not specify the
permanent
and
track
keywords
simultaneously.
If the output interface is down,
the permanent static route is
still active.
3.
Configure the
default preference
for static routes.
ip route-static default-preference
default-preference-value
Optional.
60 by default.
Configuring BFD for static routes
NOTE:
Only the A5500 EI 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 mode
To use BFD bidirectional control detection between two devices, you must enable BFD control mode for
each device's static route destined to the peer.
To configure a static route and enable BFD control mode for it, specify an output interface and a direct
next hop, or specify an indirect next hop and a specific BFD packet source address for the static route.
To configure BFD control mode for a static route (direct next hop):
Step Command
Remarks
1.
Enter system view.
system-view
N/A