R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101

241
To do… Use the command…
Remarks
Configure a static route
ip route-static dest-address { mask | mask-length }
{ next-hop-address | 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 ] [ description
description-text ]
Required
By default, preference
for static routes is 60,
tag is 0, and no
description
information is
configured.
ip route-static vpn-instance s-vpn-instance-name&<1-6>
dest-address { mask | mask-length } { next-hop-address
track track-entry-number [ public ] | 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 ] [ description description-text ]
Configure the default
preference for static
routes
ip route-static default-preference default-preference-value
Optional
60 by default
NOTE:
When confi
g
urin
g
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 confi
g
urin
g
a static route, the default preference will be used.
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,
the route is the default route.
For detailed information about track, see
High Availability Configuration Guide
.
Displaying and maintaining static routes
To do… Use the command…
Remarks
Display the current configuration
information
display current-configuration
Available in any
view
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 ]
Delete all the static routes
delete [ vpn-instance vpn-instance-name ]
static-routes all
Available in
system view