
 1- R6为isp,接口IP地址均为公有地址;该设备只能配
 置IP地址,之后不能再对其进行任何配置;
 2-R1-R5为局域网,私有IP地址192.168.1.0/24,请合
 理分配;
 3-所有路由器上环回,均代表连接用户的接口;
 4-R3下的两台PC通过DHCP自动获取IP地址
 5-选路最佳,路由表尽量小,避免环路;
 6-R1-R5均可访问R6的环回
 7-R6telnetR5的公有IP地址时,实际登陆到R1上
 8-R4与R5正常通过1000链路,故障时通过100兆链路口;
1、IP地址划分(便于汇总--减少路由条目的数量,便于管理)
192.168.1.0/24
六个网段借3位
192.168.1.0/27-->骨干路(六个网段借3位) 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
2.环回
R1环回
 192.168.1.0001 0 000/29 192.168.1.16/29
 192.168.1.0001 1 000/29 192.168.1.24/29
R2环回
 192.168.1.0011 0 000/29 192.168.1.48/29
 192.168.1.0011 1 000/29 192.168.1.56/29
R3环回
 192.168.1.010 1 0000/28 192.168.1.80/28
R4环回
 192.168.1.0111 0 000/29 192.168.1.112/29
 192.168.1.0111 1 000/29 192.168.1.120/29
R5环回
 192.168.1.100 1 0000/28 192.168.1.144/28
192.168.1.101 00000 /27 192.168.1.160/27
 192.168.1.110 00000 /27 192.167.1.192.27
 192.168.1.111 00000 /27 192.168.1.224.27
 3.所有路由器上环回均代表连接用户的接口;
 配置环回接口
 [R1]interface LoopBack 0
 [R1-LoopBack0]ip address 192.168.1.17 29
 [R1-LoopBack0]q
 [R1]interface LoopBack 1
 [R1-LoopBack1]ip address 192.168.1.25 29
 [R1-LoopBack1]q
 4.R3下的两台pc通过DHCP获取IP地址;
 路由器上进行dhcp配置
 [R3]dhcp enable
 [R3]ip pool xixi
 [R3-ip-pool-xixi]network 192.168.1.80 mask 255.255.255.248
 [R3-ip-pool-xixi]gateway-list 192.168.1.81
 [R3-ip-pool-xixi]dns-list 8.8.8.8
 [R3-ip-pool-xixi]q
 [R3]interface g0/0/2
 [R3-GigabitEthernet0/0/2]dhcp select global
 [R3-GigabitEthernet0/0/2]q
 5.选路最佳,路由表尽量小,避免环路;
 汇总
 [R1]ip route-static 192.168.1.112 28 192.168.1.2
6.R1-R5均可访问R6环回;
 ①R1-R5均配置缺省路由
 [R1]ip route-static 0.0.0.0 0 192.168.1.2
 [R2]ip route-static 0.0.0.0 0 192.168.1.34
 [R3]ip route-static 0.0.0.0 0 192.168.1.98
 [R4]ip route-static 0.0.0.0 0 192.168.1.130
 [R5]ip route-static 0.0.0.0 0 12.1.1.2
 ②R5边界路由器上配置nat进行地址转换
 [R5]acl 2000
 [R5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
 [R5-acl-basic-2000]q
 [R5]interface g0/0/1
 [R5-GigabitEthernet0/0/1]nat outbound 2000
ping 1.1.1.1
 PING 1.1.1.1: 56 data bytes, press CTRL_C to break
 Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=252 time=330 ms
 Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=252 time=250 ms
 Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=252 time=260 ms
 Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=252 time=450 ms
 Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=252 time=340 ms
 7.R4与R5正常通过1000链路,故障时通过100 兆链路
 浮动静态路由
 [R4]ip route-static 192.168.1.144 28 192.168.1.162 preference 80
 [R4]ip route-static 192.168.1.144 28 192.168.1.130 preference 50
  










