CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student
CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student
CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student
Objectives
Summarize an area.
Background
You are responsible for configuring the new network to connect your companys engineering, marketing, and
accounting departments, represented by loopback interfaces on each of the three routers. The physical devices have
just been installed and connected by serial cables. Configure multiple-area OSPFv2 to allow full connectivity between
all departments.
In addition, R1 has a loopback interface representing a connection to the Internet. This connection will not be added
into OSPFv2. R3 will have four additional loopback interfaces representing connections to branch offices.
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 1 of 12
CCNPv7 ROUTE
Note: This lab uses Cisco 1941 routers with Cisco IOS Release 15.4 with IP Base. The switches are Cisco WSC2960-24TT-L with Fast Ethernet interfaces, therefore the router will use routing metrics associated with a 100 Mb/s
interface. Depending on the router or switch model and Cisco IOS Software version, the commands available and
output produced might vary from what is shown in this lab.
Required Resources
Page 2 of 12
CCNPv7 ROUTE
R3(config-if)#
R3(config-if)#
R3(config-if)#
R3(config-if)#
R3(config-if)#
R3(config-if)#
R3(config-if)#
R3(config-if)#
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 3 of 12
CCNPv7 ROUTE
b. Verify that you can see OSPF neighbors in the show ip ospf neighbors output on both routers. Verify that the
routers can see each others loopback with the show ip route command.
R1# show ip ospf neighbor
Neighbor ID
2.2.2.2
Pri
0
State
FULL/
Dead Time
00:00:30
Address
10.1.12.2
Interface
Serial0/0/0
Page 4 of 12
CCNPv7 ROUTE
Pri
0
State
FULL/
Dead Time
00:00:30
Address
10.1.12.1
Interface
Serial0/0/0
Add the subnet between R2 and R3 into OSPF area 23 using the network command. Add loopback 3 on R3 into
area 23.
R2(config)# router ospf 1
R2(config-router)# network 10.1.23.0 0.0.0.255 area 23
R3(config)# router ospf 1
R3(config-router)# router-id 3.3.3.3
R3(config-router)# network 10.1.23.0 0.0.0.255 area 23
R3(config-router)# network 10.1.3.0 0.0.0.255 area 23
R3(config-router)# exit
R3(config)# interface loopback 3
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 5 of 12
CCNPv7 ROUTE
d. Verify that this neighbor relationship comes up with the show ip ospf neighbors command.
R2# show ip ospf neighbor
Neighbor ID
1.1.1.1
3.3.3.3
R2#
Pri
0
0
State
FULL/
FULL/
Dead Time
00:00:35
00:00:33
Address
10.1.12.1
10.1.23.3
Interface
Serial0/0/0
Serial0/0/1
Look at the output of the show ip route command on R2. Notice that the routes to those networks do not appear.
The reason for this behavior is that area 100 on R3 is not connected to the backbone. It is only connected to area
23. If an area is not connected to the backbone, its routes are not advertised outside of its area.
R2#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is not set
O
C
L
O
C
L
C
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 6 of 12
CCNPv7 ROUTE
L
R2#
What would happen if routes could pass between areas without going through the backbone?
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
You can get around this situation by creating a virtual link. A virtual link is an OSPF feature that creates a logical
extension of the backbone area across a regular area, without actually adding any physical interfaces into area 0.
Note: Prior to creating a virtual link you need to identify the OSPF router ID for the routers involved (R2 and R3),
using a command such as show ip ospf, show ip protocols or show ip ospf interface. The output for the show
ip ospf command on R1 and R3 is shown below.
R2# show ip ospf
Routing Process "ospf 1" with ID 2.2.2.2
<output omitted>
R3# show ip ospf
Routing Process "ospf 1" with ID 3.3.3.3
<output omitted>
g. Create a virtual link using the area transit_area virtual-link router-id OSPF configuration command on both R2
and R3.
R2(config)# router ospf 1
R2(config-router)# area 23 virtual-link 3.3.3.3
R2(config-router)#
R3(config)# router ospf 1
R3(config-router)# area 23 virtual-link 2.2.2.2
*Aug 9 12:47:46.110: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on OSPF_VL0 from
LOADING to FULL, Loading Done
R3(config-router)#
Notice after virtual links are established IOS will report full adjacency between both routers.
h. After you see the adjacency over the virtual interface come up, issue the show ip route command on R2 and see
the routes from area 100. You can verify the virtual link with the show ip ospf neighbor and show ip ospf
interface commands.
R2# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is not set
O
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 7 of 12
CCNPv7 ROUTE
C
L
O
C
L
C
L
O IA
O IA
O IA
O IA
R2#
Dead Time
00:00:38
00:00:35
Address
10.1.23.3
10.1.12.1
10.1.23.3
Interface
OSPF_VL0
Serial0/0/0
Serial0/0/1
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 8 of 12
CCNPv7 ROUTE
Configure R3 (the ABR) to summarize this area using the area area range network mask command.
R3(config)# router ospf 1
R3(config-router)# area 100 range 192.168.100.0 255.255.252.0
j.
You can see the summary route on R2 with the show ip route and show ip ospf database commands.
R2#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is not set
O
C
L
O
C
L
C
L
O IA
R2#
ADV Router
1.1.1.1
2.2.2.2
3.3.3.3
Age
98
608
1
Seq#
0x80000006
0x80000006
(DNA) 0x80000002
Checksum
0x00AA98
0x00AF0B
0x00ADFC
Link count
3
4
1
ADV Router
2.2.2.2
3.3.3.3
2.2.2.2
3.3.3.3
3.3.3.3
Age
1408
1
1482
1
1
Seq#
0x80000001
(DNA) 0x80000002
0x80000001
(DNA) 0x80000002
(DNA) 0x80000003
Checksum
0x002ABB
0x008799
0x00438F
0x0023AA
0x00243F
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 9 of 12
CCNPv7 ROUTE
Link ID
2.2.2.2
3.3.3.3
Age
608
609
Seq#
Checksum Link count
0x80000003 0x0099A1 2
0x80000005 0x00E92B 3
ADV Router
2.2.2.2
2.2.2.2
2.2.2.2
3.3.3.3
Age
1482
1482
1482
43
Seq#
0x80000002
0x80000002
0x80000002
0x80000002
Checksum
0x003EA8
0x00B075
0x00BA22
0x00263E
Notice on R3 that OSPF has generated a summary route pointing toward Null0.
R3#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is not set
O
O
C
L
O
C
L
O
C
L
C
L
C
L
C
L
R3#
This behavior is known as sending unknown traffic to the bit bucket. This means that if the router advertising the
summary route receives a packet destined for something covered by that summary but not in the routing table, it
drops it.
What is the reasoning behind this behavior?
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 10 of 12
CCNPv7 ROUTE
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
To have R1 generate a default route, use the OSPF configuration command default-information originate
always. The always keyword is necessary for generating a default route in this scenario. Without this keyword, a
default route is generated only into OSPF if one exists in the routing table.
R1(config)# router ospf 1
R1(config-router)# default-information originate always
m. Verify that the default route appears on R2 and R3 with the show ip route command.
R2#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is 10.1.12.1 to network 0.0.0.0
O*E2
O
C
L
O
C
L
C
L
O IA
R2#
R3#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 11 of 12
CCNPv7 ROUTE
n. You should be able to ping the interface connecting to the Internet from R2 or R3, despite never being advertised
into OSPF.
R3# ping 172.30.30.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.30.30.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/30/32 ms
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 12 of 12