HCIP静态实验

在这里插入图片描述

在这里插入图片描述
根据要求划分子网如图划分 并且配置ip地址和环回接口

上面三点就已经达成完毕
配置AR3的DHCP
ar3:

[AR3]dhcp enable
[AR3]ip pool pool1
[AR3-ip-pool-pool1]network 192.168.1.96 mask 27
[AR3-ip-pool-pool1]gateway-list 192.168.1.97
[AR3-ip-pool-pool1]dns-list 8.8.8.8
[AR3]int g 0/0/0
[AR3-GigabitEthernet0/0/0]ip address 192.168.1.97 27
[AR3-GigabitEthernet0/0/0]dhcp select global

配置静态路由
ar1:
[AR1]ip route-static 0.0.0.0 0 192.168.1.2
[AR1]ip route-static 0.0.0.0 0 192.168.1.6
[AR1]ip route-static 192.168.1.64 27 192.168.1.2
[AR1]ip route-static 192.168.1.8 30 192.168.1.2
[AR1]ip route-static 192.168.1.12 30 192.168.1.6
[AR1]ip route-static 192.168.1.96 27 192.168.1.6
ar2:
[AR2]ip route-static 0.0.0.0 0 192.168.1.10
[AR2]ip route-static 192.168.1.96 27 192.168.1.1
[AR2]ip route-static 192.168.1.96 27 192.168.1.10
[AR2]ip route-static 192.168.1.4 30 192.168.1.1
[AR2]ip route-static 192.168.1.32 27 192.168.1.1
ar3
[AR3]ip route-static 0.0.0.0 0 192.168.1.14
[AR3]ip route-static 192.168.1.64 27 192.168.1.14
[AR3]ip route-static 192.168.1.64 27 192.168.1.5
[AR3]ip route-static 192.168.1.0 30 192.168.1.5
[AR3]ip route-static 192.168.1.32 27 192.168.1.5
ar4
[AR4]ip route-static 0.0.0.0 0 192.168.1.18
[AR4]ip route-static 0.0.0.0 0 192.168.1.22 preference 61
[AR4]ip route-static 192.168.1.32 27 192.168.1.9
[AR4]ip route-static 192.168.1.32 27 192.168.1.13
[AR4]ip route-static 192.168.1.0 30 192.168.1.9
[AR4]ip route-static 192.168.1.64 27 192.168.1.9
[AR4]ip route-static 192.168.1.96 27 192.168.1.13
[AR4]ip route-static 192.168.1.4 30 192.168.1.13
[AR4]ip route-static 192.168.1.160 27 192.168.1.18
ar5
[AR5]ip route-static 0.0.0.0 0 12.0.0.2
[AR5]ip route-static 192.168.1.0 24 192.168.1.21 preference 70

配置空接口
ar1
[AR1]ip route-static 192.168.1.32 27 NULL 0
ar2
[AR2]ip route-static 192.168.1.64 27 NULL 0
ar4
[AR4]ip route-static 0.0.0.0 0 GigabitEthernet 0/0/2 192.168.1.18

由于需要均要链接到ar6的环回所以可用NAT
ar5
[AR5]acl 2000
[AR5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[AR5]int g 0/0/2
第七点
ar1开启telnet
[AR1]aaa
[AR1-aaa]local-user wuhu privilege level 15 password cipher 123
[AR1-aaa]local-user wuhu service-type telnet
[AR1]user-interface vty 0 4
[AR1-ui-vty0-4]authentication-mode aaa
ar5配置端口映射
[AR5]int g 0/0/2
[AR5-GigabitEthernet0/0/2]nat server protocol tcp global current-interface 23 inside 192.168.1.1 23

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值