H3C S5120-SI Series Command Reference Manual page 347

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

3)
When configuring a static route, you can specify the output interface or the next hop address based
on the actual requirement. Note that the next hop address must not be the IP address of the local
interface; otherwise, the route configuration will not take effect. For interfaces that support network
address to link layer address resolution or point-to-point interfaces, you can specify the output
interface or next hop address. When specifying the output interface, note that:
For a Null 0 interface, if the output interface has already been configured, there is no need to
configure the next hop address.
If you specify a broadcast interface (such as a VLAN interface) as the output interface, you must
specify the corresponding next hop of the interface at the same time.
Related commands: ip route-static default-preference and display ip routing-table in IP Routing
Basics Commands.
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 VLAN interface.
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.
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, and
description information is for internet & intranet.
<Sysname> system-view
[Sysname] ip route-static 1.1.1.1 24 2.2.2.2 description for internet & intranet
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.
1-3

Advertisement

Table of Contents
loading

Table of Contents