Routing Configuration 85
Example 2: Configuring Stub and NSSA Areas
In this example, Area 0 connects directly to two other areas: Area 1 is defined as a stub area and Area 2 is
defined as an NSSA area.
NOTE: OSPFv2 and OSPFv3 can operate concurrently on a network and on the same interfaces (although they do
not interact). This example configures both protocols simultaneously.
Figure 4-4 illustrates this example OSPF configuration.
config
interface vlan 70
ip ospf area 0.0.0.0
ip ospf priority 128
ip ospf cost 32
exit
interface vlan 80
ip ospf area 0.0.0.2
ip ospf priority 255
ip ospf cost 64
exit
interface vlan 90
ip ospf area 0.0.0.2
ip ospf priority 255
ip ospf cost 64
exit
exit
config
interface vlan 70
ipv6 ospf
ipv6 ospf areaid 0.0.0.0
ipv6 ospf priority 128
ipv6 ospf cost 32
exit
interface vlan 80
ipv6 ospf
ipv6 ospf areaid 0.0.0.2
ipv6 ospf priority 255
ipv6 ospf cost 64
exit
interface vlan 90
ipv6 ospf
ipv6 ospf areaid 0.0.0.2
ipv6 ospf priority 255
ipv6 ospf cost 64
exit
exit
IPv4 (OSPFv2) IPv6 (OSPFv3)