实验分析
1.规划ip
2.配置ip和环回,检查连通性
3.开启dhcp自动获取ip
4.配置缺省路由,静态路由
5.添加空接口,防止路由黑洞
6.建立一对多的nat关系,使r1-r5均可以访问r6环回
7.r6 talent r1
1.规划ip
192.168.1.0/24
192.168.1.0/27
骨干
192.168.1.0/30
192.168.1.4/30
192.168.1.8/30
192.168.1.12/30
192.168.1.16/30
192.168.1.20/30
192.168.1.24/30
192.168.1.28/30
192.168.1.32/27
r1: 192.168.1.32/28
192.168.1.48/28
192.168.1.64/27
r2:192.168.1.64/28
192.168.1.80/28
r3:192.168.1.96/27
192.168.1.128/27
r4:192.168.1.128/28
192.168.1.144/28
r5:192.168.1.160/27
备用: 192.168.1.192/27
192.168.1.224/27
拓扑图
配置ip
r1
r2
r3
r4
r5
r6
静态路由配置
r1
r2
r3
r4
r5
配置空接口
[r1]ip route-static 192.168.1.64 27 NULL 0
[r2]ip route-static 192.168.1.64 27 NULL 0
[r4]ip route-static 192.168.1.128 27 NULL 0
[r5]ip route-static 192.168.1.0 24 NULL 0
DHCP获取ip
配置ACL使r1-r5均可访问r6
acl 2000
rule permit source 192.168.1.0 0.0.0.255
int g0/0/1
nat outbound 2000
端口映射
local-user admin privilege level 15 password cipher 123456
local-user admin service-type telnet
user-interface vt 0 4
authentication-mode aaa
nat server protocol tcp global current-interface 23 inside 192.168.1.1 23