static routing

21
1

Upload: kishore-kumar

Post on 20-Jan-2015

569 views

Category:

Education


8 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 CCNP 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: Static Routing

1

Page 2: Static Routing

2

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

10.0.0.1/8S0

S110.0.0.2/8

Head Office Branch Office

Page 3: Static Routing

3

• Head Office Ethernet interface should be in the

same network as your Head office LAN and similarly

on Branch Office side. Show Diagram

• Head Office S0 and Branch Office S1 should be in same

network. Show Diagram

• Head Office LAN and Branch Office LAN should be in

different Network. Show Diagram

• All interfaces of Router should be in different network.

Show Diagram

Rules of Routing

Page 4: Static Routing

4

• Static Routing

• Default Routing

• Dynamic Routing

Types of Routing

Page 5: Static Routing

5

• It is configured by Administrator manually.

• Mandatory need of Destination Network ID

• It is Secure & fast

• Used for Small organizations with a network of

10-15 Routers.

• Administrative distance for Static Route is 0 and 1.

It is the “trustworthiness” of the routing information.

Lesser the Administrative distance, higher the

preference.

Static Routing

Page 6: Static Routing

6

Static 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

10.0.0.1/8S0

S110.0.0.2/8

Page 7: Static Routing

7

Page 8: Static Routing

8

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

10.0.0.1/8S0

S110.0.0.2/8

Head Office Branch Office

Page 9: Static Routing

9

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

10.0.0.1/8S0

S110.0.0.2/8

Head Office Branch Office

Page 10: Static Routing

10

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

10.0.0.1/8S0

S110.0.0.2/8

Head Office Branch Office

Page 11: Static Routing

11

11.0.0.1/8S0

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

10.0.0.1/8S0

S110.0.0.2/8

Head Office Branch Office

Page 12: Static Routing

12

exitexit

Hyderabad(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 .....

Hyderabad# Diagram

Page 13: Static Routing

13

exitexit

Hyderabad(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 .....

Hyderabad# Diagram

Page 14: Static Routing

14

show ip routeHyderabad#Default gateway is not set

Host Gateway Last Use Total Uses InterfaceICMP redirect cache is emptyHyderabad#

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 192.168.1.0/24 is directly connected, Ethernet0C 10.0.0.0/8 is directly connected, Serial0Hyderabad#

configure terminalEnter configuration commands, one per line. End with CNTL/Z.Hyderabad(config)# ip routingHyderabad(config)# ^Z

Enabling RoutingRouter(config)#ip routing

Enabling RoutingRouter(config)#ip routing

Diagram

Page 15: Static Routing

15

Hyderabad#

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 192.168.1.0/24 is directly connected, Ethernet0S 192.168.2.0/24 [1/0] via 10.0.0.2C 10.0.0.0/8 is directly connected, Serial0Hyderabad#

Enter configuration commands, one per line. End with CNTL/Z.Hyderabad(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2 Hyderabad(config)# ^Z

configure terminal

S – for Static Routing S – for Static Routing 1 is nothing but Administrative Distance

1 is nothing but Administrative Distance

Configuring Static 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 Static 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 16: Static Routing

16

exitChennai(config)#Chennai#

================================Welcome to Chennai Router================================User Access Verificationpassword :****

****enable

configure terminal

ip address 10.0.0.2 255.0.0.0no shutencapsulation hdlcexit

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#

telnet 192.168.2.150

interface serial 1

Diagram

Page 17: Static Routing

17

exitChennai(config)#Chennai#

================================Welcome to Chennai Router================================User Access Verificationpassword :****

****enable

configure terminal

ip address 10.0.0.2 255.0.0.0no shutencapsulation hdlcexit

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#

telnet 192.168.2.150

interface serial 1

Diagram

Page 18: Static Routing

18

show ip routeChennai#Default gateway is not set

Host Gateway Last Use Total Uses InterfaceICMP redirect cache is emptyChennai#

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 192.168.2.0/24 is directly connected, Ethernet0C 10.0.0.0/8 is directly connected, Serial1Chennai#

configure terminalEnter configuration commands, one per line. End with CNTL/Z.Chennai(config)# ip routingChennai(config)# ^Z

Enabling RoutingRouter(config)#ip routing

Enabling RoutingRouter(config)#ip routing

Diagram

Page 19: Static Routing

19

Chennai#

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 192.168.2.0/24 is directly connected, Ethernet0S 192.168.1.0 is directly connected, Serial1C 10.0.0.0/8 is directly connected, Serial1Chennai#

Enter configuration commands, one per line. End with CNTL/Z.Chennai(config)# ip route 192.168.1.0 255.255.255.0 S1Chennai(config)# ^Z

configure terminal

S – for Static Routing S – for Static Routing If is directly connected Administrative Distance

is 0

If is directly connected Administrative Distance

is 0

Configuring Static 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 Static 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 20: Static Routing

20

Hyderabad#

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 192.168.1.0/24 is directly connected, Ethernet0S 192.168.2.0/24 [1/0] via 10.0.0.2C 10.0.0.0/8 is directly connected, Serial0Hyderabad#

Enter configuration commands, one per line. End with CNTL/Z.Hyderabad(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2 Hyderabad(config)# ^Z

configure terminal

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 21: Static Routing

21

Chennai#

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 192.168.2.0/24 is directly connected, Ethernet0S 192.168.1.0 is directly connected, Serial1C 10.0.0.0/8 is directly connected, Serial1Chennai#

Enter configuration commands, one per line. End with CNTL/Z.Chennai(config)# ip route 192.168.1.0 255.255.255.0 S1Chennai(config)# ^Z

configure terminal

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 msChennai#

!!!!!

Diagram