468
14.6.3.18 ip ospf cost
Command: ip ospf [<ip-address>] cost
<cost>
no ip ospf [<ip-address>] cost
Function:
Specify the cost required in running OSPF protocol on the interface; the “
no ip
ospf [<ip-address>] cost
” command restores the default value.
Parameter: <ip-address>
is the interface IP address shown in dotted decimal notation;
<cost >
is the cost of OSPF protocol ranging between 1~65535
Default:
Default OSPF cost on the interface is 10.
Command Mode:
Interface Mode
Example:
Switch#config terminal
Switch(config)#interface vlan 1
Switch(Config-if-Vlan1)#ip ospf cost 3
14.6.3.19 ip ospf database-filter
Command: ip ospf [<ip-address>] database-filter all
out
no ip ospf [<ip-address>] database-filter
Function:
The command opens LSA database filter switch on specific interface; the “
no
ip ospf [<ip-address>] database-filter
” command closes the filter switch.
Parameter: <ip-address>
is the interface IP address shown in dotted decimal notation;
all:
All LSAs
out:
Sent LSAs
Default:
Filter switch Closed
Command Mode:
Interface Mode
Example:
Switch#config terminal
Switch(config)#interface vlan 1
Switch(Config-if-Vlan1)#ip ospf database-filter all out
14.6.3.20 ip ospf dead-interval
Command: ip ospf [<ip-address>] dead-interval
<time >
no ip ospf [<ip-address>] dead-interval
Function:
Specify the dead interval for neighboring layer 3 switch; the “
no ip ospf
[<ip-address>] dead-interval
” command restores the default value.
Parameter: <ip-address>
is the interface IP address shown in dotted decimal notation;
<time >
is the dead interval length of the neighboring layer 3 switches, shown in seconds
and ranging between 1~65535