零、注意事项
- 本文中的所有ip均为教师案例的复现,实际操作时需要根据自己的学号修改
- 本次使用的EIGRP认证加密同理,需要修改为自己的姓名首字母
- 命令行中
#
及其后面的内容为注释,仅用于解释说明,不参与执行
一、拓扑图
二、基础配置
参考以前的ip配置方法,注意子网段的掩码配置,此处不再赘述。
三、实验操作
注意:除非题目中有特殊要求,自治系统编号必须全网统一
1.路由功能
# R0
en
conf
hostname R0 #修改路由器主机名,减轻配置负担
router eigrp 1
network 192.168.202.0 0.0.0.255 #反码可以不用写
net 192.168.203.0
# R1
en
conf
hostname R1
rou e 1
net 192.168.201.0
net 192.168.202.0
# R2
en
conf
hostname R2
rou e 1
net 192.168.201.0
net 192.168.202.0
# R3
en
conf
hostname R3
rou e 1
net 192.168.201.0
net 192.168.200.128 0.0.0.63
no auto-summary #关闭自动汇总
# R4
en
conf
hostname R4
rou e 1
net 192.168.200.0 0.0.0.63 #此处不是标准网络,但eigrp可以自动识别
net 192.168.200.128
# R5
en
conf
hostname R5
rou e 1
net 192.168.200.64
net 192.168.200.128
检验
# R4
end
sh ip ro
# R0
end
sh ip ro
# PC0
ping 192.168.203.1
2.EIGRP认证功能(以Switch1作为链路认证为例)
# R3
en
conf
key chain zxl #创建钥匙串,这里需要将"zxl"修改为自己的姓名首拼,后面同理
key 1 #选择第1把钥匙
key-string cisco #把密码填入钥匙,这里统一使用cisco作为密码
ex
end
conf
int f 0/0 #指定使用加密的网口
ip authentication mode eigrp 1 md5 #使用md5作为加密方式
ip authentication key-chain eigrp 1 zxl #这里需要将"zxl"修改为自己的姓名首拼,后面同理
# R1
en
conf
key chain zxl
key 1
key cisco #"key-string cisco"的简写
ex
end
conf
int f 0/1
ip au mo e 1 md5 #"ip authentication mode eigrp 1 md5"的简写
ip au ke e 1 zxl #"ip authentication key-chain eigrp 1 zxl"的简写
# R2
en
conf
key chain zxl
key 1
key cisco
end
conf
int f 0/1
ip authentication mode eigrp 1 md5
ip authentication key-chain eigrp 1 zxl
检验
# PC1
ping 192.168.203.1
3.手工汇总
# R1
en
conf
int f 0/0
ip summary-address eigrp 1 192.168.200.0 255.255.255.0
检验
# PC1
ping 192.168.203.1
四、截图要求
- 拓扑图
- R3
en sh run #以下为要求的截图内容 #定义密码 #0/0接口(包含密码调用、手工汇总) #router eigrp 1