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
R1>enable
R1#configure terminal
R1(config)#ip default-network 192.168.17.0
Cert-Ex™ Exam Simulators, Cert-Ex™ Network Simulator, Cert-Ex™ Cheatsheets are written independently by CertExams.com and not affiliated or authorized by respective certification providers. Cert-Ex™ is a trade mark of CertExams.com or entity representing Certexams.com.Network+™ is a trademark of CompTIA® organization.