CVM Lab 08 PDF
CVM Lab 08 PDF
qxd
7/14/06
11:47 AM
Page 37
Lab 8
Single-Area and Multiarea OSPF
Configuration
This CCNA Video Mentor lab shows how to configure OSPF using several different styles of OSPF
network commands, both for a single area and for multiple areas. In particular, the objectives of this
lab are the following:
Configure the OSPF network command to correctly match an interface and place it into the
correct area
Describe generally how the wildcard mask controls how the OSPF network command works
Configure an Area Border Router (ABR) by placing different interfaces in different areas
Scenario
This lab contains three main steps, as follows:
Step 1.
Examine the single-area OSPF configuration on three routers (R1, R2, and R3)
Step 2.
Step 3.
Analyze how a router chooses its OSPF RID and verify the RID chosen by a router
1682_ch08.qxd
38
7/14/06
11:47 AM
Page 38
Example 8-1
hostname R1
!
interface FastEthernet 0/0
ip address 172.22.11.1 255.255.255.0
!
interface FastEthernet 0/1
ip address 172.22.10.1 255.255.255.0
!
interface loopback 1
ip address 11.11.11.11 255.255.255.0
!
interface loopback 2
ip address 1.1.1.1 255.255.255.0
!
router ospf 1
network 172.22.11.1 0.0.0.0 area 0
network 172.22.10.1 0.0.0.0 area 0
Example 8-2
Example 8-3
0.0.255.255 area 0
1682_ch08.qxd
7/14/06
11:47 AM
Page 39
OSPF Configuration
39
hostname R5
!
interface Serial0/0
ip address 172.22.115.5 255.255.255.0
!
interface FastEthernet0/0
ip address 172.22.15.5 255.255.255.0
Example 8-6
hostname R6
!
interface Serial0/0
ip address 172.22.116.6 255.255.255.0
!
interface FastEthernet0/0
ip address 172.22.16.6 255.255.255.0
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 6
Ending Configurations
This lab video ends with R1 having added configuration to support areas 5 and 6 and with OSPF
configuration having been added to router R5. Example 8-6 shows the configuration added to R1,
with Example 8-7 showing all pertinent configuration of R5.
Example 8-6
interface Serial0/1/0
ip address 172.22.115.1 255.255.255.0
clock rate 1536000
no shutdown
!
1682_ch08.qxd
40
7/14/06
11:47 AM
Page 40
Example 8-6
continued
interface Serial0/1/1
ip address 172.22.116.1 255.255.255.0
clock rate 1536000
no shutdown
!
router ospf 1
network 172.22.115.1 0.0.0.0 area 5
network 172.22.116.1 0.0.0.0 area 6
Example 8-7
router ospf 1
network 0.0.0.0 255.255.255.255 area 5
Step 1 Reference
Figure 8-1
4!
4
1682_ch08.qxd
7/14/06
11:47 AM
Page 41
Figure 8-2
OSPF Configuration
Subnet
172.22.13.0/24
R2
R3
172.22.12
Fa0/0
Area 0
172.22.13
Fa0/0
.3
Subnet
172.22.10.0/24
Fa0/1
172.22.10
.1
R1
172.22.11
Fa0/0
.1
Subnet
172.22.11.0/24
Figure 8-3
! "
# !
$
%!
&
Table 8-1
'( !
! $(
! !
)"*
Wildcard Mask
Meaning
0.0.0.0
0.0.0.255
0.0.255.255
0.255.255.255
255.255.255.255
41
1682_ch08.qxd
42
7/14/06
11:47 AM
Page 42
Step 2 Reference
Figure 8-4
4!
4
4#
4$
Figure 8-5
4!
4
4#
4$
1682_ch08.qxd
7/14/06
11:47 AM
Page 43
Figure 8-6
OSPF Configuration
43
Area 0
Fa0/0
Fa0/0
R2
R3
Fa0/1
Fa0/1
Fa0/1
Fa0/0
S0/1/0
R1
S0/1/1
Area 6
Area 5
S0/0
R5
Fa0/0
S0/0
R6
Fa0/0
Step 3 Reference
OSPF chooses its router ID using the following sequence of choices:
1. As configured with the OSPF router-id command (as configured under the router ospf command).
2. If the router-id command is not configured, the router uses the highest IP address of all
1682_ch08.qxd
44
7/14/06
11:47 AM
Page 44
Figure 8-7
4
4
4!