ip ospf network
Syntax
ip ospf network {broadcast|point-to-point}
no ip ospf network
Description
Configures the OSPF network type for the interface.
The
no
form of this command sets the network type for the interface to the system default which is broadcast network.
Command context
config-if-vlan
Parameters
Choose one of the following parameters as the interface network type.
broadcast
Specifies the OSPF network type as a broadcast multi-access network.
point-to-point
Specifies the OSPF network type as a point-to-point network.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Setting OSPF network type for the interface:
switch(config)# interface vlan 1 switch(config-if-vlan)# ip ospf network broadcast switch(config-if-vlan)# ip ospf network point-to-point
Disabling OSPF network type for the interface to system default of broadcast network:
switch(config)# interface vlan 1 switch(config-if-vlan)# no ip ospf network