75
If no global router ID is configured, the
highest loopback interface IP address,
if any, is used as the router ID. If no
loopback interface IP address is
available, the highest physical
interface IP address is used,
regardless of the interface status (up
or down).
3. Enable an OSPF process
and enter OSPF view.
ospf
[
process-id |
router-id
router-id |
vpn-instance
vpn-instance-name ] *
By default, OSPF is disabled.
4. (Optional.) Configure a
description for the OSPF
process.
description
text
By default, no description is configured
for the OSPF process.
As a best practice, configure a
description for each OSPF process.
5. Create an OSPF area and
enter OSPF area view.
area
area-id By default, no OSPF areas exist.
6. (Optional.) Configure a
description for the area.
description
text
By default, no description is configured
for the area.
As a best practice, configure a
description for each OSPF area.
7. Specify a network to
enable the interface
attached to the network to
run the OSPF process in
the area.
network
ip-address
wildcard-mask
By default, no network is specified.
A network can be added to only one
area.
Enabling OSPF on an interface
1. Enter system view.
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Enable an OSPF process
on the interface.
ospf
process-id
area
area-id [
exclude-subip
]
By default, OSPF is disabled on an
interface.
If the specified OSPF process and area do
not exist, the command creates the OSPF
process and area. Disabling an OSPF
process on an interface does not delete the
OSPF process or the area.
Configuring OSPF areas
Before you configure an OSPF area, perform the following tasks:
• Configure IP addresses for interfaces to ensure IP connectivity between neighboring nodes.
• Enable OSPF.