Beruflich Dokumente
Kultur Dokumente
Key concepts
1.Introduction to OSPF (11.1)
• Scalable,
Scalable robust link-state routing protocol
• Supports hierarchical design using multiple areas
– Reduces overhead, speeds up convergence, confines network
instability to one area, improves performance
• Build a complete topological database
• Uses Dijkstra’s SPF algorithm to build routing table
• Uses cost as metric
2.Basic OSPF configuration (11.2)
• Parameters to be configured
– Process-id, network address & wildcard-mask, area number
• Adjustable OSPF parameters
– Hello & dead interval timing, router priority, metric
Header Data
OSPF packet
Header
Header
OSPF packet
Data
Neighbor establishment
– “Any other OSPF neighbors on any of its links?”
1. Send and receive hello on all OSPF-enabled interfaces
2. Determine the OSPF router ID of the sending router
3. Establishes adjacency with the neighbor
DDP
DDP
LSR
LSU
This is detailed information
I have received LSU LSAck
LSR
LSU
This is detailed information
LSAck
R1#show ip ospf
Routing Process "ospf 1" with ID 192.168.10.5
Supports only single TOS(TOS0) routes
<output omitted>
– Ex: Apply the modifications in the above example and verify them
R1#show ip protocols
R1#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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Not advertised
Gateway of last resort is not set by OSPF
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.1.1/32 is directly connected, Loopback0
O 10.10.10.0/24 [110/65] via 192.168.10.2, 00:54:26, Serial0/0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.16/28 is directly connected, FastEthernet0/0
O 172.16.1.32/29 [110/65] via 192.168.10.6, 01:03:15, Serial0/0/1
192.168.10.0/30 is subnetted, 3 subnets
C 192.168.10.0 is directly connected, Serial0/0/0 Not automatically
C 192.168.10.4 is directly connected, Serial0/0/1 summarized
O 192.168.10.8 [110/128] via 192.168.10.6, 00:54:26, Serial0/0/1
[110/128] via 192.168.10.2, 00:54:26, Serial0/0/0
Equal-cost
load balancing
Examine the routing table of R1~R3
CCNA2 Semester 2, 2010 Dept. of Information Communications, Dongyang Mirae Univ. 36
The OSPF Metric
11.1 Introduction to OSPF
11.2 Basic OSPF Configuration
11.3 The OSPF Metric
11.3.1 OSPF Metric
11.3.2 Modifying the Cost of the Link
11.4 OSPF and Multiaccess Networks
11.5 More OSPF Configuration
R1#show ip route
<output omitted>
D Fa0/0 192.168.1.4/24
DR/BDR Election
– DR: Router with the highest OSPF interface priority
– BDR: Router with the second highest OSPF interface priority
– The default OSPF interface priority is 1
• The OSPF interface priority can be modified by:
– Router(config-if)#ip ospf priority {0~255}
– The interface connected to the MA network in the election process
• For equal priority, the highest router ID is used to break the tie.
Adjacencies
– DROthers only form FULL adjacencies with the DR and BDR
– Still form a neighbor (2way) adjacencies with any DROthers
• Still receive Hello packets from all other DROther routers
A#
00:18:15: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.31.33 on FastEthernet0/0 from EXCHANGE to
FULL, Exchange Done
A#sh ip ospf neigh
Making sure that the routers you want to be DR and BDR win
the election
– Changing the OSPF interface priority can control the elections
• OR the router ID if the priorities are identical for all routers in the
broadcast multiple access network
1. Boot up routers in the order of the DR, BDR, and all others, OR
2. Shut down the interface on all routers, then enable DR, BDR,
and then all others.
OSPF Characteristics
– Metric = cost [ = 108/bandwidth [bps] in Cisco IOS]
Lowest cost = best path
Configuration
– Enable OSPF on a router using the following command
R1(config)#router ospf process-id
– Use the network command to define which interfaces
will participate in a given OSPF process
Router(config-router)#network network-address
wildcard-mask area area-id