397
a network mask of 0.0.0.0, too. If the route table does not have the destination of a
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.
14.3.3 Static Route Configuration Task List
1
.
Static route configuration
2
.
Default route configuration
1. static route configuration
1. static route configuration
Command
Explanation
Global mode
ip route {<ip-prefix> <mask> |
<ip-prefix>/<prefix-length>} {<gateway-address>
| <gateway-interface>} [<distance>]
no ip route {<ip-prefix>
<mask>
|
<ip-prefix>/<prefix-length>} [<gateway-address>
| <gateway-interface>] [<distance>]
Set static routing; the
no ip
route {<ip-prefix> <mask> |
<ip-prefix>/<prefix-length>}
[<gateway-address>
|
<gateway-interface>]
[<distance>]
command
deletes a static route entry
2. VPN configuration
Command Explanation
Global mode
ip route vrf <name> {<ip-prefix>
<mask>|<ip-prefix/<prefix-length>}
{<gateway-address>|<gateway-interface>}
[<distance>]
no ip route vrf <name> {<ip-prefix>
<mask>|<ip-prefix/<prefix-length>}
[<gateway-address>|<gateway-interface>]
[<distance>]
Configures static routing; the
no ip route vrf <name>
{<ip-prefix>
<mask>|<ip-prefix/<prefix-le
ngth>}
[<gateway-address>|<gatew
ay-interface>] [<distance>]
command deletes a static
route entry
14.3.4 Command For Static Route