7
Follow these guidelines when you specify the output interface:
{
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.
•
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.
NOTE:
The load sharing function is available only on the A5500 EI Switch series.
Configuring a static route
Before you configure 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.
Follow these guidelines when you configure a static route:
•
The next hop address cannot be the IP address of a local interface (such as Ethernet interface and
VLAN interface). Otherwise, the static route does not take effect.
•
If you do not specify the preference when you configure a static route, the default preference applies.
Reconfiguring the default preference applies only to newly created static routes.
•
You can flexibly control static routes by configuring tag values and using the tag values in the
routing policy.
•
If the destination IP address and mask are both configured as 0.0.0.0 with the
ip route-static
command, then the route is the default route.
•
For more information about track, see
High Availability Configuration Guide
.
To configure a static route:
Step Command
Remarks
1.
Enter system view.
system-view
N/A