multi static routng & default routing

26
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/2 BAN LAN - 192.168.3.0/24 10.0.0.1/8 S0 S1 10.0.0.2/8 11.0.0.1/8 S0 S1 11.0.0.2/8

Upload: kishore-kumar

Post on 20-Jan-2015

1.078 views

Category:

Education


2 download

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

Page 1: Multi Static Routng & Default Routing

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

Page 2: Multi Static Routng & Default Routing

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

Page 3: Multi Static Routng & Default 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

Page 4: Multi Static Routng & 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

Page 5: Multi Static Routng & Default Routing

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

Page 6: Multi Static Routng & Default Routing

6

Page 7: Multi Static Routng & Default Routing

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

Page 8: Multi Static Routng & Default Routing

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

Page 9: Multi Static Routng & Default Routing

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

Page 10: Multi Static Routng & Default Routing

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

Page 11: Multi Static Routng & Default Routing

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

Page 12: Multi Static Routng & Default Routing

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

Page 13: Multi Static Routng & Default Routing

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

Page 14: Multi Static Routng & Default Routing

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

Page 15: Multi Static Routng & Default Routing

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

Page 16: Multi Static Routng & Default Routing

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

Page 17: Multi Static Routng & Default Routing

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

Page 18: Multi Static Routng & Default Routing

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

Page 19: Multi Static Routng & Default Routing

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

Page 20: Multi Static Routng & Default Routing

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

Page 21: Multi Static Routng & Default Routing

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

Page 22: Multi Static Routng & Default Routing

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

Page 23: Multi Static Routng & Default Routing

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

Page 24: Multi Static Routng & Default Routing

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

Page 25: Multi Static Routng & Default Routing

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

Page 26: Multi Static Routng & Default Routing

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