248 CHAPTER 16: IP ROUTING PROTOCOL OPERATION
Configuring the OSPF Area to Support Packet Authentication
All the routers in an area must use the same authentication mode. In addition, all
routers on the same segment must use the same authentication key password. Use
the authentication-mode simple command to configure a simple authentication
password for the area, and the authentication-mode md5 command to configure
the MD5 authentication password.
Perform the following configuration in OSPF Area View.
By default, the area does not support packet authentication.
Configuring OSPF Packet Authentication
OSPF supports simple authentication or MD5 authentication between neighboring
routers.
Perform the following configuration in Interface View:
By default, the interface is not configured with either simple authentication or MD5
authentication.
Configuring OSPF to Import Routes of Other Protocols
The dynamic routing protocols on the router can share routing information. As far as
OSPF is concerned, the routes discovered by other routing protocols are always
processed as the external routes of AS. In the import-route commands, you can
specify the route cost type, cost value and tag to overwrite the default route receipt
parameters (refer to “Configuring Parameters for OSPF to Import External routes” on
page 249).
The OSPF uses the following four types of routes (in priority):
Intra-area route
Inter-area route
External route type 1
External route type 2
Table239 Configuring the OSPF Area to Support Packet Authentication
Operation Command
Configure the area to support
authentication type authentication-mode { simple | md5 }
Cancel the authentication attribute
of this area undo authentication-mode
Table240 Configuring OSPF Packet Authentication
Operation Command
Specify a password for OSPF simple
text authentication ospf authentication-mode simple password
Cancel simple authentication on the
interface undo ospf authentication-mode simple
Specify the key-id and key for OSPF
MD5 authentication ospf authentication-mode md5 key_id key
Disable the interface to use MD5
authentication undo ospf authentication-mode md5