一个作业

一个作业
1.R6为ISP,接口IP地址均为公有地址,该设备只能配置IP地址,之后不能再对其进行任何配置;
R6配置地址12.1.1.2 24后不进行其他任何配置
2…R1-R5为局域网,私有IP地址192.168.1.0/24,请合理分配;
子网划分(借三位2^3=8>5)
192.168.1.0/24
3.所有路由器上环回均代表连接用户的接口;
配置环回接口
[R1]interface LoopBack 0
[R1-LoopBack0]ip address 192.168.1.17 29
[R1]interface LoopBack 1
[R1-LoopBack1]ip address 192.168.1.25 29
4.R3下的两台pc通过DHCP获取IP地址;
路由器上进行dhcp配置
[R3]dhcp enable
[R3]ip pool xx
[R3-ip-pool-xx]network 192.168.1.80 mask 255.255.255.248
[R3-ip-pool-xx]gateway-list 192.168.1.81
[R3-ip-pool-xx]dns-list 8.8.8.8
[R3]interface g0/0/2
[R3-GigabitEthernet0/0/2]dhcp select global

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]interface g0/0/1
[R5-GigabitEthernet0/0/1]nat outbound 2000

7.R6telnetR5的公有IP时,实际登录到R1上;
8.R4与R5正常通过1000链路,故障时通过100兆链路
浮动静态路由

7.R6telnetR5的公有IP时,实际登录到R1上;
R5上配置nat
[R5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23 ins
ide 192.168.1.1 23
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
[R5-GigabitEthernet0/0/1]q

R1上开启远程登录服务
[R1]aaa
[R1-aaa]local-user ceshi password cipher huawei
[R1-aaa]local-user ceshi service-type telnet
[R1-aaa]local-user ceshi privilege level 15
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa

8.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