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

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

Examples

Setting OSPF network type for the interface:

switch# configure terminal
switch(config)# interface 1/1/1
switch(config-if)# ip ospf network broadcast
switch(config-if)# ip ospf network point-to-point

Disabling OSPF network type for the interface to system default of broadcast network:

switch# configure terminal
switch(config)# interface 1/1/1
switch(config-if)# no ip ospf network