Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Chapter 1 Static Routing Configuration Commands
1-3
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:
z
For a NULL0 or loopback interface, if the output interface has already been
configured, there is no need to configure the next hop address.
z
It is not recommended to specify a broadcast interface (such as 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.
Related commands:
display ip routing-table
,
ip route-static default-preference
.
Note:
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.
Examples
# Configure a static route, whose destination address is 1.1.1.1/24, next hop address is
2.2.2.2, tag value is 45, and description information is
for internet & intranet
.
<Sysname> system-view
[Sysname] ip route-static 1.1.1.1 24 2.2.2.2 tag 45 description for internet
& intranet
1.1.3 ip route-static default-preference
Syntax
ip route-static default-preference default-preference-value
undo ip route-static default-preference
View
System view
Parameters
default-preference-value
: Default preference for static routes, which is in the range of 1
to 255.