206 CHAPTER 6: U SING ROUTING PROTOCOL COMMANDS[SW5500]ospf[SW5500-ospf-1]Enable the OSPF protocol with a process ID of 120.[SW5500]router id 10.110.1.8[SW5500]ospf 120[SW5500-ospf-120]ospfauthentication-modeSyntaxospf authentication-mode { simplepassword | md5key_id key }undo ospf authentication-mode { simple | md5 }ViewVLAN Interface viewParametersimplepassword Enter a password of no more than 8 characters.key_id Enter the ID of the MD5 authentication key, in the range from 1 to 255.key Enter the MD5 authentication key. If it is input in a plain text form, MD5 keyis a character string not exceeding 16 characters. And it will be displayed in acipher text form in a length of 24 characters when displaycurrent-configuration command is executed. Inputting the MD5 key in acipher text form with 24 characters is also supported.DescriptionUsing the ospf authentication-mode command, you can configure theauthentication mode and key between adjacent routers.Using the undo ospf authentication-mode command, you can cancel the setauthentication key. By default, the interface does not authenticate the OSPFpackets.The passwords for the authentication keys of routers on the same networksegment must be identical. In addition, if you use this command with theauthentication-mode command, you can set the authentication type of an area(see the example below).Related command: authentication-mode.ExampleArea 1 is where the network segment 131.119.0.0 of Interface Vlan-interface 1 islocated. To set this area to support MD5 cipher text authentication, with anauthentication key identifier of 15 and an authentication key of 3Com, enter thefollowing:system-viewSystem View: return to User View with Ctrl+Z.[SW5500]router id 1.1.1.1[SW5500]ospf[SW5500-ospf-1]