www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / 101 CCNP Labs Solutions / CCNP Lab 025 Solution: OSPF Multi-Technology Lab

CCNP Lab 025 Solution: OSPF Multi-Technology Lab

Lab Objective:

The focus of this lab is to understand OSPF implementation and configuration in Cisco IOS routers. Additional technologies tested include Frame Relay connectivity and path control.

Lab Topology:

The lab network topology is illustrated below:

department625

 

 

IMPORTANT NOTE

If you are using the www.howtonetwork.net racks, please bring up the LAN interfaces connected to the routers by issuing the no shutdown command on the connected switches. If you are using a home lab with no
Switches, you can bring up the LAN interfaces using the following configurations on your routers:

interface fastethernet 0/0
 no keepalive
 loopback
 no shutdown

Alternately, you can simply connect the interfaces to a hub or switch if you have one available in your own lab. Also, if you are using the www.howtonetwork.net racks, configure R3 as the Frame Relay switch using the following configuration commands:

hostname R3-Frame-Relay-Switch
!
frame-relay switching
!
interface serial 1/0
 description ‘Connected To R1 Serial 0/1’
 encapsulation frame-relay
 no ip address
 clock rate 128000
 frame-relay intf-type dce
 frame-relay route 102 interface serial 1/1 201
 frame-relay route 104 interface serial 1/2 401
 no shutdown
!
interface serial 1/1
 description ‘Connected To R2 Serial 0/1’
 encapsulation frame-relay
 no ip address
 clock rate 128000
 frame-relay intf-type dce
 frame-relay route 201 interface serial 1/0 102
 no shutdown
!
interface serial 1/2
 description ‘Connected To R4 Serial 0/0’
 encapsulation frame-relay
 no ip address
 clock rate 128000
 frame-relay intf-type dce
 frame-relay route 401 interface serial 1/0 104
 no shutdown
!
end

 

Task 1

Configure hostnames and IP addressing on all routers as illustrated in the network topology.

Task 2

Configure the Frame Relay network so that all routers can ping each others’ WAN interfaces.

Task 3

Using interface-based configuration, configure OSPF  area 0 on the Frame Relay WAN between  R1, R2, and R4. Configure OSPF so that there is no DR/BDR election held over the Frame Relay WAN. Ensure that OSPF uses ONLY Unicast packets and not Multicast packets over the Frame Relay WAN. Verify your configuration using the appropriate commands.

Task 4

Advertise the 150.1.1.0/24 subnet connected to the LAN segment on R1 via OSPF. This subnet should be advertised as a Type 1 External LSA with a route tag of 111 and metric of 111.

Task 5

Using interface-based configuration, configure OSPF area 1 on the LAN between R2 and R4. In your configuration, ensure that R2 is elected master during the DBD exchange; however, R4 should be elected as the DR for the segment. Verify your configuration using the appropriate commands and debugs.

Task 6

Configure OSPF so that R1 prefers the path via R2 to reach the 150.5.5.0/24 subnet. If this path is unavailable, the path via R4 should be used. Verify your configuration.

Lab Validation

Task 1

Router(config)#hostname R1
R1(config)#interface fastethernet 0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 150.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface serial 0/1
R1(config-if)#ip address 10.0.0.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#encapsulation frame-relay
R1(config-if)#exit
Router(config)#hostname R2
R2(config)#interface fastethernet 0/0
R2(config-if)#no shutdown
R2(config-if)#ip address 150.5.5.2 255.255.255.0
R2(config-if)#exit
R2(config)#interface serial 0/1
R2(config-if)#ip address 10.0.0.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#encapsulation frame-relay
R2(config-if)#exit
Router(config)#hostname R4
R4(config)#interface fastethernet 0/0
R4(config-if)#no shutdown
R4(config-if)#ip address 150.5.5.4 255.255.255.0
R4(config-if)#exit
R4(config)#interface serial 0/0
R4(config-if)#ip address 10.0.0.4 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#encapsulation frame-relay
R4(config-if)#exit

Task 2
Although Frame Relay configuration is not a CCNP topic, per se, it is still important that you remember your Frame Relay configurations from the CCNA. The task is completed as follows:

R1(config)#interface serial 0/1
R1(config-if)#frame-relay map ip 10.0.0.2 102 broadcast
R1(config-if)#frame-relay map ip 10.0.0.4 104 broadcast
R1(config-if)#exit

On the spoke routers, because the same DLCI is being used, the broadcast keyword should only be specified once to avoid duplicate Broadcast packets across the Frame Relay WAN. This task is completed as follows:

R2(config)#interface serial 0/1
R2(config-if)#frame-relay map ip 10.0.0.1 201 broadcast
R2(config-if)#frame-relay map ip 10.0.0.4 201        Â
R2(config-if)#exit
R4(config)#interface serial 0/0
R4(config-if)#frame-relay map ip 10.0.0.1 401 broadcast
R4(config-if)#frame-relay map ip 10.0.0.2 401        Â
R4(config-if)#exit

Verify your Frame Relay configuration using the show frame-relay map command:

R1#show frame-relay map
Serial0/1 (up): ip 10.0.0.2 dlci 102(0x66,0x1860), static,
broadcast,
CISCO, status defined, active
Serial0/1 (up): ip 10.0.0.4 dlci 104(0x68,0x1880), static,
broadcast,
CISCO, status defined, active
R2#show frame-relay map
Serial0/1 (up): ip 10.0.0.1 dlci 201(0xC9,0x3090), static,
broadcast,
CISCO, status defined, active
Serial0/1 (up): ip 10.0.0.4 dlci 201(0xC9,0x3090), static,
CISCO, status defined, active
R4#show frame-relay map
Serial0/0 (up): ip 10.0.0.1 dlci 401(0x191,0x6410), static,
broadcast,
CISCO, status defined, active
Serial0/0 (up): ip 10.0.0.2 dlci 401(0x191,0x6410), static,
CISCO, status defined, active

Finally, verify that you can ping between all routers across the Frame Relay WAN:

R1#ping 10.0.0.2 repeat 10

Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 28/29/32 ms
R1#
R1#ping 10.0.0.4 repeat 10

Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 10.0.0.4, timeout is 2 seconds:
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 28/29/32 ms

R2#ping 10.0.0.1 repeat 10

Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 28/30/32 ms
R2#
R2#ping 10.0.0.4 repeat 10

Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 10.0.0.4, timeout is 2 seconds:
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 56/59/64 ms

R4#ping 10.0.0.1 repeat 10

Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 28/34/52 ms
R4#
R4#ping 10.0.0.2 repeat 10

Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 56/58/60 ms

Task 3

To ensure that there is no DR/BDR election and allow OSPF to use Unicast and not Multicast packets, you need to specify a point-to-multipoint non-broadcast network type. This network type requires the static configuration of neighbors, which exchange updates using Unicast versus Multicast. This task is completed as follows:

R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#neighbor 10.0.0.2
R1(config-router)#neighbor 10.0.0.4
R1(config-router)#exit
R1(config)#interface serial 0/1
R1(config-if)#ip ospf network point-to-multipoint non-broadcast
R1(config-if)#ip ospf 1 area 0
R1(config-if)#exit
R2(config)#router ospf 2
R2(config-router)#router-id 2.2.2.2
R2(config-router)#neighbor 10.0.0.1
R2(config-router)#exit
R2(config)#interface serial 0/1
R2(config-if)#ip ospf network point-to-multipoint non-broadcast
R2(config-if)#ip ospf 2 area 0
R2(config-if)#exit
R4(config)#router ospf 4
R4(config-router)#router-id 4.4.4.4
R4(config-router)#neighbor 10.0.0.1
R4(config-router)#exit
R4(config)#interface serial 0/0
R4(config-if)#ip ospf network point-to-multipoint non-broadcast
R4(config-if)#ip ospf 4 area 0
R4(config-if)#exit

Verify your configuration using the show ip ospf neighbor command:

R1#show ip ospf neighbor

Neighbor ID     Pri   State       Dead Time   Address         Interface
4.4.4.4           0   FULL/  -    00:01:59    10.0.0.4        Serial0/1
2.2.2.2           0   FULL/  -    00:01:54    10.0.0.2        Serial0/1

R2#show ip ospf neighbor

Neighbor ID     Pri   State       Dead Time   Address         Interface
1.1.1.1           0   FULL/  -    00:01:57    10.0.0.1        Serial0/1

R4#show ip ospf neighbor

Neighbor ID     Pri   State       Dead Time   Address         Interface
1.1.1.1           0   FULL/  -    00:01:54    10.0.0.1        Serial0/0

Task 4

R1(config)#router ospf 1
R1(config-router)#redis connected subnets metric-type 1 metric 111 tag 111      
R1(config-router)#exit

Verify your configuration by looking at the external LSA for the 150.1.1.0/24 subnet:

R1#show ip ospf database external 150.1.1.0

            OSPF Router with ID (1.1.1.1) (Process ID 1)

                Type-5 AS External Link States

  LS age: 37
Options: (No TOS-capability, DC)
LS Type: AS External Link
Link State ID: 150.1.1.0 (External Network Number )
Advertising Router: 1.1.1.1
LS Seq Number: 80000001
Checksum: 0xF0C8
Length: 36
Network Mask: /24
Metric Type: 1 (Comparable directly to link state metric)
TOS: 0
Metric: 111 
Forward Address: 0.0.0.0
External Route Tag: 111

Task 5

The OSPF master/slave election process is based solely on IP address (the highest wins), while the DR/BDR election process is based on priority or IP address. To ensure that R2 is elected master during the database exchange process, it needs to be configured with a higher IP address. To ensure that R4 is elected DR, it needs to be configured with a higher priority. This task is completed as follows:

R2(config)#router ospf 2
R2(config-router)#router-id 22.22.22.22
Reload or use “clear ip ospf process” command, for this to take effect
R2(config-router)#exit
R2(config)#interface fastethernet 0/0
R2(config-if)#ip ospf 2 area 1
R2(config-if)#end 
R2#clear ip ospf process
Reset ALL OSPF processes? [no]: yes
R4(config)#interface fastethernet 0/0
R4(config-if)#ip ospf 4 area 1
R4(config-if)#ip ospf priority 4
R4(config-if)#end
R4#clear ip ospf process
Reset ALL OSPF processes? [no]: yes

You can verify the master/slave and DR/BDR election process using the debug ip ospf adj command on either R2 or R4 after resetting the adjacency:

R2#debug ip ospf adj
OSPF adjacency events debugging is on
R2#clear ip ospf process
Reset ALL OSPF processes? [no]: yes
R2#
R2#
R2#
R2#

[Truncated Output]

*May 10 08:24:58.678: OSPF: DR/BDR election on FastEthernet0/0
*May 10 08:24:58.678: OSPF: Elect BDR 22.22.22.22
*May 10 08:24:58.678: OSPF: Elect DR 4.4.4.4
*May 10 08:24:58.678: OSPF: Elect BDR 22.22.22.22
*May 10 08:24:58.678: OSPF: Elect DR 4.4.4.4
*May 10 08:24:58.678:        DR: 4.4.4.4 (Id)   BDR: 22.22.22.22 (Id)
*May 10 08:24:58.678: OSPF: Send DBD to 4.4.4.4 on FastEthernet0/0 seq 0x7B5 opt 0x52 flag 0x7 len 32
*May 10 08:24:58.686: OSPF: Rcv DBD from 4.4.4.4 on FastEthernet0/0 seq 0x3C6 opt 0x52 flag 0x7 len 32  mtu 1500 state EXSTART
*May 10 08:24:58.686: OSPF: First DBD and we are not SLAVE
*May 10 08:24:58.686: OSPF: Rcv DBD from 4.4.4.4 on FastEthernet0/0 seq 0x7B5 opt 0x52 flag 0x2 len 172  mtu 1500 state EXSTART
*May 10 08:24:58.686: OSPF: NBR Negotiation Done. We are the MASTER

[Truncated Output]

 

Task 6

Unlike in the previous lab, in this lab you can specify a per-neighbor cost because of the point-to-multipoint non-broadcast network type. Prior to any changes being made to the current OSPF routing configuration, the routing table on router R1 shows the following route entries:

R1#show ip ro ospf
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O       10.0.0.2/32 [110/64] via 10.0.0.2, 00:05:13, Serial0/1
O       10.0.0.4/32 [110/64] via 10.0.0.4, 00:05:13, Serial0/1
150.5.0.0/24 is subnetted, 1 subnets
O IA    150.5.5.0 [110/65] via 10.0.0.4, 00:05:13, Serial0/1
                  [110/65] via 10.0.0.2, 00:05:13, Serial0/1

Complete this task by either decreasing the cost of neighbor R2 to a value less than 64:

R1(config)#router ospf 1
R1(config-router)#neighbor 10.0.0.2 cost 1
R1(config-router)#exit

Following this change, the routing table on R1 now shows the following route entries:

R1#show ip route ospf
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O       10.0.0.2/32 [110/1] via 10.0.0.2, 00:00:47, Serial0/1
O       10.0.0.4/32 [110/64] via 10.0.0.4, 00:00:47, Serial0/1
150.5.0.0/24 is subnetted, 1 subnets
O IA    150.5.5.0 [110/2] via 10.0.0.2, 00:00:47, Serial0/1

Final Router Configurations

R1

 

R1#term len 0
R1#sh run
Building configuration…

Current configuration : 1141 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
clock rate 2000000
!
interface Serial0/1
ip address 10.0.0.1 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint non-broadcast
ip ospf 1 area 0
frame-relay map ip 10.0.0.2 102 broadcast
frame-relay map ip 10.0.0.4 104 broadcast
!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
redistribute connected metric 111 metric-type 1 subnets tag 111
neighbor 10.0.0.2 cost 1
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R2

 

R2#term len 0
R2#sh run
Building configuration…

Current configuration : 1042 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.5.5.2 255.255.255.0
ip ospf 2 area 1
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
!
interface Serial0/1
ip address 10.0.0.2 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint non-broadcast
ip ospf 2 area 0
frame-relay map ip 10.0.0.1 201 broadcast
frame-relay map ip 10.0.0.4 201
!
router ospf 2
router-id 22.22.22.22
log-adjacency-changes
neighbor 10.0.0.1
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R3

R3-Frame-Relay-Switch#term len 0
R3-Frame-Relay-Switch#sh run
Building configuration…

Current configuration : 1556 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3-Frame-Relay-Switch
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
frame-relay switching
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
description ‘Connected To R1 Serial 0/1’
no ip address
encapsulation frame-relay
clock rate 128000
frame-relay intf-type dce
frame-relay route 102 interface Serial1/1 201
frame-relay route 104 interface Serial1/2 401
!
interface Serial1/1
description ‘Connected To R2 Serial 0/1’
no ip address
encapsulation frame-relay
clock rate 128000
frame-relay intf-type dce
frame-relay route 201 interface Serial1/0 102
!
interface Serial1/2
description ‘Connected To R4 Serial 0/0’
no ip address
encapsulation frame-relay
clock rate 128000
frame-relay intf-type dce
frame-relay route 401 interface Serial1/0 104
!
interface Serial1/3
no ip address
shutdown
!
interface Serial1/4
no ip address
shutdown
!
interface Serial1/5
no ip address
shutdown
!
interface Serial1/6
no ip address
shutdown
!
interface Serial1/7
no ip address
shutdown
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R4

 

R4#term len 0
R4#sh run
Building configuration…

Current configuration : 1077 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.5.5.4 255.255.255.0
ip ospf priority 4
ip ospf 4 area 1
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.4 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint non-broadcast
ip ospf 4 area 0
frame-relay map ip 10.0.0.1 401 broadcast
frame-relay map ip 10.0.0.2 401
!
interface Serial0/1
no ip address
shutdown
!
router ospf 4
router-id 4.4.4.4
log-adjacency-changes
neighbor 10.0.0.1
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.