Users Guide

Table Of Contents
1336 OSPF and OSPFv3
console(config)#router ospf
console(config-router)#router-id 2.2.2.2
console(config-router)#area 0.0.0.1 stub
console(config-router)#area 0.0.0.1 stub no-summary
console(config-router)#area 0.0.0.2 nssa
5
For IPv4: Enable OSPF for IPv4 on VLANs 10, 5, and 17 by globally
defining the range of IP addresses associated with each interface, and then
associating those ranges with Areas 1, 0, and 2, respectively.
console(config-router)#network 10.1.2.0 0.0.0.255 area 0.0.0.1
console(config-router)#network 10.2.3.0 0.0.0.255 area 0.0.0.0
console(config-router)#network 10.2.4.0 0.0.0.255 area 0.0.0.2
6
For IPv4: Configure a metric cost to associate with static routes when they
are redistributed via OSPF:
console(config-router)#redistribute static metric 1 subnets
console(config-router)#exit
7
For IPv6: Define an OSPF router. Define Area 1 as a stub and area 2 as a
Not-So-Stubby-Area (NSSA). Configure a metric cost to associate with
static routes when they are redistributed via OSPF:
console(config)#ipv6 router ospf
console(config-rtr)#router-id 2.2.2.2
console(config-rtr)#area 0.0.0.1 stub
console(config-rtr)#area 0.0.0.1 stub no-summary
console(config-rtr)#area 0.0.0.2 nssa
console(config-rtr)#redistribute static metric 105 metric-type
1
console(config-rtr)#exit
Configuring a Virtual Link for OSPF and OSPFv3
In this example, Area 0 connects directly to Area 1. A virtual link is defined
that traverses Area 1 and connects to Area 2. This example assumes other
OSPF settings, such as area and interface configuration, have already been
configured.
Figure 34-37 illustrates the relevant components in this example OSPF
configuration.