CN Lab 2022bcs035
CN Lab 2022bcs035
CN Lab 2022bcs035
Key terms:
1. Router Id – It is the router's highest-ranking IP address that is currently in use.
The highest loopback address is considered first. The router's interface's highest
active IP address is considered if no loopback is specified.
2. Router priority – In a broadcast network, it is an 8-bit number that is allocated to
a router running OSPF and used to elect DR and BDR.
3. Designated Router (DR) – The decision was made to reduce the amount of
newly generated adjacencies. The LSAs are distributed to every other router by
DR. In a broadcast network, where every other router shares its DBD, DR is
chosen. In a broadcast network, DR responds to a request for an update from the
router by providing the requested information.
4. Backup Designated Router (BDR) – BDR is a backup to DR in a broadcast
network. When DR goes down, BDR becomes DR and performs its functions.
5. DR and BDR election – DR and BDR election takes place in the broadcast
network or multi-access network. Here are the criteria for the election:
The router having the highest router priority will be declared as DR.
If there is a tie in router priority, then the highest router I’d be
considered. First, the highest loopback address is considered. If no
loopback is configured, then the highest active IP address on the
interface of the router is considered.
IP ADDRESS :192.168.1.2
SUBNET MASK:255.255.255.0
DEFAULT GATEWAY: 192.168.1.1
IP ADDRESS:192.168.2.2
SUBNET MASK:255.255.255.0
DEFAULT GATEWAY: 192.168.2.1
Config the router0 and router2:
IP ADDRESS :192.168.1.1
SUBNET MASK:255.255.255.0
IP ADDRESS :192.168.2.1
SUBNET MASK:255.255.255.0
Now config the serial port for all routers as shown in figure
Configure the Router0 and create router OSPF 1 and then add network id with
wildcard mask.
Router(config)#router ospf 1
Router(config-router) #network 192.168.1.0 0.0.0.255 area 0
Router(config-router) #network 10.0.0.0 0 0.0.0.255 area 0
Router(config-router) #network 20.0.0.0 0 0.0.0.255 area 0
Configure the Router1 and create router OSPF 1 and then add network id with
wildcard mask.
Router(config)#router ospf 1
Router(config-router) #network 10.0.0.0 0 0.0.0.255 area 0
Router(config-router) #network 20.0.0.0 0 0.0.0.255 area 0
Configure the Router2 and create router OSPF 1 and then add network id with
wildcard mask.
Router(config)#router ospf 1
Router(config-router) #network 192.168.2.0 0.0.0.255 area 0
Router(config-router) #network 20.0.0.0 0 0.0.0.255 area 0
Router(config-router) #network 30.0.0.0 0 0.0.0.255 area 0