2-2
ip route-static
Syntax
ip
route-static
dest-address
{
mask
|
mask-length
} {
next-hop-address
[
track
track-entry-number
] |
interface-type
interface-number
[
next-hop-address
] [
bfd
{
control-packet | echo-packet
} ] |
vpn-instance
d-vpn-instance-name
next-hop-address
[
track track-entry-number
] } [
preference
preference-value
] [
tag
tag-value
] [
description
description-text
]
undo
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
]
[
preference
preference-value
]
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
] [
bfd
{
control-packet | echo-packet
} ] |
vpn-instance
d-vpn-instance-name
next-hop-address
[
track track-entry-number
] } [
preference
preference-value
] [
tag
tag-value
] [
description
description-text
]
undo
ip
route-static
vpn-instance
s-vpn-instance-name
&<1-6>
dest-address
{
mask
|
mask-length
} [
next-hop-address
[
public
] |
interface-type
interface-number
[
next-hop-address
] |
vpn-instance d-vpn-instance-name
next-hop-address
] [
preference
preference-value
]
View
System view
Default Level
2: System level
Parameters
vpn-instance
s-vpn-instance-name
&<1-6>: Specifies the VPN instance name, which is a string
of 1 to 31 case-sensitive characters. &<1-6> indicates the argument before it can be entered up
to 6 times. Each VPN instance has its own routing table, and the configured static route is
installed in the routing tables of the specified VPN instances.
dest-address
: Destination IP address of the static route, in dotted decimal notation.
mask
: Mast of the IP address, in dotted decimal notation.
mask-length
: Mask length, in the range 0 to 32.
next-hop-address
: IP address of the next hop, in dotted decimal notation.
interface-type interface-number
: Specifies the output interface by its type and number. If the
output interface is a broadcast interface, such as a VLAN interface, the next hop address must
be specified.
vpn-instance d-vpn-instance-name
: Name of the destination VPN instance, case-sensitive. If a
destination VPN instance name is specified, the router will search the output interface in the
destination VPN instance based on the configured
next-hop-address
.
next-hop-address public
: Indicates that the specified
next-hop-address
is a public network
address, rather than a VPN instance address.