OSPFv2 Configuration Examples
1. Configure IP interfaces.
2. (Optional) Configure the router ID.
3. Enable OSPF on the switch.
4. Define the OSPF areas.
5. Configure OSPF interface parameters.
6. (Optional) Configure route summarization between OSPF areas.
7. (Optional) Configure virtual links.
8. (Optional) Configure host routes.
Example 1: Simple OSPF Domain
1. Configure IP interfaces on each network that will be attached to OSPF areas.
© Copyright Lenovo 2015
A summary of the basic steps for configuring OSPF on the CN4093 is listed here.
Detailed instructions for each of the steps is covered in the following sections:
One IP interface is required for each desired network (range of IP addresses) being
assigned to an OSPF area on the switch.
The router ID is required only when configuring virtual links on the switch.
IP interfaces are used for attaching networks to the various areas.
In this example, two OSPF areas are defined—one area is the backbone and the
other is a stub area. A stub area does not allow advertisements of external routes,
thus reducing the size of the database. Instead, a default summary route of IP
address 0.0.0.0 is automatically inserted into the stub area. Any traffic for IP
address destinations outside the stub area will be forwarded to the stub area's IP
interface, and then into the backbone.
Figure 50. A Simple OSPF Domain
Backbone
Area 0
(0.0.0.0)
IF 1
10.10.7.1
Network
10.10.7.0/24
Follow this procedure to configure OSPF support as shown in Figure
In this example, two IP interfaces are needed:
Interface 1 for the backbone network on 10.10.7.0/24
Stub Area
Area 1
(0.0.0.1)
IF 2
10.10.12.1
Network
10.10.12.0/24
50:
437
Chapter 31: OSPF