multi static routng & default routing
DESCRIPTION
This study guide is intended to provide those pursuing the CCNA certification with a framework of what concepts need to be studied. This is not a comprehensive document containing all the secrets of the CCNA, nor is it a “braindump” of questions and answers. I sincerely hope that this document provides some assistance and clarity in your studies.TRANSCRIPT
1
Static Routing For Multiple Routers - Network Diagram
E0 192.168.1.150/24
HYD
LAN - 192.168.1.0/24
E0 192.168.2.150/24
CHE
LAN - 192.168.2.0/24
E0 192.168.3.150/24
BAN
LAN - 192.168.3.0/24
10.0.0.1/8S0
S110.0.0.2/8
11.0.0.1/8S0
S111.0.0.2/8
2
• Administrative work is more.
• Compulsory need of Destination Network ID’s
• Used for only Small organizations
• It cannot dynamically update topology changes.
Disadvantages of Static Routing
3
• A Default routing protocol is configured for
unknown destinations.
• Generally used in the internet where the destinations
are unknown.
Example : The address of yahoo is unknown.
• Configured at end points
• It is the last preferred routing
Default Routing
4
Default Routing - Real Time Example
E0 192.168.1.150/24
LAN - 192.168.1.0/24
E0 202.54.30.150/24
IP 202.54.30.1/24
HYD
INTERNET
5
Default Routing - Network Diagram
E0 192.168.1.150/24
HYD
LAN - 192.168.1.0/24
E0 192.168.2.150/24
CHE
LAN - 192.168.2.0/24
E0 192.168.3.150/24
BAN
LAN - 192.168.3.0/24
10.0.0.1/8S0
S110.0.0.2/8
11.0.0.1/8S0
S111.0.0.2/8
6
7
exitHyderabad(config-if)#Hyderabad(config)#
telnet 192.168.1.150
================================Welcome to Hyderabad Router================================User Access Verificationpassword :****
****enable
configure terminal
interface serial 0ip address 10.0.0.1 255.0.0.0no shutclockrate 64000encapsulation hdlc
Hyderabad>password :Hyderabad#Enter configuration commands, one per line. End with CNTL/Z.Hyderabad(config)#Hyderabad(config-if)#Hyderabad(config-if)#Hyderabad(config-if)#Hyderabad(config-if)#
Microsoft Windows 2000 [Version 5.00.2195](C) Copyright 1985-2000 Microsoft Corp.C:\>Connecting .....
Directly Connected Networks on HYDERABAD Router
192.168.1.010.0.0.0
Indirectly Connected Networks on HYDERABAD Router
192.168.2.0192.168.3.0
11.0.0.0
Directly Connected Networks on HYDERABAD Router
192.168.1.010.0.0.0
Indirectly Connected Networks on HYDERABAD Router
192.168.2.0192.168.3.0
11.0.0.0
Diagram
8
Hyderabad(config)#ip route 192.168.2.0 255.255.255.0 10.0.0.2
Hyderabad(config)#
Hyderabad(config)# ip route 192.168.3.0 255.255.255.0 10.0.0.2 Hyderabad(config)# ip route 11.0.0.0 255.0.0.0 10.0.0.2
no ip routingHyderabad(config)#
Hyderabad(config)#ip routing
Diagram
9
show ip routeHyderabad#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 not set
C 10.0.0.0/8 is directly connected, Serial0S 11.0.0.0/8 [1/0] via 10.0.0.2C 192.168.1.0/24 is directly connected, Ethernet0S 192.168.2.0/24 [1/0] via 10.0.0.2S 192.168.3.0/24 [1/0] via 10.0.0.2Hyderabad#
^Z
Hyderabad(config)#ip route 192.168.2.0 255.255.255.0 10.0.0.2
Hyderabad(config)#
Hyderabad(config)# ip route 192.168.3.0 255.255.255.0 10.0.0.2 Hyderabad(config)# ip route 11.0.0.0 255.0.0.0 10.0.0.2
no ip routingHyderabad(config)#
Hyderabad(config)#ip routing
Diagram
10
Chennai(config-if)#Chennai(config-if)#
================================Welcome to Chennai Router================================User Access Verificationpassword :****
****enable
configure terminal
ip address 10.0.0.2 255.0.0.0no shutencapsulation hdlcinterface serial 0
Chennai>password :Chennai#Enter configuration commands, one per line. End with CNTL/Z.Chennai(config)#Chennai(config-if)#Chennai(config-if)#Chennai(config-if)#Chennai(config-if)#
Microsoft Windows 2000 [Version 5.00.2195](C) Copyright 1985-2000 Microsoft Corp.C:\>Connecting .....
Chennai(config-if)#
telnet 192.168.2.150
interface serial 1
ip address 11.0.0.1 255.0.0.0no shutencapsulation hdlc
Directly Connected Networks on CHENNAI Router192.168.2.0
10.0.0.011.0.0.0
Indirectly Connected Networks on CHENNAI Router192.168.1.0192.168.3.0
Directly Connected Networks on CHENNAI Router192.168.2.0
10.0.0.011.0.0.0
Indirectly Connected Networks on CHENNAI Router192.168.1.0192.168.3.0
Diagram
11
Chennai(config)#ip routing
Chennai(config)#
Chennai(config)# ip route 192.168.1.0 255.255.255.0 10.0.0.1 Chennai(config)# ip route 192.168.3.0 255.255.255.0 11.0.0.2
exitChennai(config-if)#
Chennai(config)#no ip routing
Diagram
12
show ip routeChennai#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 not set
C 10.0.0.0/8 is directly connected, Serial1C 11.0.0.0/8 is directly connected, Serial0S 192.168.1.0/24 [1/0] via 10.0.0.1C 192.168.2.0/24 is directly connected, Ethernet0S 192.168.3.0/24 [1/0] via 11.0.0.2Chennai#
^Z
Chennai(config)#ip routing
Chennai(config)#
Chennai(config)# ip route 192.168.1.0 255.255.255.0 10.0.0.1 Chennai(config)# ip route 192.168.3.0 255.255.255.0 11.0.0.2
exitChennai(config-if)#
Chennai(config)#no ip routing
Diagram
13
exitBanglore(config-if)#Banglore(config)#
================================Welcome to Banglore Router================================User Access Verificationpassword :****
****enable
configure terminal
ip address 11.0.0.2 255.0.0.0no shutclockrate 64000encapsulation hdlc
Banglore>password :Banglore#Enter configuration commands, one per line. End with CNTL/Z.Banglore(config)#Banglore(config-if)#Banglore(config-if)#Banglore(config-if)#Banglore(config-if)#
Microsoft Windows 2000 [Version 5.00.2195](C) Copyright 1985-2000 Microsoft Corp.C:\>Connecting .....
telnet 192.168.3.150
interface serial 1
Directly Connected Networks on Banglore Router192.168.3.0
11.0.0.0
Indirectly Connected Networks on Banglore Router192.168.1.0192.168.2.0
10.0.0.0
Directly Connected Networks on Banglore Router192.168.3.0
11.0.0.0
Indirectly Connected Networks on Banglore Router192.168.1.0192.168.2.0
10.0.0.0
Diagram
14
Banglore(config)#ip route 192.168.2.0 255.255.255.0 11.0.0.1
Banglore(config)#
Banglore(config)# ip route 192.168.1.0 255.255.255.0 11.0.0.1Banglore(config)# ip route 10.0.0.0 255.0.0.0 11.0.0.1
no ip routingBanglore(config)#
Banglore(config)#ip routing
Diagram
15
show ip routeBanglore#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 not set
S 10.0.0.0/8 [1/0] via 11.0.0.1C 11.0.0.0/8 is directly connected, Serial1S 192.168.1.0/24 [1/0] via 11.0.0.1S 192.168.2.0/24 [1/0] via 11.0.0.1C 192.168.3.0/24 is directly connected, Ethernet0Banglore#
^Z
Banglore(config)#ip route 192.168.2.0 255.255.255.0 11.0.0.1
Banglore(config)#
Banglore(config)# ip route 192.168.1.0 255.255.255.0 11.0.0.1 Banglore(config)# ip route 10.0.0.0 255.0.0.0 11.0.0.1
no ip routingBanglore(config)#
Banglore(config)#ip routing
Diagram
16
exitHyderabad(config-if)#Hyderabad(config)#
telnet 192.168.1.150
================================Welcome to Hyderabad Router================================User Access Verificationpassword :****
****enable
configure terminal
interface serial 0ip address 10.0.0.1 255.0.0.0no shutclockrate 64000encapsulation hdlc
Hyderabad>password :Hyderabad#Enter configuration commands, one per line. End with CNTL/Z.Hyderabad(config)#Hyderabad(config-if)#Hyderabad(config-if)#Hyderabad(config-if)#Hyderabad(config-if)#
Microsoft Windows 2000 [Version 5.00.2195](C) Copyright 1985-2000 Microsoft Corp.C:\>Connecting .....
Diagram
17
Hyderabad(config)#ip route 0.0.0.0 0.0.0.0 s0
Hyderabad(config)#
no ip routingHyderabad(config)#
Hyderabad(config)#ip routing
Configuring Default Route Router(config)# ip route <Destination Network ID>
<Destination Subnet Mask> <Next-hop IP address >
OrRouter(config)# ip route <Destination Network ID>
<Destination Subnet Mask> <Exit interface type><interface number>
Configuring Default Route Router(config)# ip route <Destination Network ID>
<Destination Subnet Mask> <Next-hop IP address >
OrRouter(config)# ip route <Destination Network ID>
<Destination Subnet Mask> <Exit interface type><interface number>
Diagram
18
show ip routeHyderabad#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 not set
C 10.0.0.0/8 is directly connected, Serial0C 192.168.1.0/24 is directly connected, Ethernet0S* 0.0.0.0/0 is directly connected, Serial0Hyderabad#
^Z
Hyderabad(config)#ip route 0.0.0.0 0.0.0.0 s0
Hyderabad(config)#
no ip routingHyderabad(config)#
Hyderabad(config)#ip routing
* – for Default Route* – for Default Route
Diagram
19
exitBanglore(config-if)#Banglore(config)#
================================Welcome to Banglore Router================================User Access Verificationpassword :****
****enable
configure terminal
ip address 11.0.0.2 255.0.0.0no shutclockrate 64000encapsulation hdlc
Banglore>password :Banglore#Enter configuration commands, one per line. End with CNTL/Z.Banglore(config)#Banglore(config-if)#Banglore(config-if)#Banglore(config-if)#Banglore(config-if)#
Microsoft Windows 2000 [Version 5.00.2195](C) Copyright 1985-2000 Microsoft Corp.C:\>Connecting .....
telnet 192.168.3.150
interface serial 1
Diagram
20
Banglore(config)#ip route 0.0.0.0 0.0.0.0 s1
Banglore(config)#
no ip routingBanglore(config)#
Banglore(config)#ip routing
Diagram
21
Banglore(config)#ip route 0.0.0.0 0.0.0.0 s1
Banglore(config)#
no ip routingBanglore(config)#
Banglore(config)#ip routing
show ip routeCodes: 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 not set
C 11.0.0.0/8 is directly connected, Serial1C 192.168.3.0/24 is directly connected, Ethernet0S* 0.0.0.0/0 is directly connected, Serial1Banglore#
^ZBanglore#
* – for Default Route* – for Default Route
Diagram
22
show ip routeHyderabad#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 not set
C 10.0.0.0/8 is directly connected, Serial0C 192.168.1.0/24 is directly connected, Ethernet0S* 0.0.0.0/0 is directly connected, Serial0Hyderabad#
^Z
Hyderabad(config)#ip route 0.0.0.0 0.0.0.0 s0
Hyderabad(config)#
no ip routingHyderabad(config)#
Hyderabad(config)#ip routing
ping 192.168.3.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 msHyderabad#
!!!!!
Diagram
23
Banglore(config)#ip route 0.0.0.0 0.0.0.0 s1
Banglore(config)#
no ip routingBanglore(config)#
Banglore(config)#ip routing
show ip routeCodes: 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 not set
C 11.0.0.0/8 is directly connected, Serial1C 192.168.3.0/24 is directly connected, Ethernet0S* 0.0.0.0/0 is directly connected, Serial1Banglore#
^ZBanglore#
ping 192.168.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 msBanglore#
!!!!!
Diagram
24
ping 192.168.3.1Hyderabad#Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 msHyderabad#
!!!!!
ping 192.168.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 msHyderabad#
!!!!!
Diagram
25
ping 192.168.1.1Chennai#Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 msChennai#
!!!!!
ping 192.168.3.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 msChennai#
!!!!!
Diagram
26
ping 192.168.1.1Banglore#Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 msBanglore#
!!!!!
ping 192.168.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 msBanglore#
!!!!!
Diagram