Configuration Procedure
Detecting Reachability
of the Static Route's
Nexthop
Detecting Nexthop
Reachability Through
Track
Configure the link-layer attributes for related interfaces
■
Configure the IP addresses for related interfaces
■
Follow these steps to configure a static route:
To do...
Enter system view
Configure a static
route
Configure the
default preference
for static routes
n
When configuring 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 configuring 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, the route is the default route.
If a static route fails due to a topology change or a fault, the connection will be
interrupted. To improve network stability, the system needs to detect reachability
of the static route's next hop and switch to a backup route once the next hop is
unreachable. The following method is used to detect reachability of the static
route's next hop.
If you specify the nexthop but not outgoing interface when configuring a static
route, you can associate the static route with a track entry to check the static route
validity. When the track entry is positive, the static route's nexthop is reachable
and the static route takes effect; when the track entry is negative, the static route's
nexthop is unreachable and the static route is invalid. For details about track, refer
to
"Track Configuration" on page
Detecting Reachability of the Static Route's Nexthop
Use the command...
system-view
ip route-static dest-address { mask |
mask-length } { gateway-address |
interface-type interface-number
[ gateway-address ] | vpn-instance
d-vpn-instance-name gateway-address }
[ preference preference-value ] [ tag
tag-value ] [ description description-text ]
ip route-static vpn-instance
s-vpn-instance-name&<1-6> dest-address
{ mask | mask-length } { gateway-address
[ public ] | interface-type interface-number
[ gateway-address ] | vpn-instance
d-vpn-instance-name gateway-address }
[ preference preference-value ] [ tag
tag-value ] [ description description-text ]
ip route-static default-preference
default-preference-value
2207.
1009
Remarks
-
Required
By default,
preference for static
routes is 60, tag is 0,
and no description
information is
configured.
Optional
60 by default
Need help?
Do you have a question about the MSR 50 Series and is the answer not in the manual?
Questions and answers