The ospf network-type command sets the network type for an OSPF interface.
The undo ospf network-type command restores the default network type.
By default, the network type of an interface is determined by the physical interface. For details, see "IP Routing" > "OSPF Configuration" > "Configuring OSPF on the NBMA or P2MP Network" > "Configuring Network Types for OSPF Interfaces" in the Configuration Guide.
Parameter | Description | Value |
---|---|---|
broadcast |
Indicates that the network type of the interface is changed to broadcast. |
- |
p2p |
Indicates that the network type of the interface is changed to point-to-point. |
- |
p2mp |
Indicates that the network type of the interface is changed to point-to-multipoint. |
- |
nbma |
Indicates that the network type of the interface is changed to NBMA. |
- |
100GE interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, GMPLS-UNI interface view, Global VE sub-interface view, Loopback interface view, Tunnel interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
When link layer protocols remain unchanged, you can change network types and configure OSPF features to flexibly build networks.
Precautions