Configuring a static route, Configuration prerequisites, Configuration procedure – H3C Technologies H3C S10500 Series Switches User Manual
Page 23

8
•
If the output interface is a Null 0 interface, no next hop address is required.
•
If you specify a broadcast interface (such as an Ethernet interface or VLAN interface) as the output
interface, you must specify the corresponding next hop for the output interface.
3.
Other attributes
You can configure different priorities for different static routes so that route management policies can be
more flexible. For example, specifying the same priority for different routes to the same destination
enables load sharing, but specifying different priorities for these routes enables route backup.
Configuring a static route
Configuration prerequisites
Before configuring a static route, complete the following tasks:
•
Configure the physical parameters for related interfaces
•
Configure the link-layer attributes for related interfaces
•
Configure the IP addresses for related interfaces
Configuration procedure
Follow these steps to configure a static route:
To do…
Use the command…
Remarks
Enter system view
system-view
—
ip route-static dest-address { mask | mask-length }
{ next-hop-address [ track track-entry-number ] |
interface-type interface-number [ next-hop-address ] |
vpn-instance d-vpn-instance-name next-hop-address [ track
track-entry-number ] } [ preference preference-value ] [ tag
tag-value ] [ permanent ] [ description description-text ]
Configure a static route
ip route-static vpn-instance s-vpn-instance-name&<1-6>
dest-address { mask | mask-length } { next-hop-address
[ public ] [ track track-entry-number ] | interface-type
interface-number [ next-hop-address ] | vpn-instance
d-vpn-instance-name next-hop-address [ track
track-entry-number ] } [ preference preference-value ] [ tag
tag-value ] [ permanent ] [ description description-text ]
Required
Use one of the
approaches.
By default, preference
for static routes is 60,
tag is 0, and no
description
information is
configured.
Do not specify the
permanent and track
keywords
simultaneously.
If the outgoing
interface is down, the
permanent static route
is still active.
Configure the default
preference for static
routes
ip route-static default-preference default-preference-value
Optional
60 by default