
June 30, 2006 | Chapter 7: Second Level Commands |
Host(config)# ip route 192.168.1.0. 255.255.255.0 192.168.1.2
Deleting an IP route line
Host(config)# no ip route
This command deletes the existing route.
Usage
no ip route [nip] <destination prefix> <network mask>
Parameter(s)
Table
Parameter | Description | Values |
[nip] | Native IP | Valid IP or Network |
<destination prefix> | Destination IP or network | Valid IP or Network |
<network mask> | Network mask | Valid Mask (Except to 0.0.0.0) |
Valid IP address |
Example(s)
Host(config)# no ip route 192.168.0.0 255.255.0.0 192.168.0.1
Using the ip default-gateway command
Host(config)# ip default-gateway
Use this command to specify the system’s default gateway.
Usage
ip
Parameter(s)
<gateway IP address>
The IP address of the default gateway.
Example(s)
Host(config)# ip
Using the no ip
Host(config)# no ip default-gateway
Use this command to specify the system’s default gateway.
|