Beruflich Dokumente
Kultur Dokumente
Device Host Fast Etherner Serial 0/0/0 Serial 0/0/0 Enable Enable, vty
Name 0/0 NIC Address Address Interface Secret and Console
Type Password Password
Router 1 R1 192.168.0.1/24 192.168.2.1/30 DCE cisco class
Router 2 R2 192.168.1.1/24 192.168.2.2/30 DTE cisco class
Switch 1 S1 cisco class
Host 1 192.168.0.10
Host 2 192.168.1.10
b. Verify the OSPF configuration using the show ip route command on both routers.
R1#show ip route
R2#show ip route
Does the 192.168.1.0/24 network appear in the routing table of R1? No appear __________
Does the 192.168.0.0/24 network appear in the routing table of R2? No appear__________
c. Use the show ip ospf neighbor detail command on R1 to determine which routers are the
DR and BDR.
R1#show ip ospf neighbor detail
Neighbor 10.0.2.1, interface address 192.168.1.2
In the area 0 via interface FastEthernet0/0
Neighbor priority is 1, State is FULL, 5 state changes
DR is 192.168.1.1 BDR is 192.168.1.2
Options is 0x00
Dead timer due in 00:00:30
Neighbor is up for 00:05:09
Index 1/1, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor 10.0.1.1, interface address 192.168.1.3
In the area 0 via interface FastEthernet0/0
Neighbor priority is 1, State is FULL, 6 state changes
DR is 192.168.1.1 BDR is 192.168.1.2
Options is 0x00
Dead timer due in 00:00:34
Neighbor is up for 00:03:25
Index 2/2, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
R1#
Which router is the DR? Router 1 (192.168.1.1) ___________
Which router is the BDR? Router 2 (192.168.1.2)__________
What factor determined which router was the DR and which was the BDR in this scenario?
e. After the processes have been reset, use the show ip ospf neighbor detail command to
recheck the DR/BDR status.
R1#show ip ospf neighbor detail
Neighbor 10.0.1.1, interface address 192.168.1.3
In the area 0 via interface FastEthernet0/0
Neighbor priority is 1, State is FULL, 6 state changes
DR is 192.168.1.1 BDR is 192.168.1.2
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:34
Neighbor is up for 00:11:55
Index 2/2, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor 10.0.2.1, interface address 192.168.1.2
In the area 0 via interface FastEthernet0/0
Neighbor priority is 1, State is FULL, 6 state changes
DR is 192.168.1.1 BDR is 192.168.1.2
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:31
Neighbor is up for 00:11:57
Index 1/1, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
Which router is now the DR? ____________
Which router is now the BDR? ___________
What factor determined which router was elected as the DR?
__________________________________________________________
Step 6: Use router interface priority to determine DR election
a. Another method that is used to determine the DR/BDR election is router interface priority. Use the
show ip ospf interface command to determine the default priority settings on the routers.
R1#show ip ospf interface
FastEthernet0/0 is up, line protocol is up
Internet Address 192.168.1.1/24, Area 0
Process ID 1, Router ID 10.0.3.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 10.0.3.1, Interface address 192.168.1.1
Backup Designated router (ID) 10.0.2.1, Interface address 192.168.1.2
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:03
Supports Link-local Signaling (LLS)
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 2
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 2, Adjacent neighbor count is 2
Adjacent with neighbor 10.0.1.1
Adjacent with neighbor 10.0.2.1 (Backup Designated Router)
Suppress hello for 0 neighbor(s)
What is the default interface priority for the Fa0/0 interfaces? __1___________
Which path to the 10.0.0.0 network is now preferred by R1? O 10.0.0.0 [110/1626] via 192.168.1.2,
00:00:00, Serial0/0/0
Why is that path preferred? _______________________________________________________
What is the cost shown to the 10.0.0.0 network now? 3562
How is this cost calculated? ________________________________________________________
_______________________________________________________________________________
Step 7: Reflection
a. What determines the path chosen by OSPF?
________________________________________________________________________________
________________________________________________________________________________
b. What has a more direct effect on the OSPF cost of a link: the bandwidth setting or the ip ospf
cost setting?
ip ospf coast setting.
e. Reload the routers to force the new router IDs to be used. When a new router ID is configured, it is
not used until the OSPF process is restarted. Make sure that the current configuration is saved to
NRAM, and then use the reload command to restart each of the routers.
When the router is reloaded, what is the router ID for R1? 10.1.1.1__________________________
When the router is reloaded, what is the router ID for R2? 10.2.2.2__________________________
When the router is reloaded, what is the router ID for R3? 10.3.3.3__________________________
c. Use the show ip ospf interface command to verify that the OSPF has been configured
correctly and that R3 is the DR.
R3#show ip ospf interface
FastEthernet0/0 is up, line protocol is up
Internet address is 192.168.1.3/24, Area 0
Process ID 1, Router ID 192.168.31.33, Network Type BROADCAST, Cost:
1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 192.168.31.33, Interface address 192.168.1.3
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:07
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
NOTE: Wait at least 40 seconds for a hello packet to be sent in order to see the state change. If a
state says WAITING, wait longer because it will change to a DR.
What type of network has OSPF detected for this interface? State DR_________
What is the IP address of this interface?192.168.1.3_____
What is the OSPF cost for this interface? 1 ___________________________________
What is the router ID of this router? 192.168.1.3 ____________________________________
i. Use the show ip ospf interface command on the R3 router to verify that R3 has become the
BDR.
R3#show ip ospf interface
FastEthernet0/0 is up, line protocol is up
Internet address is 192.168.1.3/24, Area 0
Process ID 1, Router ID 192.168.31.33, Network Type BROADCAST, Cost:
1
Transmit Delay is 1 sec, State BDR, Priority 100
Designated Router (ID) 192.168.31.11, Interface address 192.168.1.1
<output omitted>
Step 9: Reflection
a. When the OSPF process starts, what happens if there is no active interface on the router?
________________________________________________________________________________
b. What can be done to ensure there will be an active interface on a router?
________________________________________________________________________________
c. How are the DR and BDR elected in an OSPF network?
________________________________________________________________________________
________________________________________________________________________________
d. What OSPF interface priority value prevents a router from being elected as a DR? __________