B OSON N ET S IM FOR CCNP R OUTING
LAB 5
SINGLE
AREA
OSPF
Boson Software
12655 Race Track Road
Tampa, FL 33626
https://www.wendangku.net/doc/0812206412.html,
Configuring Single Area OSPF
Objectives
Configure the network to use OSPF for a single area. All OSPF
routers will be in AREA 0.
Lab Diagram
BSCI CCNP Version # 2.1 Page 2
Command Summary
Command Description
router ospf process-id changes to router config mode for an OSPF
process
network address wildcard-mask area area defines which interfaces run OSPF and
which areas they operate in
show ip ospf display OSPF process information
show ip ospf neighbor display OSPF neighbor information
show ip ospf database display OSPF link state database
show ip ospf interface display OSPF interface information
router-id defines which IP address OSPF should use
as its router id
clear ip ospf process stops and restarts the OSPF process
BSCI CCNP Version # 2.1 Page 3
Task 1
Enabling OSPF Within Your Pod
Note: This lab assumes you have completed the EIGRP lab. The completed
EIGRP lab will be loaded if you loaded this lab from the Lab Navigator.
1. From R2 execute the show ip route command to display the routing table.
What is the administrative distance of the EIGRP Routes?
______________________________________________________________
2. Turn off EIGRP on R1, R2, and R3 (no router eigrp 200).
3. Configure OSPF on R1, R2 and R3 using a Process ID of 1. All interfaces
(including loopbacks) should be placed in AREA 0.
4. Do two routers have to have the same OSPF Process ID to set up a neighbor
relationship?
______________________________________________________________
5. Write down the OSPF commands you configured on your R1 router.
______________________________________________________________
______________________________________________________________
______________________________________________________________
6. On your R1 router display the IP routing table. All EIGRP routes should have
disappeared.
7. On your R1 router how many OSPF Routes do you have?
______________________________________________________________
8. What is the administrative distance of the OSPF routes?
______________________________________________________________
9. Use the show ip protocols command to verify the new administrative
distance value.
BSCI CCNP Version # 2.1 Page 4
Task 2
Using The “Show IP OSPF” Command
From R1 type in the command show ip ospf. Use the output to answer the
following questions.
1. What is your Router ID?
______________________________________________________________
2. Why did the router select this Router ID?
______________________________________________________________
3. How many times has your router executed SPF?
______________________________________________________________
4. How many interfaces are in Area 0?
______________________________________________________________
5. How many areas does this router participate in?
______________________________________________________________
Task 3
Using The “Show IP OSPF Neighbor” Command
From your R1 router type in the command show ip ospf neighbor. Use the
output to answer the following questions.
1. How many neighbors does your R1 router have?
______________________________________________________________
2. What does it mean when it says the state is “Full” ?
______________________________________________________________
BSCI CCNP Version # 2.1 Page 5
3. Which of your neighbors on your FastEthernet 0/0 interface is the DR ?
NOTE: if no DR is shown, your router is the DR, consult with your partner to
prove this.
______________________________________________________________
4. Why is their no DR/BDR on your Serial 0 interface?
______________________________________________________________
Task 4
Using The “Show IP OSPF Database” Command
On your R1 router execute the show ip ospf database command. Use the
output to answer the following questions.
1. How many LSA types are shown?
______________________________________________________________
2. What type of router generates a router link LSA?
______________________________________________________________
3. What type of router generates a network link LSA?
______________________________________________________________
Task 5
Using The “Show IP OSPF Interface” Command
On your R1 router execute the show ip ospf interface command. Use the
output to answer the following questions.
BSCI CCNP Version # 2.1 Page 6
1. How many interfaces are configured for OSPF?
______________________________________________________________
2. What is the router ID used for every interface?
______________________________________________________________
3. How often are hellos sent out?
______________________________________________________________
4. What is your R1 router’s FastEthernet 0/0 address?
______________________________________________________________
5. What area is the FastEthernet 0/0 interface in?
______________________________________________________________
6. What is the cost for using the FastEthernet 0/0 interface?
______________________________________________________________
7. What is the priority number for the FastEthernet 0/0 interface?
______________________________________________________________
8. What is the IP address of Designated Router?
______________________________________________________________
9. What is the interface IP address of Designated Router?
______________________________________________________________
10. What is the IP address of Backup Designated Router
______________________________________________________________
11. What is the interface IP address of Backup Designated Router?
______________________________________________________________
12. What is your R1 router’s Serial 0/0 IP address?
______________________________________________________________
13. What area is the Serial 0/0 interface in?
______________________________________________________________
14. What is the cost for using the Serial 0/0 interface?
______________________________________________________________
BSCI CCNP Version # 2.1 Page 7
15. What is the priority number for the Serial 0/0 interface?
______________________________________________________________
Lab is now complete!
BSCI CCNP Version # 2.1 Page 8
Lab Solutions
Task 1
1. 90
2. no router eigrp 200
3.
P1R1(config)#router ospf 1
P1R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
P1R1(config-router)#network 10.100.100.0 0.0.0.255 area 0
P1R2(config)#router ospf 1
P1R2(config-router)#network 192.168.1.0 0.0.0.255 area 0
P1R3(config)#router ospf 1
P1R3(config-router)#network 192.168.1.0 0.0.0.255 area 0
4. no
5. router ospf 1
network 192.168.1.0 0.0.0.255 area 0
network 10.100.100.0 0.0.0.255 area 0
BSCI CCNP Version # 2.1 Page 9
P1R1#show ip route
10.0.0.0/24 is subnetted, 1 subnets
C 10.100.100.0 is directly connected, Ethernet0
192.168.1.0/24 is variably subnetted, 4 subnets, 2 masks
C 192.168.1.32/28 is directly connected, Serial0/0
O 192.168.1.48/28 [110/65] via 192.168.1.34, 00:00:38, Serial0/0
C 192.168.1.0/28 is directly connected, Loopback0
O 192.168.1.17/32 [110/65] via 192.168.1.34, 00:00:38, Serial0/0
192.168.2.0/24 is variably subnetted, 4 subnets, 2 masks
O 192.168.2.32/28 [110/74] via 10.100.100.2, 00:00:39, FastEthernet0/0
O 192.168.2.49/32 [110/11] via 10.100.100.2, 00:00:39, FastEthernet0/0
O 192.168.2.1/32 [110/11] via 10.100.100.2, 00:00:39, FastEthernet0/0
O 192.168.2.17/32 [110/11] via 10.100.100.2, 00:00:39, FastEthernet0/0
7. 6
8. 110
BSCI CCNP Version # 2.1 Page 10
P1R1#show ip protocols
Routing Protocol is "ospf 1"
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Routing for Networks:
10.100.100.0/24
192.168.1.0
Routing Information Sources:
Gateway Distance Last Update
192.168.1.17 110 00:03:47
Distance: (default is 110)
BSCI CCNP Version # 2.1 Page 11
Task 2
P1R1#show ip ospf
Routing Process "ospf 1" with ID 192.168.1.1 and Domain ID 0.0.0.1
Supports only single TOS(TOS0) routes
Supports opaque LSA
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
Number of external LSA 0. Checksum Sum 0x0
Number of opaque AS LSA 0. Checksum Sum 0x0
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 3
Area has no authentication
SPF algorithm executed 5 times
Area ranges are
Number of LSA 4. Checksum Sum 0x139DB
Number of opaque link LSA 0. Checksum Sum 0x0
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
1. 19
2.168.1.1
2. This is the Loopback IP address on the router, OSPF prefers a stable Router
ID, if Loopback interfaces are present OSPF will not consider other interface
types.
3. 5
4. 3
5. 1
BSCI CCNP Version # 2.1 Page 12
P1R1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.2.1 1 FULL/DR 00:00:38 10.100.100.2 FastEthernet0/0
192.168.1.17 1 FULL/ - 00:00:35 192.168.1.34 Serial0/0
1. 2
2. Neighbors have exchanged their LSA databases.
3. 192.168.2.1
4. DR/BDR elections do not take place on serial point-to-point networks.
BSCI CCNP Version # 2.1 Page 13
P1R1#show ip ospf database
OSPF Router with ID (192.168.1.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
192.168.1.1 192.168.1.1 296 0x80000003 0x62A9 4
192.168.1.17 192.168.1.17 987 0x80000005 0x5D05 4
192.168.1.50 192.168.1.50 988 0x80000002 0x15A2 1
192.168.2.1 192.168.2.1 289 0x80000005 0xCD6 4
192.168.2.49 192.168.2.49 194 0x80000005 0x22F6 4
192.168.2.50 192.168.2.50 374 0x80000008 0x1795 1
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
10.100.100.1 192.168.1.1 296 0x80000001 0xEA38
192.168.1.49 192.168.1.17 987 0x80000001 0x5DBC
192.168.2.50 192.168.2.50 374 0x80000001 0xCD06
1. 2
2. Internal router
3. Designated Router
BSCI CCNP Version # 2.1 Page 14
P1R1#show ip ospf interface
Serial0/0 is up, line protocol is up
Internet Address 192.168.1.33/28, Area 0
Process ID 1, Router ID 192.168.1.1, Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:08
Index 3/3, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 2, maximum is 3
Last flood scan time is 0 msec, maximum is 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.1.17
Suppress hello for 0 neighbor(s)
Loopback0 is up, line protocol is up
Internet Address 192.168.1.1/28, Area 0
Process ID 1, Router ID 192.168.1.1, Network Type LOOPBACK, Cost: 1
Loopback interface is treated as a stub Host
FastEthernet0/0 is up, line protocol is up
Internet Address 10.100.100.1/24, Area 0
Process ID 1, Router ID 192.168.1.1, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 192.168.2.1, Interface address 10.100.100.2
Backup Designated router (ID) 192.168.1.1, Interface address 10.100.100.1
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 2, maximum is 2
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
BSCI CCNP Version # 2.1 Page 15
Adjacent with neighbor 192.168.2.1 (Designated Router)
Suppress hello for 0 neighbor(s)
1. 3
2. 192.168.1.33
3. 10 seconds
4. 10.100.100.1
5. Area 0
6. 1
7. 1
8. 192.168.2.1
9. 10.100.100.2
10. 192.168.1.1
11. 10.100.100.1
12. 192.168.1.33
13. Area 0
14. 64
15. 1
BSCI CCNP Version # 2.1 Page 16
BSCI CCNP
Version # 2.1 Page 17
Sample OSPF Configuration Scripts
Pod 1 Router 1
Pod 1 Router 2
hostname P1R1 !
interface Loopback0
ip address 192.168.1.1 255.255.255.240 !
interface FastEthernet0/0
ip address 10.100.100.1 255.255.255.0 !
interface Serial0/0
ip address 192.168.1.33 255.255.255.240 no fair-queue clockrate 64000 !
router ospf 1
network 10.100.100.0 0.0.0.255 area 0 network 192.168.1.0 0.0.0.255 area 0
hostname P1R2 !
interface Loopback0
ip address 192.168.1.17 255.255.255.240 !
interface FastEthernet0/0
ip address 192.168.1.49 255.255.255.240 speed auto !
interface Serial0/0
ip address 192.168.1.34 255.255.255.240 no fair-queue !
router ospf 1
network 192.168.1.0 0.0.0.255 area 0 !
Pod 1 Router 3
hostname P1R3
!
interface FastEthernet0/0
ip address 192.168.1.50 255.255.255.240
no ip directed-broadcast
!
router ospf
network 192.168.1.0 0.0.0.255 area 0
!
BSCI CCNP Version # 2.1 Page 18