Documente Academic
Documente Profesional
Documente Cultură
OSPF (contd..) Hello packets are send every 10 seconds Faster Convergence Hierarchical design with Multiple Areas Area 0 is called the backbone area Router ID
OSPF Tables 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.
4
OSPF Topologies
HYD
E0 192.168.1.150/24
S1 10.0.0.2/8
CHE
E0 192.168.2.150/24
S1 11.0.0.2/8
BAN
E0 192.168.3.150
LAN - 192.168.1.0/24
LAN - 192.168.2.0/24
LAN - 192.168.3.0/24
6
Disadvantages of OSPF
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\> telnet 192.168.1.150 Connecting ..... ================================ Welcome to Hyderabad Router ================================ User Access Verification password : **** Directly Connected Networks on Hyderabad> enable HYDERABAD Router password : **** Hyderabad# configure terminal 192.168.1.0 Enter configuration commands, one per line. End with CNTL/Z. 10.0.0.0 Hyderabad(config)# interface serial 0 Hyderabad(config-if)# ip address 10.0.0.1 255.0.0.0 Hyderabad(config-if)# no shut Hyderabad(config-if)# clockrate 64000 Hyderabad(config-if)# encapsulation hdlc Hyderabad(config-if)# exit Hyderabad(config)#
9
Hyderabad(config)# no ip routing Hyderabad(config)# ip routing Hyderabad(config)# router ospf 1 Hyderabad(config-router)# network 192.168.1.0 0.0.0.255 area 0 Hyderabad(config-router)# network 10.0.0.0 0.255.255.255 area 0 Hyderabad(config-router)# Configuring OSPF Router(config)# router ospf <pid> Router(config-router)# network <Network ID> <wildcard mask> area <area id>
10
Hyderabad(config)# no ip routing Hyderabad(config)# ip routing Hyderabad(config)# router ospf 1 Hyderabad(config-router)# network 192.168.1.0 0.0.0.255 area 0 Hyderabad(config-router)# network 10.0.0.0 0.255.255.255 area 0 Hyderabad(config-router)# ^Z Hyderabad# show ip route
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, Serial0 O 11.0.0.0/8 [110/128] via 10.0.0.2, 00:00:36, Serial0 C 192.168.1.0/24 is directly connected, Ethernet0 O 192.168.2.0/24 [110/74] via 10.0.0.2, 00:00:36, Serial0 Metric of OSPF 110 is nothing but O for OSPF routes Administrative Distance O 192.168.3.0/24 [110/138] via 10.0.0.2, 00:00:36, Serial0 Cost Hyderabad# 11
Link 3 5 3
Hyderabad# show ip ospf neighbor Neighbor ID 192.168.2.150 Hyderabad# Pri 1 State FULL/ Dead Time 00:00:36 Address 10.0.0.2
12
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\> telnet 192.168.2.150 Connecting ..... ================================ Welcome to Chennai Router ================================ User Access Verification password : **** Chennai> enable Directly Connected Networks on CHENNAI Router password : **** Chennai# configure terminal 192.168.2.0 Enter configuration commands, one per line. End with CNTL/Z. 10.0.0.0 Chennai(config)# interface serial 1 11.0.0.0 Chennai(config-if)# ip address 10.0.0.2 255.0.0.0 Chennai(config-if)# no shut Chennai(config-if)# encapsulation hdlc Chennai(config-if)# interface serial 0 Chennai(config-if)# ip address 11.0.0.1 255.0.0.0 Chennai(config-if)# no shut Chennai(config-if)# encapsulation hdlc
13
Chennai(config)# no ip routing Chennai(config)# ip routing Chennai(config)# router ospf 2 Chennai(config-router)# network 192.168.2.0 0.0.0.255 area 0 Chennai(config-router)# network 10.0.0.0 0.255.255.255 area 0 Chennai(config-router)# network 11.0.0.0 0.255.255.255 area 0 Configuring OSPF Chennai(config-router)# Router(config)# router ospf <pid> Router(config-router)# network <Network ID> <wildcard mask> area <area id>
14
Chennai(config)# no ip routing Chennai(config)# ip routing Chennai(config)# router ospf 2 Chennai(config-router)# network 192.168.2.0 0.0.0.255 area 0 Chennai(config-router)# network 10.0.0.0 0.255.255.255 area 0 Chennai(config-router)# network 11.0.0.0 0.255.255.255 area 0 Chennai(config-router)# ^Z Chennai# show ip route
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
C 10.0.0.0/8 is directly connected, Serial1 C 11.0.0.0/8 is directly connected, Serial0 O 192.168.1.0/24 [110/74] via 10.0.0.1, 00:01:33, Serial1 C 192.168.2.0/24 is directly connected, Ethernet0 O 192.168.3.0/24 [110/74] via 11.0.0.2, Metric of but OSPF 00:01:33, Serial0 110 is nothing O for OSPF routes 15 Administrative Distance Chennai# Cost
Link ID ADV Router 192.168.1.150 192.168.1.150 192.168.2.150 192.168.2.150 192.168.3.150 192.168.3.150 Chennai# show ip ospf neighbor
Link 3 5 3
Pri 1 1
16
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\> telnet 192.168.3.150 Connecting ..... ================================ Welcome to Banglore Router ================================ User Access Verification password : **** Banglore> enableDirectly Connected Networks on Banglore Router password : **** Banglore# configure terminal 192.168.3.0 Enter configuration commands, one per line. End with CNTL/Z. 11.0.0.0 Banglore(config)# interface serial 1 Banglore(config-if)# ip address 11.0.0.2 255.0.0.0 Banglore(config-if)# no shut Banglore(config-if)# clockrate 64000 Banglore(config-if)# encapsulation hdlc Banglore(config-if)# exit Banglore(config)#
17
Banglore(config)# no ip routing Banglore(config)# ip routing Banglore(config)# router ospf 1 Banglore(config-router)# network 192.168.3.0 0.0.0.255 area 0 Banglore(config-router)# network 11.0.0.0 0.255.255.255 area 0 Banglore(config-router)# Configuring OSPF Router(config)# router ospf <pid> Router(config-router)# network <Network ID> <wildcard mask> area <area id>
18
Banglore(config)# no ip routing Banglore(config)# ip routing Banglore(config)# router ospf 1 Banglore(config-router)# network 192.168.3.0 0.0.0.255 area 0 Banglore(config-router)# network 11.0.0.0 0.255.255.255 area 0 Banglore(config-router)# ^Z Banglore# show ip route
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, Serial1 C 11.0.0.0/8 is directly connected, Serial1 O 192.168.1.0/24 [110/138] via 11.0.0.1, 00:02:09, Serial1 Metric of but OSPF 110 is nothing for OSPF routes O O 192.168.2.0/24 [110/74] via 11.0.0.1, 00:02:09, Serial1 Administrative Distance Cost C 192.168.3.0/24 is directly connected, Ethernet0 Banglore#
19
Link 3 5 3
Banglore# show ip ospf neighbor Neighbor ID 192.168.2.150 Banglore# Pri 1 State FULL/ Dead Time 00:00:37 Address 11.0.0.10.1
20
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Hyderabad#
21
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Chennai#
22
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Banglore#
23