OSPF classifies networks into four types based on the types of link layer protocols. You can configure the network type for an OSPF interface to forcibly change its original network type.
The network types of the interfaces on both ends of a link must be the same; otherwise, the OSPF neighbor relationship cannot be established. By default, the network type of an interface depends on the physical interface. The network type of Ethernet interfaces is broadcast.
The system view is displayed.
The interface view is displayed.
The network type of the OSPF interface is configured.
When the network type is configured for an interface, the original network type of the interface is replaced.
peer-ip-ignore is used to disable network segment check when IP address unnumbering is not configured for a P2P interface changed from a broadcast interface and the interface tries to establish an OSPF neighbor relationship. Specifically, OSPF performs an AND operation on the local subnet mask and the local IP address and on the local subnet mask and the remote IP address. An OSPF neighbor relationship can be established only when the results on the two ends are the same.
OSPF cannot be configured on a null interface.
The configuration is committed.