< Home

Configuring Network Types of OSPF Interfaces

OSPF classifies networks into four types according to link layer protocols. By configuring network types for interfaces, you can change the network types of interfaces.

Context

By default, the network type of an interface is determined by the physical interface. The network type of Ethernet interface is broadcast, that of the serial interface (encapsulated with PPP) is p2p, and Frame-relay interface is nbma.

Procedure

  1. Access the system view.

    system-view

  2. Access the interface view.

    interface interface-type interface-number

  3. Configure a network type for the OSPF interface.

    ospf network-type { broadcast | nbma | p2mp | p2p [ peer-ip-ignore ] }

    After a new network type is configured for the interface, the original network type is automatically replaced.

    Generally, the network types of two OSPF interfaces on the both ends of the link must be identical. Otherwise, the two interfaces cannot set up the neighbor relationship. Only when the network type of one OSPF interface is broadcast and the network type of the other OSPF interface is P2P, the two interfaces can still set up the neighbor relationship. The broadcast interface can learn the correct OSPF routing information, but the P2P interface cannot learn the OSPF routing information from the peer.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >