H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 3 OSPF Configuration Commands
3-37
3.1.31 ospf authentication-mode
Syntax
ospf authentication-mode { simple password | md5 key-id key }
undo ospf authentication-mode { simple | md5 }
View
Interface view
Parameters
simple password: Uses plain text authentication. The password argument is a string of
up to eight characters.
key-id: ID of the authentication key in MD5 authentication mode, in the range 1 to 255.
key: MD5 authentication key. You can either input the key in plain text (a string of 1 to
16 characters) or in a cipher text (exactly 24 characters). However, the key is displayed
in a cipher text of 24 characters with the display current-configuration command.
Description
Use the ospf authentication-mode command to configure the authentication mode
and key ID for adjacent routers.
Use the undo ospf authentication-mode command to remove specified
configuration.
By default, no authentication is available on an interface.
Interfaces attached to the same network segment must have the same authentication
password and mode.
In addition, you need to use the authentication-mode command to set the
authentication type of the area, so as to validate the configuration.
Related commands: authentication-mode.
Examples
# Configure area 1 where the network segment 131.119.0.0 of interface VLAN-interface
10 resides to support MD5 cipher text authentication. Set the authentication key
identifier to 15 and the authentication key to abc.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ospf 1
[H3C-ospf-1] area 1
[H3C-ospf-1-area-0.0.0.1] network 131.119.0.0 0.0.255.255
[H3C-ospf-1-area-0.0.0.1] authentication-mode md5
[H3C-Vlan-interface10] ospf authentication-mode md5 15 abc