Site is Under Maintenance
Please come back again in...
00 Days
00 Hours
00 Minutes
00 Seconds

Configuring OSPF Priority Tutorial

configuring-ospf-priority.htm

Configuring OSPF Priority

When architecting a correct OSPF network, you may need to have specific routers or layer 3 switches be the DR and/or BDR. The OSPF election process is influenced by the OSPF Priority. This lab will discuss and demonstrate the configuration and verification of OSPF Priority.

Real World Application & Core Knowledge

If you completed the previous lab then theirs a high possibility that R1 may not be the designated router and this will most definitely cause a routing update problem.

First off when you configured OSPF on R1 first, it extrapolated the loopback interface IP address as its router-id, which in this case would be 10.90.10.1. When enabling OSPF on R2, it would have got the RID of 10.90.20.1. By default both routers interface priority would have been 1 so the DR/BDR election process tie breaker would have been the router ID, and in this case R2 would have became the Designated Router as it has a higher router ID number and R1 would have became the DBR.

Take a step back and look at the big picture for a minute and lets say R5 needs to send an Update to the DR, in which case it will look up the frame relay map and send the multicast update to 224.0.0.5 out dlci 521. In order to get to the DR (R2) the packet must traverse R1. Now if you think back and remember in Lab 9-1, you should recall that OSPF sends multicast traffic using a TTL of 1, so with this in mind soon as the packet reaches R1, it would not be forwarded to the DR because its TTL would be decremented to 0 and dropped. With this being a problem, routers on the hub and spoke network would not function properly as updates would not properly reach the DR.

To fix this problem you need to configure the spoke routers to NEVER become the DR/BDR. This is done by setting the interface priority to 0. The interface priority is an integer between 0-255 and is configured using the ip ospf priority # command in interface configuration mode.

You could also fix this problem by raising R1’s frame-relay hub and spoke interface priority to 10 for example but this would not prevent R2, R4 and R5 from becoming a BDR, in which case would become the DR in the event of a DR failure thus putting you back at square one.

You can verify which neighbors are the DR/BDR/DROTHER by using the show ip ospf neighbor command in privileged mode.

Familiarize yourself with the following new command(s);

| Command | Description |
| ip ospf priority # | Configures an OSPF priority on a per interface basis used to manipulate the DR/BDR election process. |

The following logical topology shown below is used in labs found through out Section 9 – Configuring OSPF;

Lab Prerequisites

  • If you are using GNS3 than load the Free CCNA Workbook GNS3 topology than start devices; R1, R2, R3, R4, R5 and SW1.
  • Establish a console session with devices R1, R2, R3, R4, R5 and SW1 than load the initial configurations provided below by copying the config from the textbox and pasting it into the respected routers console.

!##################################################
!# Free CCNA Workbook Lab 9-2 R1 Initial Config #
!##################################################
!
enable
configure terminal
!
hostname R1
no ip domain-lookup
!
interface Loopback0
description ### SIMULATED NETWORK ###
ip address 10.90.10.1 255.255.255.0
!
interface Serial0/0
description ### PHYSICAL FRAME RELAY INTERFACE ###
ip address 10.90.2451 255.255.255.248
ip ospf network broadcast
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 10.90.2455 125 broadcast
frame-relay map ip 10.90.2454 124 broadcast
frame-relay map ip 10.90.2452 122 broadcast
no frame-relay inverse-arp
no shut
exit
!
router ospf 1
log-adjacency-changes
network 10.90.2451 0.0.0.0 area 0
!
line con 0
logging sync
no exec-timeout
!
end

!##################################################
!# Free CCNA Workbook Lab 9-2 R2 Initial Config #
!##################################################
!
enable
configure terminal
!
hostname R2
no ip domain-lookup
!
interface Loopback0
description ### SIMULATED NETWORK ###
ip address 10.90.20.1 255.255.255.0
!
interface Serial0/0
description ### PHYSICAL FRAME RELAY INTERFACE ###
ip address 10.90.2452 255.255.255.248
encapsulation frame-relay
ip ospf network broadcast
serial restart-delay 0
no frame-relay inverse-arp
frame map ip 10.90.2451 221 broadcast
frame map ip 10.90.2454 221
frame map ip 10.90.2455 221
no shut
!
interface Serial0/2

POINT-TO-POINT LINK TO R3

ip address 10.90.23.1 255.255.255.252
encapsulation ppp
serial restart-delay 0
no shut
exit
!
router ospf 1
log-adjacency-changes
network 10.90.2452 0.0.0.0 area 0
!
line con 0
logging sync
no exec-timeout
!
end

!##################################################
!# Free CCNA Workbook Lab 9-2 R3 Initial Config #
!##################################################
!
enable
configure terminal
!
hostname R3
no ip domain-lookup
!
interface Loopback0
description ### SIMULATED NETWORK ###
ip address 10.90.30.1 255.255.255.0
!
interface Serial0/1
description ### POINT-TO-POINT LINK TO R2 ###
ip address 10.90.23.2 255.255.255.252
encapsulation ppp
no shut
exit
!
line con 0
logging sync
no exec-timeout
!
end

!##################################################
!# Free CCNA Workbook Lab 9-2 R4 Initial Config #
!##################################################
!
enable
configure terminal
!
hostname R4
no ip domain-lookup
!
interface Loopback0
description ### SIMULATED NETWORK ###
ip address 10.90.40.1 255.255.255.0
!
interface FastEthernet0/0
description ### REAL NETWORK ###
ip address 10.90.145.1 255.255.255.0
no shut
!
interface Serial0/0
description ### PHYSICAL FRAME RELAY INTERFACE ###
ip address 10.90.2454 255.255.255.248
encapsulation frame-relay
ip ospf network broadcast
serial restart-delay 0
no frame-relay inverse-arp
frame map ip 10.90.2451 421 broadcast
frame map ip 10.90.2452 421
frame map ip 10.90.2455 421
no shut
!
interface Serial0/1
description ### POINT-TO-POINT LINK TO R5 ###
ip address 10.90.451 255.255.255.252
encapsulation ppp
serial restart-delay 0
no shut
exit
!
router ospf 1
log-adjacency-changes
network 10.90.2454 0.0.0.0 area 0
!
line con 0
logging sync
no exec-timeout
!
end

!##################################################
!# Free CCNA Workbook Lab 9-2 R5 Initial Config #
!##################################################
!
enable
configure terminal
!
hostname R5
no ip domain-lookup
!
interface Loopback0
description ### SIMULATED NETWORK ###
ip address 10.90.50.1 255.255.255.0
!
interface FastEthernet0/0
description ### REAL NETWORK ###
ip address 10.90.145.2 255.255.255.0
no shut
!
interface Serial0/0
description ### PHYSICAL FRAME RELAY INTERFACE ###
ip address 10.90.2455 255.255.255.248
encapsulation frame-relay
ip ospf network broadcast
serial restart-delay 0
no frame-relay inverse-arp
frame map ip 10.90.2451 521 broadcast
frame map ip 10.90.2452 521
frame map ip 10.90.2454 521
no shut
!
interface Serial0/1
description ### POINT-TO-POINT LINK TO R4 ###
ip address 10.90.452 255.255.255.252
encapsulation ppp
serial restart-delay 0
no shut
exit
!
router ospf 1
log-adjacency-changes
network 10.90.2455 0.0.0.0 area 0
!
line con 0
logging sync
no exec-timeout
!
end

!##################################################
!# Free CCNA Workbook Lab 9-1 SW1 Initial Config #
!##################################################
!
enable
configure terminal
!
hostname SW1
no ip domain-lookup
!
line con 0
logging sync
no exec-timeout
!
end

Lab Objectives

  • Configure the Serial interfaces on the Frame relay spoke routers with an OSPF priority to ensure they NEVER become the DR/BDR.
  • Clear the OSPF routing process on R1 so that all neighbor relationships are rebuilt then using R2, verify that R1 has became the DR.

Lab Instruction

Objective 1. – Configure the Serial interfaces on the Frame relay spoke routers with an OSPF priority to ensure they NEVER become the DR/BDR.

R2>enable
R2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#interface Serial0/0
R2(config-if)#ip ospf priority 0
R2(config-if)#end
R2#

<br>

R4>enable
R4#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R4(config)#interface Serial0/0
R4(config-if)#ip ospf priority 0
R4(config-if)#end
R4#
R5>enable
R5#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R5(config)#interface Serial0/0
R5(config-if)#ip ospf priority 0
R5(config-if)#end
R5#

Objective 2. – Clear the OSPF routing process on R1 so that all neighbor relationships are rebuilt then using R2, verify that R1 has became the DR.

R1#clear ip ospf 1 proc
Reset OSPF process? [no]: y
R1#
%OSPF-5-ADJCHG: Process 1, Nbr 10.90.20.1 on Serial0/0 from FULL to DOWN, Neighbor Down: Interface down or detached
%OSPF-5-ADJCHG: Process 1, Nbr 10.90.40.1 on Serial0/0 from FULL to DOWN, Neighbor Down: Interface down or detached
%OSPF-5-ADJCHG: Process 1, Nbr 10.90.50.1 on Serial0/0 from FULL to DOWN, Neighbor Down: Interface down or detached
R1#
%OSPF-5-ADJCHG: Process 1, Nbr 10.90.20.1 on Serial0/0 from LOADING to FULL, Loading Done
%OSPF-5-ADJCHG: Process 1, Nbr 10.90.50.1 on Serial0/0 from LOADING to FULL, Loading Done
%OSPF-5-ADJCHG: Process 1, Nbr 10.90.40.1 on Serial0/0 from LOADING to FULL, Loading Done
R1#
R2#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
10.90.10.1        1   FULL/DR         00:00:31    10.90.2451      Serial0/0
R2#

Rate This Article

Thanks for reading: Configuring OSPF Priority Tutorial, Sorry, my English is bad:)

Getting Info...

About the Author

I'm Aevon...Just a gal with an insane passion for all things cybersecurity. 17 years in the industry and still love what I'm doing.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.