Chapter 3 Lab 3-2, Multi-Area Ospfv2 and Ospfv3 With Stub Area
Chapter 3 Lab 3-2, Multi-Area Ospfv2 and Ospfv3 With Stub Area
Chapter 3 Lab 3-2, Multi-Area Ospfv2 and Ospfv3 With Stub Area
Chapter 3 Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
Topology
Objectives
Configure multi-area OSPFv2 for IPv4.
Configure multi-area OSPFv3 for IPv6
Verify multi-area behavior.
Configure stub and totally stubby areas for OSPFv2.
Configure stub and totally stubby areas for OSPFv3.
Background
In this lab, you will configure the network with multi-area OSPFv2 routing for IPv4 and multi-area OSPFv3 routing for
IPv6. For both OSPFv2 and OSPFv3, area 51 will be configured as a normal OSPF area, a stub area and then a
totally stubby area.
Note: This lab uses Cisco 1941 routers with Cisco IOS Release 15.4 with IP Base. The switches are Cisco WS-
C2960-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.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
Required Resources
4 routers (Cisco IOS Release 15.2 or comparable)
4 switches (LAN interfaces)
Serial and Ethernet cables
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
b. Verify connectivity by pinging across each of the local networks connected to each router.
c. Issue the show ip interface brief and the show ipv6 interface brief command on each router. These
commands display a brief listing of the interfaces, their status, and their IP addresses. Router R1 is shown as an
example.
R1# show ip interface brief
Interface IP-Address OK? Method Status Protocol
Embedded-Service-Engine0/0 unassigned YES unset administratively down down
GigabitEthernet0/0 192.168.1.1 YES manual up up
GigabitEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.168.2.1 YES manual up up
Serial0/0/1 unassigned YES unset administratively down down
R1# show ipv6 interface brief
Em0/0 [administratively down/down]
unassigned
GigabitEthernet0/0 [up/up]
FE80::1
2001:DB8:CAFE:1::1
GigabitEthernet0/1 [administratively down/down]
unassigned
Serial0/0/0 [up/up]
FE80::1
2001:DB8:CAFE:2::1
Serial0/0/1 [administratively down/down]
unassigned
R1#
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
R1(config-if)#
d. Verify that the routers have OSPFv2 neighbors using the show ip ospf neighbors command. The output for R2
is displayed.
R2# show ip ospf neighbor
How many OSPFv2 intra-area routes area routes are in R3’s IPv4 routing table? How many inter-area routes are
in R3’s IPv4 routing table?
______________________________________________________________________________
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
h. Configure an IPv4 static route on the ASBR, R3 for the 192.168.99.0/24 network on R4. Redistribute the static
route into OSPFv2 using the redistribute static subnets command. The subnets parameter is used to include
subnets and not just classful network addresses. The redistribute command is discussed in more detail in later
chapters.
R3(config)# ip route 192.168.99.0 255.255.255.0 192.168.77.1
R3(config)# router ospf 1
R3(config-router)# redistribute static subnets
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
i. Issue the show ip route ospf command on R1 to verify that the default route and the redistributed static route are
being advertised into the OSPFv2 domain.
R1# show ip route ospf
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
What does the “E2” for the default route and the redistributed external route signify?
______________________________________________________________________________
b. Confirm that both R1 and R2 are neighbors using the show ip ospf neighbors command.
R1# show ip ospf neighbor
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
c. Issue the show ip route ospf command on R1. Notice that R1 still has a default route pointing toward R2 but with
a different cost than it had prior to being configured in a stub area. This is not the default route propagated by the
ASBR R3, but the default route injected by the ABR of the stub area. Also, R1 does not receive any external
routes, so it no longer has the external network 192.168.99.0/24 in its routing table. Stub routers continue to
receive inter-area routes from area 0.
R1# show ip route ospf
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
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
R2#
What are the advantages of having a router receive a default route rather than a more specific route?
_______________________________________________________________________________
_______________________________________________________________________________
Why do all routers in a stub area need to know that the area is a stub?
_______________________________________________________________________________
_______________________________________________________________________________
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 10 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
d. Go back to R1 and issue the show ip route ospf command. Notice that it shows only one incoming route from
the ABR R2. The default route is injected by the ABR R2. There are no inter-area OSPFv2 routes and no external
OSPFv2 routes.
R1# show ip route ospf
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
e. Examine the output of the show ip ospf database command to see which routes are in area 51. You may need
to clear the OSPFv2 process to reset the entries in the OSPF LSDB.
R1# clear ip ospf process
Reset ALL OSPF processes? [no]: yes
*Oct 8 03:56:06.802: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on Serial0/0/0 from
FULL to DOWN, Neighbor Down: Interface down or detached
*Oct 8 03:56:06.894: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on Serial0/0/0 from
LOADING to FULL, Loading Done
R1#
R1# show ip ospf database
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 11 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
Why did only the ABR need to know that the area was totally stubby rather than all routers in the area?
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
b. IPv6 routing is disabled by default. The Cisco IOS version used with the routers in this lab has IPv6 CEF enabled
by default once IPv6 routing is enabled. To enable IPv6 routing, use the ipv6 unicast-routing command in global
configuration mode. Use the show ipv6 cef command to verify whether IPv6 CEF is enabled. If you need to
enable IPv6 CEF, use the ipv6 cef command. If IPv6 CEF is disabled you will see the an IOS message similar to
“%IPv6 CEF not running:. Enter these commands on routers R1, R2 and R3. IPv6 routing on R4 has been
enabled in Step 1.
R1(config)# ipv6 unicast-routing
R1(config)# end
R1# show ipv6 cef
::/0
no route
::/127
discard
2001:DB8:CAFE:1::/64
attached to GigabitEthernet0/0
2001:DB8:CAFE:1::1/128
receive for GigabitEthernet0/0
2001:DB8:CAFE:2::/64
attached to Serial0/0/0
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 12 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
2001:DB8:CAFE:2::1/128
receive for Serial0/0/0
FE80::/10
receive for Null0
FF00::/8
multicast
R1#
c. Configure the OSPFv3 process on each router. Similar to OSPFv2, the process ID does not have to match other
routers to form neighbor adjacencies. Configure the 32-bit OSPFv3 router ID on each router. The OSPFv3 router
ID uses the same process as OSPFv2 and is required if there are no IPv4 addresses configured on the router.
Note: The show ipv6 ospf command should used to verify the OSPF router ID. If the OSPFv3 router ID is uses a
32-bit value other than the one specified by the router-id command, you can reset the router ID by using the
clear ipv6 ospf pid process command and re-verify using the command show ipv6 ospf.
R1(config)# ipv6 router ospf 2
R1(config-rtr)# router-id 1.1.1.1
R1(config-rtr)# exit
R1(config)# interface gigabitethernet 0/0
R1(config-if)# ipv6 ospf 2 area 51
R1(config-if)# exit
R1(config)# interface serial 0/0/0
R1(config-if)# ipv6 ospf 2 area 51
R1(config-if)#
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 13 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
R3(config-if)# exit
R3(config)# interface serial 0/0/1
R3(config-if)# ipv6 ospf 2 area 0
R3(config-if)#
d. Verify that you have OSPFv3 neighbors with the show ipv6 ospf neighbor command. The output for R2 is
displayed.
R2# show ipv6 ospf neighbor
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 14 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
R2#
f. Configure an IPv6 default route on the ASBR R3 forwarding traffic to R4. Propagate the default routing into
OSPFv3.
R3(config)# ipv6 route ::/0 2001:db8:feed:77::1
R3(config)# ipv6 router ospf 2
R3(config-rtr)# default-information originate
R3(config-rtr)#
g. Configure an IPv6 static route on the ASBR R3 for the 2001:DB8:99:1::/64 prefix on R4. Redistribute the static
route into OSPFv3.
R3(config)# ipv6 route 2001:db8:99:1::/64 2001:db8:feed:77::1
R3(config)# ipv6 router ospf 2
R3(config-rtr)# redistribute static
R3(config-rtr)#
h. Issue the show ipv6 route static command on R3 to verify both static routes is in the IPv6 routing table.
R3# show ipv6 route static
IPv6 Routing Table - default - 12 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
a - Application
S ::/0 [1/0]
via 2001:DB8:FEED:77::1
S 2001:DB8:99:1::/64 [1/0]
via 2001:DB8:FEED:77::1
R3#
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 15 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
i. Issue the show ipv6 route ospf command on R1 to verify that the default route and the redistributed static route
are now being advertised into the OSPFv3 domain.
R1# show ipv6 route ospf
IPv6 Routing Table - default - 10 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
a - Application
OE2 ::/0 [110/1], tag 2
via FE80::2, Serial0/0/0
OE2 2001:DB8:99:1::/64 [110/20]
via FE80::2, Serial0/0/0
OI 2001:DB8:CAFE:3::/64 [110/65]
via FE80::2, Serial0/0/0
OI 2001:DB8:CAFE:4::/64 [110/128]
via FE80::2, Serial0/0/0
OI 2001:DB8:CAFE:5::/64 [110/129]
via FE80::2, Serial0/0/0
R1#
b. Confirm that both R1 and R2 are neighbors using the show ipv6 ospf neighbors command.
R1# show ipv6 ospf neighbor
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 16 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
R2#
c. To verify that the stub area functionality is the same in OSPFv3 as in OSPFv2 issue the show ipv6 route ospf
command on R1. Similar to OSPFv2, notice that R1 still has a default route pointing toward R2 but with a different
cost than it had prior to being configured in a stub area. Again, this is not the default route propagated by the
ASBR R3, but the default route injected by the ABR of the stub area. R1 also does not receive any external
routes, so it no longer has the 2001:DB8:99:1::/64 prefix in its routing table. Stub routers continue to receive inter-
area routes.
R1# show ipv6 route ospf
IPv6 Routing Table - default - 9 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
a - Application
OI ::/0 [110/65]
via FE80::2, Serial0/0/0
OI 2001:DB8:CAFE:3::/64 [110/65]
via FE80::2, Serial0/0/0
OI 2001:DB8:CAFE:4::/64 [110/128]
via FE80::2, Serial0/0/0
OI 2001:DB8:CAFE:5::/64 [110/129]
via FE80::2, Serial0/0/0
R1#
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 17 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
b. Enter the area 51 stub no-summary command on R2 (the ABR) under the OSPFv3 process.
R2(config)# ipv6 router ospf 2
R2(config-rtr)# area 51 stub no-summary
c. On R1 and issue the show ipv6 route ospf command. Similar to OSPFv2, there is only one incoming route from
the ABR R2. The default route is injected by the ABR R2. There are no inter-area OSPFv3 routes and no external
OSPFv3 routes.
R1# show ipv6 route ospf
IPv6 Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
a - Application
OI ::/0 [110/65]
via FE80::2, Serial0/0/0
R1#
d. View the output of the show ipv6 ospf command on ABR R2 to see what type each area is and the number of
interfaces in each area.
R2# show ipv6 ospf
Routing Process "ospfv3 2" with ID 2.2.2.2
Supports NSSA (compatible with RFC 3101)
Event-log enabled, Maximum number of events: 1000, Mode: cyclic
It is an area border router
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Retransmission limit dc 24 non-dc 24
Number of external LSA 2. Checksum Sum 0x00FD33
Number of areas in this router is 2. 1 normal 1 stub 0 nssa
Graceful restart helper support enabled
Reference bandwidth unit is 100 mbps
RFC1583 compatibility enabled
Area BACKBONE(0)
Number of interfaces in this area is 2
SPF algorithm executed 7 times
Number of LSA 9. Checksum Sum 0x0539E9
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Area 51
Number of interfaces in this area is 1
It is a stub area, no summary LSA in this area
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 18 of 19
CCNPv7 ROUTE Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area
R2#
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 19 of 19