Information Technology Reference
In-Depth Information
If the network is in the routing table, it is assigned as the gateway of last resort. Network
192.168.1.0 is in the routing table and is assigned as the gateway of last resort (refer to
Example 2-6).
Gateway of Last Resort Set
Example 2-6
router4#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR
Gateway of last resort is 10.100.1.1 to network 192.168.1.0
Gateway of last resort is 10.100.1.1 to network 192.168.1.0
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
D 10.1.3.0/24 [90/2195456] via 10.100.1.1, 00:01:00, Serial1
S 10.0.0.0/8 [1/0] via 10.1.3.0
C 10.1.4.0/24 is directly connected, Ethernet0
C 10.100.1.0/24 is directly connected, Serial1
D* 192.168.1.0/24 [90/2297856] via 10.100.1.1, 00:01:00, Serial1
Do not confuse the
ip default-network
command with the
ip default-gateway
command. You
use the
ip default-gateway
command only when IP routing is disabled (
no ip routing
). Use
the
ip default-gateway
command when configuring an interface with an IP address and
accessing a remote TFTP server to load up configuration or IOS files. The
ip default-gateway
command points to an IP address, not a network. The router when in boot mode also uses the
ip default-gateway
command, when no routing processes are running.
Use the
ip default-network
command when IP routing is enabled. Any routing protocol can be
enabled.
NOTE
References Used
The following resources were used to create this chapter:
www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/introint.htm
www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/multiacc.htm
www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/routing.htm#xtocid8
Search WWH ::
Custom Search