11-13
Ethernet Card Software Feature and Configuration Guide, R7.2
January 2009
Chapter 11 Configuring Networking Protocols
Configuring OSPF
OSPF Interface Parameters
You can use the ip ospf interface configuration commands to modify interface-specific OSPF
parameters. You are not required to modify any of these parameters, but some interface parameters (hello
interval, dead interval, and authentication key) must be consistent across all routers in an attached
network. If you modify these parameters, be sure all routers in the network have compatible values.
Note The ip ospf interface configuration commands are all optional.
Beginning in privileged EXEC mode, follow these steps to modify OSPF interface parameters:
Command Purpose
Step 1 Router# configure terminal Enters global configuration mode.
Step 2 Router(config)# interface
interface-id
Enters interface configuration mode, and specifies the
Layer 3 interface to configure.
Step 3 Router(config-if)# ip ospf
cost
(Optional) Explicitly specifies the cost of sending a packet
on the interface.
Step 4 Router(config-if)# ip ospf
retransmit-interval
seconds
(Optional) Specifies the number of seconds between link
state advertisement transmissions. The range is 1 to 65535
seconds. The default is 5 seconds.
Step 5 Router(config-if)# ip ospf
transmit-delay
seconds
(Optional) Sets the estimated number of seconds to wait
before sending a link state update packet. The range is
1 to 65535 seconds. The default is 1 second.
Step 6 Router(config-if)# ip ospf priority
number
(Optional) Sets priority to help determine the OSPF
designated router for a network. The range is from 0 to 255.
The default is 1.
Step 7 Router(config-if)# ip ospf
hello-interval
seconds
(Optional) Sets the number of seconds between hello
packets sent on an OSPF interface. The value must be the
same for all nodes on a network. The range is
1 to 65535 seconds. The default is 10 seconds.
Step 8 Router(config-if)# ip ospf
dead-interval
seconds
(Optional) Sets the number of seconds after the last device
hello packet was seen before its neighbors declare the
OSPF router to be down. The value must be the same for all
nodes on a network. The range is 1 to 65535 seconds. The
default is 4 times the hello interval.
Step 9 Router(config-if)# ip ospf
authentication-key
key
(Optional) Assigns a password to be used by neighboring
OSPF routers. The password can be any string of
keyboard-entered characters up to 8 bytes in length. All
neighboring routers on the same network must have the
same password to exchange OSPF information.
Step 10 Router(config-if)# ip ospf message
digest-key
keyid
md5
key
(Optional) Enables authentication.
keyid—Identifier from 1 to 255.
key—Alphanumeric password of up to 16 bytes.