本文共 1288 字,大约阅读时间需要 4 分钟。
一、实验拓扑:
二、命令部署:1、基本部署:R1(config)#int f0/0R1(config-if)#no shutdownR1(config-if)#ip add 12.1.1.1 255.255.255.0R1(config)#int lo1R1(config-if)#ip add 1.1.1.1 255.255.255.0R1(config)#router rip
R1(config-router)#version 2R1(config-router)#network 12.1.1.0R1(config-router)#network 1.1.1.1R2(config)#int f0/0
R2(config-if)#no shutdownR2(config-if)#ip add 12.1.1.2 255.255.255.0R2(config)#int lo1R2(config-if)#ip add 2.2.2.2 255.255.255.0R2(config)#router rip
R2(config-router)#version 2R2(config-router)#network 12.1.1.0 R2(config-router)#network 2.2.2.22、重点部署:(1)定义钥匙链、序列号、钥匙密码R1(config)#key chain R1 定义钥匙链R1(config-keychain)#key 1 定义钥匙序列号R1(config-keychain-key)#key-string 123 定义钥匙密码R2(config)#key chain R2
R2(config-keychain)#key 1R2(config-keychain-key)#key-string 123(2)接口下调用R1(config-if)#ip rip authentication mode md5 先定义模式为MD5R1(config-if)#ip rip authentication key-chain R1 接口下调用钥匙链R1R2(config-if)#ip rip authentication mode md5
R2(config-if)#ip rip authentication key-chain R2三、验证:
R1#show key chainKey-chain R1:key 1 -- text "123"accept lifetime (always valid) - (always valid) [valid now]send lifetime (always valid) - (always valid) [valid now]R1#show run | s key chain
key chain R1key 1key-string 123转载于:https://blog.51cto.com/13856092/2137468