Dynamicrouting Ospf1 140104012754 Phpapp02

22
1

description

Dynamicrouting Ospf1 140104012754 Phpapp02

Transcript of Dynamicrouting Ospf1 140104012754 Phpapp02

1

2

• Open standard protocol

• Successor of RIP

• Classless routing protocol

• Works with Link State Advertisements

• Updates are through Multicast (224.0.0.5 )

• Administrative distance is 110

• Metric = Cost =108/Bandwidth in bps (CISCO)

Open Shortest Path First

3

• Hello packets are sent every 10 seconds

• Faster Convergence

• Hierarchical design with Multiple Areas

• Area 0 is called the backbone area

• Router ID

The highest IP address of the active physical interface

of the router is Router ID.

If logical interface is configured, the highest IP

address of the logical interface is Router ID

OSPF (contd..)

4

• It maintains three tables :

Neighbor Table

Neighbor table contains information about the directly

connected ospf neighbors forming adjacency.

Database table

Database table contains information about the entire

view of the topology with respect to each router.

Routing information Table

Routing table contains information about the best

path calculated by the shortest path first algorithm in

the database table.

OSPF Tables

5

OSPF - 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

AREA 0

6

• Consumes More Memory and CPU processing

Disadvantages of OSPF

7

8

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

Directly Connected Networks on HYDERABAD Router

192.168.1.010.0.0.0

9

Hyderabad(config)#router ospf 1

Hyderabad(config-router)#

Hyderabad(config-router)# network 192.168.1.0 0.0.0.255 area 0Hyderabad(config-router)# network 10.0.0.0 0.255.255.255 area 0

no ip routingHyderabad(config)#

Hyderabad(config)#ip routing

Configuring OSPFRouter(config)# router ospf <pid>Router(config-router)# network <Network ID> <wildcard mask> area <area id>

Configuring OSPFRouter(config)# router ospf <pid>Router(config-router)# network <Network ID> <wildcard mask> area <area id>

10

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, Serial0O 11.0.0.0/8 [110/128] via 10.0.0.2, 00:00:36, Serial0C 192.168.1.0/24 is directly connected, Ethernet0O 192.168.2.0/24 [110/74] via 10.0.0.2, 00:00:36, Serial0O 192.168.3.0/24 [110/138] via 10.0.0.2, 00:00:36, Serial0Hyderabad#

^Z

O – for OSPF routes O – for OSPF routes 110 is nothing but Administrative Distance

110 is nothing but Administrative Distance

Metric of OSPF Cost

Metric of OSPF Cost

Hyderabad(config)#router ospf 1

Hyderabad(config-router)#

Hyderabad(config-router)# network 192.168.1.0 0.0.0.255 area 0Hyderabad(config-router)# network 10.0.0.0 0.255.255.255 area 0

no ip routingHyderabad(config)#

Hyderabad(config)#ip routing

11

show ip ospf databaseHyderabad#

OSPF Router with ID (192.168.1.150) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link 192.168.1.150 192.168.1.150 790 0x80000003 0x897B 3192.168.2.150 192.168.2.150 234 0x80000005 0x542 5192.168.3.150 192.168.3.150 232 0x80000003 0xD328 3Hyderabad# show ip ospf neighbor

Neighbor ID Pri State Dead Time Address192.168.2.150 1 FULL/ - 00:00:36 10.0.0.2Hyderabad#

12

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

Directly Connected Networks on CHENNAI Router192.168.2.0

10.0.0.011.0.0.0

13

Chennai(config)#router ospf 2

Chennai(config-router)#

Chennai(config-router)# network 192.168.2.0 0.0.0.255 area 0Chennai(config-router)# network 10.0.0.0 0.255.255.255 area 0

no ip routingChennai(config)#

Chennai(config)#ip routing

network 11.0.0.0 0.255.255.255 area 0Chennai(config-router)#

Configuring OSPFRouter(config)# router ospf <pid>Router(config-router)# network <Network ID> <wildcard mask> area <area id>

Configuring OSPFRouter(config)# router ospf <pid>Router(config-router)# network <Network ID> <wildcard mask> area <area id>

14

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, Serial0O 192.168.1.0/24 [110/74] via 10.0.0.1, 00:01:33, Serial1C 192.168.2.0/24 is directly connected, Ethernet0O 192.168.3.0/24 [110/74] via 11.0.0.2, 00:01:33, Serial0Chennai#

^Z

O – for OSPF routes O – for OSPF routes 110 is nothing but Administrative Distance

110 is nothing but Administrative Distance

Metric of OSPF Cost

Metric of OSPF Cost

Chennai(config)#router ospf 2

Chennai(config-router)#

Chennai(config-router)# network 192.168.2.0 0.0.0.255 area 0Chennai(config-router)# network 10.0.0.0 0.255.255.255 area 0

no ip routingChennai(config)#

Chennai(config)#ip routing

network 11.0.0.0 0.255.255.255 area 0Chennai(config-router)#

15

show ip ospf databaseChennai#

OSPF Router with ID (192.168.2.150) (Process ID 2)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link 192.168.1.150 192.168.1.150 1253 0x80000003 0x897B 3192.168.2.150 192.168.2.150 695 0x80000005 0x542 5192.168.3.150 192.168.3.150 693 0x80000003 0xD328 3Chennai# show ip ospf neighbor

Neighbor ID Pri State Dead Time Address192.168.3.150 1 FULL/ - 00:00:35 11.0.0.2192.168.1.150 1 FULL/ - 00:00:32 10.0.0.1Chennai#

16

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

Directly Connected Networks on Banglore Router192.168.3.0

11.0.0.0

17

Banglore(config)#router ospf 1

Banglore(config-router)#

Banglore(config-router)# network 192.168.3.0 0.0.0.255 area 0Banglore(config-router)#

no ip routingBanglore(config)#

Banglore(config)#ip routing

network 11.0.0.0 0.255.255.255 area 0

Configuring OSPFRouter(config)# router ospf <pid>Router(config-router)# network <Network ID> <wildcard mask> area <area id>

Configuring OSPFRouter(config)# router ospf <pid>Router(config-router)# network <Network ID> <wildcard mask> area <area id>

18

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

O 10.0.0.0/8 [110/128] via 11.0.0.1, 00:02:09, Serial1C 11.0.0.0/8 is directly connected, Serial1O 192.168.1.0/24 [110/138] via 11.0.0.1, 00:02:09, Serial1O 192.168.2.0/24 [110/74] via 11.0.0.1, 00:02:09, Serial1C 192.168.3.0/24 is directly connected, Ethernet0Banglore#

^Z

O – for OSPF routes O – for OSPF routes 110 is nothing but Administrative Distance

110 is nothing but Administrative Distance

Metric of OSPF Cost

Metric of OSPF Cost

Banglore(config)#router ospf 1

Banglore(config-router)#

Banglore(config-router)# network 192.168.3.0 0.0.0.255 area 0Banglore(config-router)#

no ip routingBanglore(config)#

Banglore(config)#ip routing

network 11.0.0.0 0.255.255.255 area 0

19

show ip ospf databaseBanglore#

OSPF Router with ID (192.168.3.150) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link 192.168.1.150 192.168.1.150 1506 0x80000003 0x897B 3192.168.2.150 192.168.2.150 948 0x80000005 0x542 5192.168.3.150 192.168.3.150 944 0x80000003 0xD328 3Banglore#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address192.168.2.150 1 FULL/ - 00:00:37 11.0.0.10.1Banglore#

20

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#

!!!!!

21

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#

!!!!!

22

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#

!!!!!