< Home

Configuring a Network Type for an OSPF Interface

Context

Configure one of the following network types for an OSPF interface:
  • P2MP: A P2MP network does not have an associated link layer protocol. Therefore, a P2MP network must be forcibly changed from another network type.

  • NBMA: An NBMA network must be fully meshed. That is, any two switches on an NBMA network must be directly reachable. However, this is not true in many cases. In such cases, you need to manually change the network type.

  • Broadcast: To speed up the establishment of neighbor relationships, you can change the network type from broadcast to P2P.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The OSPF interface view is displayed.

  3. (Optional) On an Ethernet interface, run undo portswitch

    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.

    Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.

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

    A network type is configured for the interface.

    By default, the network type of an interface depends on the type of the physical interface. The default network type of an Ethernet interface is broadcast.

    When you configure a new network type for an interface, the original network type of the interface is replaced.

    A network type can be configured to suit networking requirements:
    • If the network type of an interface is broadcast and a switch on the network does not support multicast addresses, you can change the network type of the interface to NBMA.
    • If the network type of an interface is NBMA and the network is fully meshed (any two switches are directly connected), you can change the network type of the interface to broadcast. Configuring neighboring switch information on the interface is not required then.
    • If the network type of an interface is NBMA but the network is not fully meshed, you must change the network type of the interface to P2MP. This allows two indirectly connected switches to communicate through one switch that directly connects to them both. Configuring neighboring switch information on the interface is not required then.
    • If only two switches run OSPF on the same network segment, you are advised to change the network type of the interface to P2P.
    OSPF cannot be configured on a null interface.

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