题目
1、R6为ISP,接口IP地址均为公有地址,该设备只能配置IP地址,之后不能再对其进行任何配置;
2、R1-R5为局域网,私有IP地址192.168.1.0/24,请合理分配;
3、R1、R2、R4,各有两个环回IP地址;R5,R6各有一个环回地址;所有路由器上环回均代表连接用户的接口;
4、R3下面的两台PC通过DHCP自动获取IP地址;
5、选路最佳,路由表尽量小,避免环路;
6、R1-R5均可以访问R6的环回;
7、R6 telnet R5的公有地址时,实际登录到R1上;
8、R4与R5正常通过1000M链路,故障时通过100m链路;
分析步骤
第一步:路由器配ip
(
2、R1-R5为局域网,私有IP地址192.168.1.0/24,请合理分配;
8、R4与R5正常通过1000M链路,故障时通过100m链路;
)
有7个骨干网络;
原始IP:192.168.1.0/24------>192.168.1.00000000 /24
有七个所以根据子网划分,网络位需要向主机位借3位
192.168.1.000 00000 /27------>r1/r2
192.168.1.001 00000 /27------>r1/r3
192.168.1.010 00000 /27------>r2/r4
192.168.1.011 00000 /27------>r3/r4
192.168.1.100 00000 /27------>r4/r5---1000M
192.168.1.101 00000 /27------>r4/r5---100M
192.168.1.110 00000 /27------>r3下网段
192.168.1.111 00000 /27------>保留
(
3、R1、R2、R4,各有两个环回IP地址;R5,R6各有一个环回地址;所有路由器上环回均代表 连接用户的接口;
)
192.168.1.111 000 00 /30------>r1环路1
192.168.1.111 001 00 /30------>r1环路2
192.168.1.111 010 00 /30------>r2环路1
192.168.1.111 011 00 /30------>r2环路2
192.168.1.111 100 00 /30------>r4环路1
192.168.1.111 101 00 /30------>r4环路2
192.168.1.111 110 00 /30------>r5环路
192.168.1.111 111 00 /30------>r6环路
1.1.1.0 /25------->r6环路
r1:
inter g 0/0/0
ip add 192.168.1.1 27
inter g 0/0/1
ip add 192.168.1.33 27
interface LoopBack 0
ip add 192.168.1.225 30
interface LoopBack 1
ip add 192.168.1.229 30
r2
inter g 0/0/0
ip add 192.168.1.2 27
inter g 0/0/1
ip add 192.168.1.65 27
interface LoopBack 0
ip add 192.168.1.132 30
interface LoopBack 1
ip add 192.168.1.237 30
r3
inter g 0/0/0
ip add 192.168.1.34 27
inter g 0/0/1
ip add 192.168.1.97 27
inter g 0/0/2
ip add 192.168.1.193 27
r4
inter g 0/0/0
ip add 192.168.1.66 27
inter g 0/0/1
ip add 192.168.1.98 27
inter g 0/0/2
ip add 192.168.1.129 27
inter g 4/0/0
ip add 192.168.1.161 27
inter loopback 0
ip add 192.168.1.241 30
inter loopback 1
ip add 192.168.1.245 30
r5
inter g 0/0/0
ip add 192.168.1.130 27
inter g 0/0/1
ip add 12.0.0.1 24
inter g 0/0/2
ip add 192.168.1.142 27
inter loopback 0
ip add 192.168.1.149 30
r6
inter g 0/0/1
ip add 12.0.0.2 24
inter loopback 0
ip add 192.168.1.252 30
第二步:计算机配ip
(
4、R3下面的两台PC通过DHCP自动获取IP地址;
)
r3
dhcp enable
ip pool aaa
network 192.168.1.170 mask 27
gateway-list 192.168.1.193
dns-list 8.8.8.8
第三步:使网络通
r1
ip route-static 192.168.1.64 27 192.168.1.2
ip route-static 192.168.1.92 27 192.168.1.34
ip route-static 192.168.1.131 30 192.168.1.2
ip route-static 192.168.1.22 30 192.168.1.2
ip route-static 192.168.1.193 27 192.168.1.34
ip route-static 0.0.0.0 0 192.168.1.2
r2
ip route-static 192.168.1.255 30 192.168.1.1
ip route-static 192.168.1.229 30 192.68.1.1
ip route-static 192.168.1.193 27 192.68.1.1
ip route-static 0.0.0.0 0 192.168.1.66
r3
ip route-static 192.168.1.0 27 192.168.1.33
ip route-static 192.168.1.255 30 192.168.1.33
ip route-static 192.168.1.229 30 192.168.1.33
ip route-static 192.168.1.132 30 192.168.1.33
ip route-static 192.168.1.237 30 192.168.1.33
ip route-static 192.168.1.64 27 192.168.1.33
ip route-static 0.0.0.0 0 192.168.1.98
r4
ip route-static 192.168.1.0 27 192.168.1.97
ip route-static 192.168.1.32 27 192.168.1.97
ip route-static 192.168.1.225 30 192.168.1.97
ip route-static 192.168.1.229 30 192.168.1.97
ip route-static 192.168.1.132 30 192.168.1.97
ip route-static 192.168.1.237 30 192.168.1.97
ip route-static 0.0.0.0 0 192.168.1.130
ip route-static 0.0.0.0 0 192.168 1.142 preference 61
r5
ip route-static 0.0.0.0 0 192.168.1.129
ip route-static 0.0.0.0 0 192.168.1.161 preference 61
ip route-static 1.1.1.0 24 12.0.0.2
第四步:telnet
r1
aaa
local-user admin privilege level 15 password cipher 123456
local-user admin service-type telnet
user-interface vty 0 4
authentication-mode aaa
r5
nat server protocol tcp global current-interface 23 ins
ide 192.168.1.1 27
Warning:The port 23 is well-known port. If you continue it may cause function fa
ilure.
Are you sure to continue?[Y/N]:y
r6:
R6验证:
telnet 12.0.0.2
Trying 12.0.0.2 ...
Press CTRL+K to abort
Connected to 12.0.0.2 ...
Login authentication
Username:admin
Password:
Info: The max number of VTY users is 10, and the number
of current VTY users on line is 1.
The current login time is 2024-03-16 14:16:39.