//This command is set OSPF network attribute
Parameter
cost
Cost
value,you
can
increase
the
measure value of this interface to go out.
network
Network
type:point-to-point
,broadcast,non-broad
cast
priority
Interface priority, broadcast multi access
network to make it a DR
hello-interval
Valid time interval
dead-interval
Invalid time interval
authentication Authentication Type:MD5
、
SIMPLE
authentication
-key
Key authentication
Default
None
Command Mode
vlan configuration mode
Example
//This command is to modify the cost to 20.
switch(config)# interface vlanif2
switch(config-vlanif2)# ip ospf cost 20
//This command is to modify the network type of point-to-point.
switch(config)# interface vlanif2
switch(config-vlanif2)# ip ospf network point-to-point
//This command is to modify the interface priority for 254.
switch(config)# interface vlanif2
switch(config-vlanif2)# ip ospf priority 254
//Modify the effective interval of 30 seconds.
switch(config)# interface vlanif2
switch(config-vlanif2)# ip ospf hello-interval 30
//Modified failure interval time 300 seconds.
switch(config)# interface vlanif2
switch(config-vlanif2)# ip ospf dead-interval 300
//
Modify the authentication type for MD5,The secret key for ABC
certification
.
switch(config)# interface vlanif2