456
[no] router ospf [process <id>]
Enables OSPF protocol; the “
no router
ospf
” command disables OSPF protocol
(required)
OSPF protocol configuration mode
router-id <router_id>
no router-id
Configures the ID number for the layer3
switch running OSPF; the “
no router id
”
command cancels the ID number. The IP
address of an interface is selected to be
the layer3 switch ID. (optional)
[no] network
{
<network> <mask> |
<network>/<prefix>} area <area_id>
Configure certain segment to certain area,
the no
[no] network
{
<network> <mask>
| <network>/<prefix>} area <area_id>
command cancels this configuration.
(required)
[no] passive-interface {IFNAME |
ethernet IFNAME | Vlan <ID>}
Sets an interface to receive only, the [no]
passive-interface {
IFNAME
| ethernet
IFNAME
| Vlan <
ID
>} command cancels
this configuration.
2. Configure OSPF protocol parameters
(
1
)
Configure OSPF package sending mechanism parameters
1
)
Configure OSPF package verification
2
)
Set the OSPF interface to receive only
3
)
Configure the cost for sending packages from the interface
Command Explanation
Interface configuration mode
ip ospf authentication
{ message-digest | null}
no ip ospf authentication
Configures the authentication method by the
interface to accept OSPF packages; the no ip
ospf authentication command restores the
default settings.
ip ospf authentication-key LINE
no ip ospf authentication-key
Configure the key of the authentication
process of OSPF data packets receiving for
the interfaces; the no action of this command
restores the default settings.
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.
4
)
Configure OSPF package sending timer parameter (timer of broadcast interface