Specifications

ip ospf message digest key md5
16-22 IPv4 Routing Protocol Configuration
Usage
Thispasswordisusedasa“key”thatisinserteddirectlyintotheOSPFheaderinroutingprotocol
packets.AseparatepasswordcanbeassignedtoeachOSPFnetworkonaperinterfacebasis.
Allneighboringroutersonthesamenetworkmusthavethesamepasswordconfiguredtobeable
to
exchangeOSPFinformation.
Example
ThisexampleshowshowtoenablesanOSPFauthentication keyontheVLAN1interfacewiththe
password“yourpass”:
C3(su)->router(Config)#interface vlan 1
C3(su)->router(Config-if(Vlan 1))#ip ospf authentication-key yourpass
ip ospf message digest key md5
UsethiscommandtoenableordisableOSPFMD5authenticationonaninterface.Thisvalidates
OSPFMD5routingupdatesbetweenneighboringrouters.Thenoformofthiscommanddisables
MD5authenticationonaninterface.
Syntax
ip ospf message-digest-key keyid md5 key
no ip ospf message-digest-key keyid
Parameters
Defaults
None.
Mode
Interfaceconfiguration:C3(su)>router(Configif(Vlan1))#
Example
ThisexampleshowshowtoenableOSPFMD5authenticationontheVLAN1interface,setthekey
identifierto20,andsetthepasswordto“passone”:
C3(su)->router(Config)#interface vlan 1
C3(su)->router(Config-if(Vlan 1))#ip ospf message-digest-key 20 md5 passone
keyid SpecifiesthekeyidentifierontheinterfacewhereMD5authenticationis
enabled.Validvaluesareintegersfrom1to255.
key SpecifiesapasswordforMD5authenticationtobeusedwiththekeyid.Valid
valuesarealphanumericstringsofupto16characters.