User`s manual
Configuring OSPF
Command Line
This section describes the steps required to configure OSPF. For more detail, see OSPF Configuration Basics.
Important:
OSPF timers should be left at their recommended default settings. Changes to these timers can have
serious consequences. If they are not set the same for each OSPF router on your network, the routers will
not exchange information.
●
General OSPF commands
>[no] router ospf enables or disables OSPF routing
Example:>router ospf
Example: >no router ospf
>ospf reset-default resets all OSPF settings to factory defaults; needs a warm boot.
Example: >ospf reset-default
OSPF Area commands
>[no] area <area_id> [create | stub] creates or deletes an OSPF area or stub area
<area_id> is any number, expressed in dotted IP format, used to identify an OSPF area. All
implementations must have at least one area identified by 0.0.0.0
Example: >area 0.0.0.1 create
Example: >area 0.0.0.5 stub
Example: >no area 0.0.0.5
>[no] area <area_id> range <address> /mask
summarizes routes at an OSPF area boundary, or disables this function
<address> is the part of an IP address that represents a group of networks
mask is the number of significant bits
Example: >area 0.0.0.4 range 192.168.98.0/16
>[no] area <area_id> range <address> /mask
summarizes routes at an OSPF area boundary, or disables this function
<address> is the part of an IP address that represents a group of networks
mask is the number of significant bits
Example: >area 0.0.0.4 range 192.168.98.0/16
>[no] area authentication <area_id> adds or removes an OSPF area's password protection
Example: >area authentication 0.0.0.1
>network <ip_address> area <area_id> assigns an interface to an OSPF area
Example: >network 192.168.98.5 area 0.0.0.2
OSPF Interface commands
>ip ospf <enable | disable> <ip_address> enables or disables an OSPF interface
Example: >ip ospf enable 192.168.23.3
>ip ospf cost <ip_address> <cost> assigns a metric to an interface
Example: >ip ospf cost 192.168.2.23.2 20
>ip ospf dead-interval <ip_address> <seconds>
assigns the OSPF dead interval, which is the time in seconds that the switch waits to receive a
hello packet from a neighboring router before the switch declares the neighbor inoperable. This
value must be the same in all neighboring routers. The default is 40 seconds.
Example: >ip ospf dead-interval 192.168.2.23 40
82