Configuring OSPF and OSPFv3 1009console(config-router)#area 0.0.0.1 stubconsole(config-router)#area 0.0.0.2 nssa5 For IPv4: Enable OSPF for IPv4 on VLANs 10, 5, and 17 by globallydefining the range of IP addresses associated with each interface, and thenassociating those ranges with Areas 1, 0, and 2, respectively.console(config-router)#network 10.1.2.0 0.0.0.255area 0.0.0.1console(config-router)#network 10.2.3.0 0.0.0.255area 0.0.0.0console(config-router)#network 10.2.4.0 0.0.0.255area 0.0.0.26 For IPv4: Configure a metric cost to associate with static routes when theyare redistributed via OSPF:console(config-router)#redistribute static metric1 subnetsconsole(config-router)#exit7 For IPv6: Define an OSPF router. Define Area 1 as a stub and area 2 as aNot-So-Stubby-Area (NSSA). Configure a metric cost to associate withstatic routes when they are redistributed via OSPF:console(config)#ipv6 router ospfconsole(config-rtr)#router-id 2.2.2.2console(config-rtr)#area 0.0.0.1 stubconsole(config-rtr)#area 0.0.0.2 nssaconsole(config-rtr)#redistribute static metric 105metric-type 1console(config-rtr)#exitConfiguring a Virtual Link for OSPF and OSPFv3In this example, Area 0 connects directly to Area 1. A virtual link is definedthat traverses Area 1 and connects to Area 2. This example assumes otherOSPF settings, such as area and interface configuration, have already beenconfigured.Figure 34-37 illustrates the relevant components in this example OSPFconfiguration.