Configuring A Static Route - HP 6125G Configuration Manual

Layer 3 - ip routing
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

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

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
1.
Enter system view.
2.
Configure a static
route.
Command
system-view
Approach 1:
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 ]
Approach 2:
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 ]
7
Remarks
N/A
Use either approach.
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 output interface is down,
the permanent static route is
still active.

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents