ip ospf network
-
- Last UpdatedJul 20, 2017
- 1 minute read
ip ospf network
Configures the network type for the interface. Point-to-point can support unnumbered links, which requires less processing by OSPF.
Network type is broadcast.
broadcast
| Network type is broadcast.
|
non-broadcast
| Network type is non-broadcast. An interface can be configured to send OSPF traffic to its neighbor as unicast packets rather than multicast packets.
|
point-to-point
| Network type is point-to-point.
|
Interface subtype configuration mode
On a non-broadcast interface, the devices at either end of the interface must configure non-broadcast interface type and the neighbor IP address. There is no restriction on the number of devices sharing a non-broadcast interface.
To configure an OSPF interface as a non-broadcast interface, the feature must be enabled on a physical interface or a VE, following the ip ospf area statement, and then specify the IP address of the neighbor in the OSPF configuration. The non-broadcast interface configuration must be done on the OSPF devices at either end of the link.
The no form of the command removes the network-type configuration.
The following example configures an OSPFv2 point-to-point link on a specific OSPFv2 Virtual Ethernet (VE) interface.
device# configure terminal
device(config)# interface interface ve 1
device(config-vif-1)# ip ospf network point-to-point
The following example configures an OSPFv2 broadcast link on a specific OSPFv2 Virtual Ethernet (VE) interface.
device# configure terminal
device(config)# interface interface ve 1
device(config-vif-1)# ip ospf network broadcast