394
ip ospf enable area <area_id>
no ip ospf enable area
Sets an area for the specified interface; the
no ip ospf enable area” command cancels
the setting. (required)
2. Configure OSPF sub-parameters
(1) Configure OSPF packet sending mechanism parameters
a. Configure OSPF packet verification
b. Set the OSPF interface to receive only
c. Configure the cost for sending packets from the interface
Command Explanation
Interface Mode
ip ospf authentication { simple
<auth_key>| md5 <auth_key>
<key_id>}
no ip ospf authentication
Configures the authentication method and key
required by the interface to accept OSPF
packets; the “no ip ospf authentication
command restores the default setting.
[no] ip ospf passive-interface Sets an interface to receive only, the “no ip
ospf passive-interface” command cancels
the setting.
ip ospf cost <cost >
no ip ospf cost
Sets the cost for running OSPF on the
interface; the “no ip ospf cost” command
restores the default setting.
d. Configure OSPF packet sending timer parameter (timer of broadcast interface
sending HELLO packet to poll, timer of neighboring layer3 switch invalid timeout, timer of
LSA transmission delay and timer of LSA retransmission.
Command Explanation
Interface Mode
ip ospf hello-interval <time>
no ip ospf hello-interval
Sets interval for sending HELLO packets; the
no ip ospf hello-interval” command restores
the default setting.
This line should be deleted.
ip ospf dead-interval <time >
no ip ospf dead-interval
Sets the interval before regarding a neighbor
layer3 switch invalid; the “no ip ospf
dead-interval” command restores the default
setting.
ip ospf transmit-delay <time>
no ip ospf transmit-delay
Sets the delay time before sending link-state
broadcast; the “no ip ospf transmit-delay
command restores the default setting.
ip ospf retransmit <time>
no ip ospf retransmit
Sets the interval for retransmission of
link-state advertisement among neighbor
layer3 switches; the “no ip ospf retransmit
command restores the default setting.
(2) Configure OSPF route introduction parameters
a. Configure default parameters (default type, default tag value, default cost, default
interval and default number uplimit)
Command Explanation
OSPF protocol configuration mode
default redistribute type { 1 | 2 }
no default redistribute type
Sets the default route weight for route to be
introduced; the “no default-metric” command
restores the default setting.