day07-2 dynamic routing ospf

Upload: gauravjuneja4

Post on 03-Jun-2018

235 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    1/23

    1

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    2/23

    2

    Open standard protocol

    Successor of RIP

    Classless routing protocol

    Works with Link State Advertisements

    Updates are Multicast

    Works with Dijkstra algorithm, also called SPF

    algorithm

    Administrative distance is 110

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

    Open Shortest Path First

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    3/23

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    4/23

    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

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    5/23

    5

    Broadcast Multiaccess

    Ethernet

    Election of DR and BDR

    Point to Point

    Dedicated Serial Link

    Non Broadcast Multiaccess

    Frame Relay, X.25

    OSPF Topologies

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    6/23

    6

    OSPF - Network Diagram

    E0192.168.1.150/24

    HYD

    LAN - 192.168.1.0/24

    E0192.168.2.150/24

    CHE

    LAN - 192.168.2.0/24

    E0192.168.3.15

    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

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    7/23

    7

    Consumes More Memory and CPU processing

    Disadvantages of OSPF

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    8/23

    8

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    9/23

    9

    exityderabad(config-if)#Hyderabad(config)#

    telnet 192.168.1.150================================Welcome to Hyderabad Router================================User Access Verificationpassword :****

    ****enableconfigure terminalinterface serial 0ip address 10.0.0.1 255.0.0.0

    no 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 onHYDERABAD Router

    192.168.1.0

    10.0.0.0

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    10/23

    10

    Hyderabad(config)# router ospf 1Hyderabad(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 routingyderabad(config)#Hyderabad(config)# ip routing

    Configuring OSPF

    Router(config)# router ospf

    Router(config-router)# network area

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    11/23

    11

    show ip routeyderabad#Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate defaultU - per-user static route, o - ODR

    Gateway of last resort is not setC 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 routes110 is nothing but

    Administrative Distance

    Metric of OSPF

    Cost

    Hyderabad(config)# router ospf 1Hyderabad(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 routingyderabad(config)#Hyderabad(config)# ip routing

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    12/23

    12

    show ip ospf databaseyderabad#OSPF Router with ID (192.168.1.150) (Process ID 1)

    Router Link States (Area 0)Link ID ADV Router Age Seq# Checksum Link192.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 neighborNeighbor ID Pri State Dead Time Address192.168.2.150 1 FULL/ - 00:00:36 10.0.0.2Hyderabad#

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    13/23

    13

    Chennai(config-if)#Chennai(config-if)#

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

    ****enableconfigure 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 onCHENNAI Router

    192.168.2.0

    10.0.0.0

    11.0.0.0

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    14/23

    14

    Chennai(config)# router ospf 2Chennai(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 routinghennai(config)#Chennai(config)# ip routing

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

    Router(config-router)# network area

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    15/23

    15

    show ip routehennai#Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate defaultU - 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 routes110 is nothing but

    Administrative Distance

    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 routinghennai(config)#Chennai(config)# ip routing

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

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    16/23

    16

    show ip ospf databasehennai#OSPF Router with ID (192.168.2.150) (Process ID 2)

    Router Link States (Area 0)Link ID ADV Router Age Seq# Checksum Link192.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 neighborNeighbor 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#

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    17/23

    17

    exitanglore(config-if)#Banglore(config)#

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

    ****enableconfigure 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 onBanglore Router

    192.168.3.0

    11.0.0.0

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    18/23

    18

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

    no ip routinganglore(config)#Banglore(config)# ip routing

    network 11.0.0.0 0.255.255.255 area 0Configuring OSPF

    Router(config)# router ospf

    Router(config-router)# network area

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    19/23

    19

    show ip routeanglore#Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate defaultU - per-user static route, o - ODR

    Gateway of last resort is not setO 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 routes110 is nothing but

    Administrative Distance

    Metric of OSPF

    Cost

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

    no ip routinganglore(config)#Banglore(config)# ip routing

    network 11.0.0.0 0.255.255.255 area 0

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    20/23

    20

    show ip ospf databaseanglore#OSPF Router with ID (192.168.3.150) (Process ID 1)

    Router Link States (Area 0)Link ID ADV Router Age Seq# Checksum Link192.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 neighborNeighbor ID Pri State Dead Time Address192.168.2.150 1 FULL/ - 00:00:37 11.0.0.10.1Banglore#

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    21/23

    21

    ping 192.168.3.1yderabad#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#

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    22/23

    22

    ping 192.168.1.1hennai#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#

  • 8/13/2019 Day07-2 Dynamic Routing Ospf

    23/23

    23

    ping 192.168.1.1anglore#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#