830
Configuring IP Unicast Routing
Configuring OSPF
DETAILED STEPS
On point-to-multipoint, nonbroadcast networks, you then use the neighbor router configuration command to identify
neighbors. Assigning a cost to a neighbor is optional.
EXAMPLE
The following example declares a router at address 192.168.3.4 on a nonbroadcast network, with a priority of 1 and a
poll interval of 180 seconds:
Switch# configure terminal
Switch(config)# router ospf
Switch(config-router)# neighbor 192.168.3.4 priority 1 poll-interval 180
Switch(config-router)# end
Configuring Network Types for OSPF Interfaces
You can configure network interfaces as either broadcast or NBMA and as point-to point or point-to-multipoint,
regardless of the default media type.
An OSPF point-to-multipoint interface is defined as a numbered point-to-point interface with one or more neighbors.
On point-to-multipoint broadcast networks, specifying neighbors is optional. When you configure an interface as
point-to-multipoint when the media does not support broadcast, you should use the neighbor command to identify
neighbors.
BEFORE YOU BEGIN
Complete the OSPF network strategy and planning for your network.
Command Purpose
1. configure terminal Enter global configuration mode.
2. router ospf process-id Configure an OSPF routing process and enter router
configuration mode.
3. neighbor ip-address [priority number]
[poll-interval seconds]
Specify an OSPF neighbor with neighbor parameters as
required.
ip-address—Enter the interface IP address of the OSPF
neighbor.
(Optional) priority number—Specify the router priority
value of the nonbroadcast neighbor associated with the
IP address. The range is 0 to 255; the default is 0.
(Optional) poll-interval seconds—Specify a number that
represents the poll interval time (in seconds). This value
should be much larger than the hello interval. The range
is 0-4294967295; the default is 120 seconds (2
minutes).
4. end Return to privileged EXEC mode.
5. show ip ospf [process-id] Display OSPF-related information.
6. copy running-config startup-config (Optional) Save your entries in the configuration file.