Displaying and maintaining static routes, Static route configuration example, Basic static route configuration example – H3C Technologies H3C S5120 Series Switches User Manual
Page 290: Network requirements

1-3
To do…
Use the command…
Remarks
Configure the default
preference for static
routes
ip route-static default-preference
default-preference-value
Optional
60 by default
z
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 VLAN interface.
z
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.
z
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.
Displaying and Maintaining Static Routes
To do…
Use the command…
Remarks
Display the current
configuration information
display current-configuration
Display the brief information of
the IP routing table
display ip routing-table
Display the detailed
information of the IP routing
table
display ip routing-table verbose
View information of static
routes
display ip routing-table protocol static
[ inactive | verbose ]
Available in any
view
Delete all the static routes
delete static-routes all
Available In
system view
Static Route Configuration Example
Basic Static Route Configuration Example
Network requirements
The IP addresses and masks of the switches and hosts are shown in the following figure. Static routes
are required for interconnection between any two hosts.