Configuring a static route, Configuration prerequisites, Configuration procedure – H3C Technologies H3C SecBlade NetStream Cards User Manual
Page 90

75
In fact, each route lookup operation has to find the next hop to resolve the destination link layer address.
When specifying the output interface, observe the following rules:
•
If the output interface is a Null 0 interface, no next hop address is required. For example, you can
configure the command ip route-static 92.101.0.0 255.255.0.0 null 0.
•
H3C does not recommend you to specify a broadcast interface (such as an Ethernet interface or
VLAN interface) as the output interface, because a broadcast interface may have multiple next hops.
If you have to do so, 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
—
Configure a static route
ip route-static dest-address { mask | mask-length }
{ next-hop-address [ track track-entry-number ] |
interface-type interface-number next-hop-address }
[ preference preference-value ] [ description
description-text ]
Required
By default, preference
for static routes is 60.
Configure the default
preference for static
routes
ip route-static default-preference default-preference-value
Optional
60 by default
NOTE:
•
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 Ethernet interface and VLAN
interface.
•
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.