4-37DescriptionUse the ospf authentication-mode command to configure the authentication mode and key betweenadjacent routers.Use the undo ospf authentication-mode command to cancel the authentication key that has beenset.By default, the interface does not authenticate the OSPF packets.The passwords for authentication keys of the routers on the same network segment must be identical.In addition, you need to use the authentication-mode command to set the authentication type of thearea, 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 tosupport MD5 cipher text authentication. Set the authentication key identifier to 15 and theauthentication key to abc. system-viewSystem View: return to User View with Ctrl+Z.[Sysname] ospf 1[Sysname-ospf-1] area 1[Sysname-ospf-1-area-0.0.0.1] network 131.119.0.0 0.0.255.255[Sysname-ospf-1-area-0.0.0.1] authentication-mode md5[Sysname-ospf-1-area-0.0.0.1] quit[Sysname-ospf-1] quit[Sysname] interface Vlan-interface 10[Sysname-Vlan-interface10] ospf authentication-mode md5 15 abcospf costSyntaxospf cost valueundo ospf costViewInterface viewParametersvalue: Cost for running an OSPF process on an interface, in the range of 1 to 65535.DescriptionUse the ospf cost command to configure the OSPF cost on an interface.Use the undo ospf cost command to restore the default.By default, the OSPF cost on an interface is 10.You can use the display ospf brief command to display the OSPF cost information.Related commands: display ospf brief.