Description: ip
default-gateway command is used when ip routing is disabled on a
Cisco router. Use the ip default-network and ip route
0.0.0.0 0.0.0.0 commands are used to set the gateway of last
resort on Cisco routers that have ip routing enabled.
Command syntax:
1. ip default-gateway
<ip address>
example: ip default-gateway 192.168.14.2
2. ip default-network
<ip address>
example: ip default-network 192.168.1.0
3. ip route 0.0.0.0
0.0.0.0 <ip-address>
example: ip route 0.0.0.0 0.0.0.0 192.168.5.1
here 192.168.5.1 is
the gateway of last resort to network 0.0.0.0
Instructions:
1. Enter into Global Configuration Mode
2. Set the default Network number as 192.168.17.0