package and has no default route configured, the package will be discarded, and an
ICMP packet will be sent to the source address indicate the destination address or
network is unreachable.
17.3.3 Static Route Configuration Task List
1.Static route configuration
2.Default route configuration
1. static route configuration
Command
Global mode
ip
route
<ip-prefix>/<prefix-length>} {<gateway-address>
| <gateway-interface>} [<distance>]
no
ip
route
<ip-prefix>/<prefix-length>} [<gateway-address>
| <gateway-interface>] [<distance>]
2. VPN configuration
Command
Global mode
ip
route
<mask>|<ip-prefix/<prefix-length>}
{<gateway-address>|<gateway-interface>}
[<distance>]
no
ip
route
<mask>|<ip-prefix/<prefix-length>}
[<gateway-address>|<gateway-interface>]
[<distance>]
17.3.4 Commands for Static Route
17.3.4.1 ip route
Command:
ip route {<ip-prefix> <mask> | <ip-prefix>/<prefix-length>} {<gateway-address>
| <gateway-interface>} [<distance>]
{<ip-prefix>
<mask>
{<ip-prefix>
vrf
<name>
vrf
<name>
Explanation
Set static routing; the no ip
|
route {<ip-prefix> <mask> |
<ip-prefix>/<prefix-length>}
[<gateway-address>
<mask>
|
<gateway-interface>]
[<distance>]
deletes a static route entry
Explanation
Configures static routing; the
{<ip-prefix>
no ip route vrf <name>
{<ip-prefix>
<mask>|<ip-prefix/<prefix-le
ngth>}
{<ip-prefix>
[<gateway-address>|<gatew
ay-interface>]
command deletes a static
route entry
430
|
command
[<distance>]