The focus of this chapter is to adjust and troubleshoot OSPF. However, it is a good idea to review a basic implementation of the OSPF routing protocol.
The example in Figure 1 displays the topology used for configuring OSPFv2. The routers in the topology have a starting configuration, including enabled interface addresses. There is currently no static routing or dynamic routing configured on any of the routers. All interfaces on routers R1, R2, and R3 (except the loopback on R2) are within the OSPF backbone area. The ISP router is used as the routing domain’s gateway to the Internet.
In Figure 2, the Gigabit Ethernet 0/0 interface of R1 is configured to reflect its true bandwidth of 1,000,000 kilobits (i.e.1,000,000,000 b/s). Next, from OSPF router configuration mode, the router ID is assigned, the reference bandwidth is adjusted to account for fast interfaces, and the three networks attached to R1 are advertised. Notice how the wildcard mask is used to identify the specific networks.
In Figure 3, the Gigabit Ethernet 0/0 interface of R2 is also configured to reflect its true bandwidth, the router ID is assigned, the reference bandwidth is adjusted to account for fast interfaces, and the three networks attached to R2 are advertised. Notice how the use of the wildcard mask can be avoided by identifying the actual router interface with a quad zero mask. This effectively makes OSPF use the subnet mask assigned to the router interface as the advertised network mask.
Use the Syntax Checker in Figure 4 to adjust the bandwidth on the R3 G0/0 interface, enter OSPF router configuration mode, assign the correct router ID, adjust the reference bandwidth, and advertise the three directly connected networks using the router interfaces and quad zero wildcard mask.
Notice the informational messages displaying that R3 has established a full neighbor adjacency with R1 with router ID 1.1.1.1 and R2 with router ID 2.2.2.2. The OSPF network has converged.