IA综合复习实验

要求:

1、R6作为ISP,接口IP地址均为公有地址,该设备只能配置IP地址,之后不能对其进行其他任何配置

2、R1-R5为局域网,私有IP地址为192.168.1.0/24,请合理分配

3、R1、R2、R4各有两个环回地址;R5、R6各有一个环回地址;所有路由器上环回均代表连接用户的接口

4、R3下两台PC通过DHCP自动获取IP地址

5、选路最佳,路由表尽量小,避免环路

6、R1-R5均可以访问R6的环回

7、R6telnetR5的公有IP地址时,实际登录到R1上

8、R4与R5正常通过1000M链路,故障时通过100M链路

分析:

1、分配IP,并配置

分配:

192.168.1.0/27-----R1环回

        192.168.1.0/28

        192.168.1.16/28

192.168.1.32/27-----R2环回

        192.168.1.32/28

        192.168.1.48/28

192.168.1.64/27-----R3环回

192.168.1.96/27-----R4环回

        192.168.1.96/28

        192.168.1.112/28

192.168.1.128/27-----R5环回

192.168.1.160/28-----R1-R2

192.168.1.176/28-----R1-R3

192.168.1.192/28-----R2-R4

192.168.1.208/28-----R3-R4

192.168.1.224/28-----R4-R5(1000M)

192.168.1.240/28-----R4-R5(100M)

配置:
AR1:

[AR1]int g 0/0/0
[AR1-GigabitEthernet0/0/0]ip add 192.168.1.161 28
[AR1-GigabitEthernet0/0/0]int g 0/0/1
[AR1-GigabitEthernet0/0/1]ip add 192.168.1.177 28
[AR1-GigabitEthernet0/0/1]int l 0
[AR1-LoopBack0]ip add 192.168.1.1 28
[AR1-LoopBack0]int l 1
[AR1-LoopBack1]ip add 192.168.1.17 28

AR2:

[AR2]int g 0/0/0
[AR2-GigabitEthernet0/0/0]ip add 192.168.1.162 28
[AR2-GigabitEthernet0/0/0]int g 0/0/1
[AR2-GigabitEthernet0/0/1]ip add 192.168.1.193 28
[AR2-GigabitEthernet0/0/1]int l 0
[AR2-LoopBack0]ip add 192.168.1.33 28
[AR2-LoopBack0]int l 1
[AR2-LoopBack1]ip add 192.168.1.49 28

AR3:

[AR3]int g 0/0/0
[AR3-GigabitEthernet0/0/0]ip add 192.168.1.178 28
[AR3-GigabitEthernet0/0/0]int g 0/0/1
[AR3-GigabitEthernet0/0/1]ip add 192.168.1.209 28
[AR3-GigabitEthernet0/0/1]int g 0/0/2
[AR3-GigabitEthernet0/0/2]ip add 192.168.1.65 27

AR4:

[AR4]int g 0/0/0
[AR4-GigabitEthernet0/0/0]ip add 192.168.1.194 28
[AR4-GigabitEthernet0/0/0]int g 0/0/1
[AR4-GigabitEthernet0/0/1]ip add 192.168.1.210 28
[AR4-GigabitEthernet0/0/1]int g 0/0/2
[AR4-GigabitEthernet0/0/2]ip add 192.168.1.225 28
[AR4-GigabitEthernet0/0/2]int g 4/0/0
[AR4-GigabitEthernet4/0/0]ip add 192.168.1.241 28
[AR4-GigabitEthernet4/0/0]int l 0
[AR4-LoopBack0]ip add 192.168.1.97 28
[AR4-LoopBack0]int l 1
[AR4-LoopBack1]ip add 192.168.1.113 28

AR5:

[AR5]int g 0/0/0
[AR5-GigabitEthernet0/0/0]ip add 192.168.1.226 28
[AR5-GigabitEthernet0/0/0]int g 0/0/1
[AR5-GigabitEthernet0/0/1]ip add 12.0.0.1 24
[AR5-GigabitEthernet0/0/1]int g 0/0/2
[AR5-GigabitEthernet0/0/2]ip add 192.168.1.242 28
[AR5-GigabitEthernet0/0/2]int l 0
[AR5-LoopBack0]ip add 192.168.1.129 27

AR6:

[AR6]int g 0/0/0
[AR6-GigabitEthernet0/0/0]ip add 12.0.0.2 24
[AR6-GigabitEthernet0/0/0]int l 0
[AR6-LoopBack0]ip add 1.1.1.1 24

 2、给PC1、PC2配置DHCP获取地址

配置:
AR3:

[AR3]ip pool tqss
[AR3-ip-pool-tqss]network 192.168.1.64 mask 27
[AR3-ip-pool-tqss]gateway-list 192.168.1.65
[AR3-ip-pool-tqss]dns-list 114.114.114.114
[AR3-ip-pool-tqss]q
[AR3]int g 0/0/2
[AR3-GigabitEthernet0/0/2]dhcp select global 

结果:
PC1:
PC2: 

3、配置静态路由使得全网可达,并且R4-R5是浮动静态路由,R1-R5都可以访问R6的环回

配置:
AR1:

R2-R4:

[AR1]ip route-static 192.168.1.192 28 192.168.1.162

R2环回:

[AR1]ip route-static 192.168.1.32 27 192.168.1.162

R3-R4:

[AR1]ip route-static 192.168.1.208 28 192.168.1.178

R3环回:
[AR1]ip route-static 192.168.1.64 27 192.168.1.178

R4环回:

[AR1]ip route-static 192.168.1.96 27 192.168.1.178
[AR1]ip route-static 192.168.1.96 27 192.168.1.162

R4-R5(1000):

[AR1]ip route-static 192.168.1.224 28 192.168.1.162
[AR1]ip route-static 192.168.1.224 28 192.168.1.178

R4-R5(100):

[AR1]ip route-static 192.168.1.240 28 192.168.1.162
[AR1]ip route-static 192.168.1.240 28 192.168.1.178

R5环回:

[AR1]ip route-static 192.168.1.128 27 192.168.1.162
[AR1]ip route-static 192.168.1.128 27 192.168.1.178

缺省:

[AR1]ip route-static 0.0.0.0 0 192.168.1.178
[AR1]ip route-static 0.0.0.0 0 192.168.1.162

AR2:

R1环回:

[AR2]ip route-static 192.168.1.0 27 192.168.1.161

R1-R3:

[AR2]ip route-static 192.168.1.176 28 192.168.1.161

R3环回:

[AR2]ip route-static 192.168.1.64 27 192.168.1.161

[AR2]ip route-static 192.168.1.64 27 192.168.1.194

R3-R4:

[AR2]ip route-static 192.168.1.208 28 192.168.1.194

R4环回:

[AR2]ip route-static 192.168.1.96 27 192.168.1.194

R4-R5(1000):

[AR2]ip route-static 192.168.1.224 28 192.168.1.194

[AR2]ip route-static 192.168.1.240 28 192.168.1.194

R5环回:

[AR2]ip route-static 192.168.1.128 27 192.168.1.194

缺省:

[AR2]ip route-static 0.0.0.0 0 192.168.1.194

AR3:

R1环回:

[AR3]ip route-static 192.168.1.0 27 192.168.1.177

R1-R2:

[AR3]ip route-static 192.168.1.160 28 192.168.1.177

R2环回:

[AR3]ip route-static 192.168.1.32 27 192.168.1.177
[AR3]ip route-static 192.168.1.32 27 192.168.1.210

R2-R4:

[AR3]ip route-static 192.168.1.192 28 192.168.1.210

R4环回:

[AR3]ip route-static 192.168.1.96 27 192.168.1.210

R4-R5(1000):

[AR3]ip route-static 192.168.1.224 28 192.168.1.210 

R4-R5(100):

[AR3]ip route-static 192.168.1.240 28 192.168.1.210

R5环回:

[AR3]ip route-static 192.168.1.128 27 192.168.1.210

缺省:

[AR3]ip route-static 0.0.0.0 0 192.168.1.210

AR4:

R1环回:

[AR4]ip route-static 192.168.1.0 27 192.168.1.193
[AR4]ip route-static 192.168.1.0 27 192.168.1.209

R1-R2:

[AR4]ip route-static 192.168.1.160 28 192.168.1.193

R1-R3:

[AR4]ip route-static 192.168.1.176 28 192.168.1.209

R2环回:

[AR4]ip route-static 192.168.1.32 27 192.168.1.193

R3环回:

[AR4]ip route-static 192.168.1.64 27 192.168.1.209

R5环回(1000):

[AR4]ip route-static 192.168.1.128 27 192.168.1.226

R5环回(100):

[AR4]ip route-static 192.168.1.128 28 192.168.1.242 preference 70

缺省:

[AR4]ip route-static 0.0.0.0 0 192.168.1.226

[AR4]ip route-static 0.0.0.0 0 192.168.1.242 preference 70

AR5:

R1环回:

[AR5]ip route-static 192.168.1.0 27 192.168.1.225

[AR5]ip route-static 192.168.1.0 27 192.168.1.241 preference 70

R1-R2:

[AR5]ip route-static 192.168.1.160 28 192.168.1.225 
[AR5]ip route-static 192.168.1.160 28 192.168.1.241 preference 70

R1-R3:

[AR5]ip route-static 192.168.1.176 28 192.168.1.225 
[AR5]ip route-static 192.168.1.176 28 192.168.1.241 preference 70

R2环回:

[AR5]ip route-static 192.168.1.32 27 192.168.1.225

[AR5]ip route-static 192.168.1.32 27 192.168.1.241 preference 70

R3环回:

[AR5]ip route-static 192.168.1.64 27 192.168.1.225 
[AR5]ip route-static 192.168.1.64 27 192.168.1.241 preference 70

R2-R4:

[AR5]ip route-static 192.168.1.192 28 192.168.1.225  
[AR5]ip route-static 192.168.1.192 28 192.168.1.241 preference 70

R3-R5:

[AR5]ip route-static 192.168.1.208 28 192.168.1.225   
[AR5]ip route-static 192.168.1.208 28 192.168.1.241 preference 70

R4环回:

[AR5]ip route-static 192.168.1.96 27 192.168.1.225  
[AR5]ip route-static 192.168.1.96 27 192.168.1.241 preference 70

缺省:

[AR5]ip route-static 0.0.0.0 0 12.0.0.2

测试:
AR1:

AR2:
AR3:
AR4:
AR5:

 4、R1为telnet服务器,并映射到R5上

配置:
AR1:

[AR1]user-interface vty 0 4

[AR1-ui-vty0-4]authentication-mode  aaa

[AR1-aaa]local-user huawei password cipher 123456

[AR1-aaa]local-user huawei privilege level 15

[AR1-aaa]local-user huawei service-type telnet

AR5:
[AR5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 114 i
nside  192.168.1.161 23
Warning:The port 114 is well-known port. If you continue it may cause function f
ailure.
Are you sure to continue?[Y/N]:y
测试:
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值