831
Configuring IP Unicast Routing
Configuring OSPF
DETAILED STEPS
Use the no form of the ip ospf network command to return to the default network type for the media.
Command Purpose
1. configure terminal Enter global configuration mode.
2. interface interface-id Enter interface configuration mode, and specify the Layer 3
interface to configure.
3. no shutdown Enable the interface if necessary. By default, UNIs and ENIs
are disabled and NNIs are enabled.
4. ip ospf network {broadcast |
non-broadcast | {point-to-multipoint
[non-broadcast] | point-to-point}}
Configure the OSFP network type for the specified interface.
Select one of these network types:
broadcast—Specify an OSPF broadcast multi-access
network.
non-broadcast—Specify an OSPF NBMA network.
point-to-multipoint—Specify an OSPF
point-to-multipoint network. If you do not enter another
keyword, the interface is point-to-multipoint for
broadcast media.
point-to-multipoint non-broadcast—Specify an OSPF
nonbroadcast point-to-multipoint network.
point-to-point—Specify an OSPF point-to-point
network.
5. exit Return to global configuration mode.
6. router ospf process-id (Optional for point-to-multipoint; required for
point-to-multipoint nonbroadcast) Configure an OSPF
routing process and enter router configuration mode.
7. neighbor ip-address cost number (Optional for point-to-multipoint; required for
point-to-multipoint nonbroadcast). Specify a configured
OSPF neighbor and assign a cost to the neighbor.
ip-address—Enter the interface IP address of the OSPF
neighbor.
cost number—Specify a cost for the neighbor as an
integer from 1 to 65535.
Note: On point-to-multipoint broadcast networks,
specifying a neighbor is optional, but if you do specify a
neighbor, you must specify a cost for that neighbor.
On point-to-multipoint nonbroadcast neighbors, you must
specify a neighbor, but assigning a cost to the neighbor is
optional. If not specified, neighbors assume the cost of the
interface, based on the ip ospf cost interface configuration
command.
8. end Return to privileged EXEC mode.
9. show ip ospf interface [interface-id] Display OSPF-related interface information.
10. copy running-config startup-config
(Optional) Save your entries in the configuration file.