预配置 R1、R2上的预配置 R1(config)#int s2/1 R1(config-if)#ip add 12.0.0.1 255.255.255.0 R1(config-if)#no sh
R2(config)#int s2/1 R2(config-if)#ip add 12.0.0.2 255.255.255.0 R2(config-if)#no sh
配置过程 第一步:在R1上配置EIGRP R1(config)#router eigrp 11(注意和第六步的数字一致) R1(config-router)#net 12.0.0.1 R1(config-router)#exit 第二步:在R2上配置EIGRP R2(config)#router eigrp 11(注意和第六步的数字一致) R2(config-router)# net 12.0.0.2 R2(config-router)#exit 第三步:确认邻居关系 R1#sh ip ei nei IP-EIGRP neighbors for process 11 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 0 12.0.0.2 Se2/1 10 00:00:55 1292 5000 0 1 R1# 第四步:在R1、R2上配置密码认证 R1(config)#key chain xxx R1(config-keychain)#key 1 R1(config-keychain-key)#key-string cisco R1(config-keychain-key)#end
R2(config)#key chain xxx R2(config-keychain)#key 1 R2(config-keychain-key)#key-string cisco R2(config-keychain-key)#end R2#
第五步:确认key 的配置 **R1#sh key chain ** Key-chain xxx: key 1 -- text "cisco" accept lifetime (always valid) - (always valid) [valid now] send lifetime (always valid) - (always valid) [valid now] R1# 第六步:配置R1、R2链接认证 **R1(config-if)#ip authentication key-chain eigrp 11 xxx R1(config-if)#ip authentication mode eigrp 11 md5 ****
R2(config-if)#ip authentication key-chain eigrp 11 xxx R2(config-if)#ip authentication mode eigrp 11 md5
第七步:调试EIGRP包 R2(config)# *Nov 17 22:25:11.463: EIGRP: received packet with MD5 authentication, key id = 1 *Nov 17 22:25:11.463: EIGRP: Received HELLO on Serial2/1 nbr 12.0.0.1 *Nov 17 22:25:11.467: AS 11, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0 R2(config)#