Enabling OSPF
Context
After creating an OSPF process, you need to configure the network segments included in an area. A network segment belongs to only one area. That is, you need to specify an area for each interface that runs OSPF. In this document, network segment refers to the network segment to which the IP address of the OSPF interface belongs.
OSPF checks the network mask carried in a received Hello packets. If the network mask carried in a received Hello packet is different from the network mask of the local device, the Hello packet is discarded. As a result, an OSPF neighbor relationship is not established.
Procedure
- Run system-view
The system view is displayed.
- Run ospf [ process-id ]
The OSPF process view is displayed.
- Run area area-idnetwork ip-address wildcard-maskinterface interface-type interface-numberospf enable [ process-id ] area area-id
The OSPF area view is displayed.
OSPF can be enabled in an OSPF area or on a specific interface.
- Enable OSPF in an OSPF area.
- Enable OSPF on an interface.