H3C S7500E Series Ethernet Switches Operation Manual

Operation Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches Chapter 1 Static Routing Configuration
1-3
To do… Use the command… Remarks
Enter system view
system-view
Configure a static
route
ip route-static dest-address
{ mask | mask-length }
{ gateway-address | interface-type
interface-number
[ gateway-address ] } [ preference
preference-value ] [ tag tag-value ]
[ description description-text ]
Required
By default,
preference for static
routes is 60, tag is 0,
and no description
information is
configured.
Configure the default
preference for static
routes
ip route-static
default-preference
default-preference-value
Optional
60 by default
Note:
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 a 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 You can flexibly control static routes by configuring tag values and using the tag
values in the routing policy.
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.
1.3 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