180 CHAPTER 6: USING ROUTING PROTOCOL COMMANDS
Use the undo authentication-mode command to cancel the authentication
mode for this area. By default, an area does not support an authentication mode.
All the routers in one area must use the same authentication mode (no
authentication, simple text authentication or MD5 cipher text authentication). In
addition, all routers on the same segment must use the same authentication key.
To configure a simple text authentication key, use the ospf
authentication-mode simple
command.
To configure an MD5 cipher text key, use the ospf authentication-mode md5
command.
Related command: ospf authentication-mode.
Example
To set the OSPF area 0 to support MD5 cipher text authentication, enter the
following:
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]router id 1.1.1.1
[SW5500]ospf
[SW5500-ospf-1]area 0
[SW5500-ospf-1-area-0.0.0.0]authentication-mode md5
default cost Syntax
default cost
value
undo default cost
View
OSPF View
Parameter
value
Enter the default routing cost of the external route imported by OSPF, in
the range 0 to 16777214. By default, its value is 1.
Description
Use the default cost command to configure the default routing cost of an
external route imported by OSPF.
Use the undo default cost command to restore the default value of the default
routing cost configured for OSPF to import external routes.
Since OSPF can import external routing information, whose routing cost can
influence routing selection and calculation, and propagate it to the entire
autonomous system, it is necessary to specify the default routing cost for the
protocol to import external routes.