Configuration Procedures
22-18 Configuring OSPFv2
OSPF Interface Configuration
Procedure 22-2 on page 22-18 describes the OSPF interface configuration tasks. All OSPF interface
configuration commands are executed in router interface configuration mode.
OSPF Area Configuration
Procedure 22-3 describes the OSPF area configuration tasks. All OSPF area configuration
commands are executed in router configuration mode.
Procedure 22-2 OSPF Interface Configuration
Step Task Command(s)
1. In interface configuration mode, configure an IP
address for all routing interfaces in the AS. See
Procedure 20-2 on page 20-4.
ip address ip-address ip-mask
[secondary]
2. Enable OSPF in the interface. ip ospf enable
3. Configure the area in which the interface is
located. By default, the interface’s area id is set
to the backbone, 0.0.0.0.
ip ospf areaid area-id
4. Set the interface’s priority, which is used to
determine the designated router on the network
segment. By default, the priority is set to 1.
ip ospf priority number
5. Optionally, set the cost of sending an OSPF
packet on the interface. By default, the cost is
set to 10.
ip ospf cost cost
6. Optionally, adjust the OSPF timers on the
interface.
ip ospf retransmit-interval seconds
ip ospf transmit-delay seconds
ip ospf hello-interval seconds
ip ospf dead-interval seconds
7. Optionally, configure OSPF authentication on
the interface.
Refer to “Configuring Authentication” on
page 22-15 for more information.
ip ospf authentication-key password
or
ip ospf message-digest-key keyid md5
key
Procedure 22-3 OSPF Area Configuration
Step Task Command(s)
1. Configure route summarization to be used by
Area Border Routers (ABRs) when they
communicate routes to other areas.
Refer to “Configuring Area Range” on page 22-8
for more information.
area area-id range ip-address ip-
mask [advertise | no-advertise]
2. Configure an OSPF area as a stub area.
Refer to “Configuring a Stub Area” on page 22-9
for more information.
area area-id stub [no-summary]
3. Configure an OSPF area as a not-so-stubby
area (NSSA).
Refer to “Configuring a Not So Stubby Area
(NSSA)” on page 22-11 for more information.
area area-id nssa [default-
information-originate]