Академический Документы
Профессиональный Документы
Культура Документы
OSPF (contd..)
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 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.
HYD
11.0.0.1/8
S0
S1
10.0.0.2/8
E0
192.168.1.150/24
LAN - 192.168.1.0/24
CHE
S1
11.0.0.2/8
E0
192.168.2.150/24
LAN - 192.168.2.0/24
BAN
E0
192.168.3.150
LAN - 192.168.3.0/24
Disadvantages of OSPF
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
Configuring OSPF
Router(config)#
Router(config)#router
routerospf
ospf<pid>
<pid>
Router(config-router)#
Router(config-router)# network
network <Network
<Network ID>
ID>
<wildcard
<wildcardmask>
mask>area
area<area
<areaid>
id>
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
10
ADV Router
192.168.1.150
192.168.2.150
192.168.3.150
Age
790
234
232
Seq#
0x80000003
0x80000005
0x80000003
Checksum
0x897B
0x542
0xD328
Pri
1
State
FULL/
Dead Time
00:00:36
Address
10.0.0.2
11
Link
3
5
3
12
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
ConfiguringOSPF
OSPF
Chennai(config-router)#
Router(config)#
Router(config)#router
routerospf
ospf<pid>
<pid>
Router(config-router)#
Router(config-router)# network
network <Network
<Network ID>
ID>
<wildcard
<wildcardmask>
mask>area
area<area
<areaid>
id>
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
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
Neighbor ID
192.168.3.150
192.168.1.150
Chennai#
Pri
1
1
State
FULL/
FULL/
Age
1253
695
693
Seq#
0x80000003
0x80000005
0x80000003
Dead Time
00:00:35
00:00:32
Checksum
0x897B
0x542
0xD328
Address
11.0.0.2
10.0.0.1
15
Link
3
5
3
16
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
ConfiguringOSPF
OSPF
Router(config)#
Router(config)#router
routerospf
ospf<pid>
<pid>
Router(config-router)#
Router(config-router)# network
network <Network
<Network ID>
ID>
<wildcard
<wildcardmask>
mask>area
area<area
<areaid>
id>
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)# ^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
18
ADV Router
192.168.1.150
192.168.2.150
192.168.3.150
Age
1506
948
944
Seq#
0x80000003
0x80000005
0x80000003
Checksum
0x897B
0x542
0xD328
Link
3
5
3
Pri
1
State
FULL/
Dead Time
00:00:37
Address
11.0.0.10.1
19
!!!!!
!!!!!
Hyderabad#
20
!!!!!
!!!!!
Chennai#
21
!!!!!
!!!!!
Banglore#
22