Command Reference Guide
174 ● ip route-static 3Com Router 5000 Family and Router 6000 Family
Command Reference
ip route-static
Purpose Use the ip route-static command to configure a static route.
Use the undo ip route-static command to cancel the configured static route.
Use the undo ip route-static command to delete all the static routes to the
same destination through the same next hop.
Use the undo ip route-static preference command to delete the static
routes with the specified preference.
Use the ip route-static vpn-instance command to configure a static route.
In the application of multi-role host, you can configure a static route on a private
network to specify the interface of another private network or public network as its
outbound interface.
Use the undo ip route-static vpn-instance command to remove the static
route configuration.
Syntax ip route-static ip-address { mask | mask-length } [ interface-type
interface-number ] [nexthop-address ] [ preference preference-value ] [
reject | blackhole ] [ tag tag-value ] [ description string ]
undo ip route-static ip-address { mask | mask-length } [ interface-type
interface-number | nexthop-address ] [ preference preference-value ]
ip route-static vpn-instance vpn-instance-name1 vpn-instance-name2 …
ip-address { mask | mask-length } [ interface-type interface-number [
nexthop-address ] | vpn-instance vpn-nexthop-name nexthop-address |
nexthop-address [ public ] ] [ preference preference-value ] [ reject |
blackhole ]
undo ip route-static vpn-instance vpn-instance-name1 vpn-instance-name2
… ip-address { mask | mask-length } [ interface-type interface-number |
vpn-instance
vpn-nexthop-name nexthop-address | nexthop-address [
public ]] [ preference preference-value ]
Parameters ip-address
Destination IP address, in dotted decimal notation.
mask
Mask.
mask-length
Mask length. Since "1" s in the 32-bit mask are
required to be consecutive, the mask in dotted decimal
notation can be replaced by mask-length, which is
the number of the consecutive "1" s in the mask.
interface-type
interface-number
Specifies the outbound interface type and number of
the static route. The interfaces of the public network
or under other vpn-instances can be taken as the
outbound interface of the static route.
vpn-instance-name
Indicates a name of VPN instance. It can take a
maximum of 6 values.
vpn-nexthop-name
Specifies the vpn-instance of the static route next hop.