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.