Configuring OSPF ip ospf message digest key md5
21-30 Routing Protocol Configuration
Example
ThisexampleshowshowtoenablesanOSPFauthentica tionkeyonVLAN1withthepassword
“yourpass”:
Matrix>Router(config)#interface vlan 1
Matrix>Router(config-if(Vlan 1))#ip ospf authentication-key yourpass
ip ospf message digest key md5
UsethiscommandtoenableordisableOSPFMD5authenticationonaninterface.
Syntax
ip ospf message-digest-key keyid md5 key
no ip ospf message-digest-key keyid
Parameters
Defaults
None.
Mode
Routercommand,Interfaceconfiguration:Matrix>Router(config‐if(Vlan1))#
Usage
ThiscommandvalidatesOSPFMD5routingupdatesbetweenneighboringrouters.
The“no”formofthiscommanddisablesMD5authenticationonaninterface.
Example
ThisexampleshowshowtoenableOSPFMD5authenticationonVLAN1,setthekeyidentifierto
20,andsetthepasswordto“passone”:
Matrix>Router(config)#interface vlan 1
Matrix>Router(config‐if(Vlan1))#ipospfmessage‐digest‐key20md5passone
distance ospf
UsethiscommandtoconfiguretheadministrativedistanceforOSPFroutes.
Syntax
distance ospf {external | inter-area | intra-area} weight
no distance ospf
{external| inter-area| intra‐area}
keyid Specifiesthekeyidentifieronthe interfacewhereMD5au thenticationis
enabled.Validvaluesareintegersfrom1to255.
key SpecifiesapasswordforMD5authenticationtobeusedwiththekeyid.
Validvaluesarealphanumericstringsofupto16bytes.