HCIA复习---综合练习

HCIP第一天练习
在这里插入图片描述
根据题意配置如图,划分合理网段
在这里插入图片描述
配置IP地址和环回地址
R1:IP信息
在这里插入图片描述
R2:IP信息
在这里插入图片描述
R3:IP信息
在这里插入图片描述
R4:IP信息
在这里插入图片描述
R5:IP信息
在这里插入图片描述
R6:IP信息
在这里插入图片描述
通过DHCP自动获取IP地址

[R3]ip pool HCIP
[R3-ip-pool-HCIP]network 192.168.1.144 mask 28
[R3-ip-pool-HCIP]gateway-list 192.168.1.145
[R3-ip-pool-HCIP]dns-list 114.114.114.114 8.8.8.8
[R3-GigabitEthernet0/0/2]dhcp select global

PC1
在这里插入图片描述
PC2
在这里插入图片描述
添加静态路由

R1:
[R1]ip route-static 0.0.0.0 0 192.168.1.2
[R1]ip route-static 0.0.0.0 0 192.168.1.22	
[R1]ip route-static 192.168.1.32 27 192.168.1.2
[R1]ip route-static 192.168.1.144 28 192.168.1.22
[R1]ip route-static 192.168.1.4 30 192.168.1.2
[R1]ip route-static 192.168.1.16 30 192.168.1.22
R2:
[R2]ip route-static 0.0.0.0 0 192.168.1.6	
[R2]ip route-static 192.168.1.144 28 192.168.1.8
[R2]ip route-static 192.168.1.144 28 192.168.1.1
[R2]ip route-static 192.168.1.20 30 192.168.1.1
[R2]ip route-static 192.168.1.64 27 192.168.1.1
R3:
[R3]ip route-static 0.0.0.0 0 192.168.1.18	
[R3]ip route-static 192.168.1.32 27 192.168.1.21
[R3]ip route-static 192.168.1.32 27 192.168.1.18
[R3]ip route-static 192.168.1.0 30 192.168.1.21
[R3]ip route-static 192.168.1.64 27 192.168.1.21
R4:
[R4]ip route-static 0.0.0.0 0 192.168.1.10
[R4]ip route-static 0.0.0.0 0 192.168.1.14 preference 70	
[R4]ip route-static 192.168.1.64 27 192.168.1.5
[R4]ip route-static 192.168.1.64 27 192.168.1.17
[R4]ip route-static 192.168.1.32 27 192.168.1.5
[R4]ip route-static 192.168.1.144 28 192.168.1.17
[R4]ip route-static 192.168.1.0 30 192.168.1.5
[R4]ip route-static 192.168.1.20 30 192.168.1.17
[R4]ip route-static 192.168.1.128 27 192.168.1.10
R5:
[R5]ip route-static 0.0.0.0 0 12.0.0.2
[R5]ip route-static 192.168.1.0 24 192.168.1.9	
[R5]ip route-static 192.168.1.0 24 192.168.1.13 preference 70

添加空接口,避免路由黑洞

R1:
[R1]ip route-static 192.168.1.64 27 NULL0
R2:
[R2]ip route-static 192.168.1.32 27 NULL0
R4:
[R4]ip route-static 192.168.1.96 27 NULL0

解决浮动静态路由问题
R4:

[R4]undo ip route-static 0.0.0.0 0 192.168.1.10
[R4]ip route-static 0.0.0.0 0 GigabitEthernet 0/0/2 192.168.1.10
[R4-GigabitEthernet0/0/2]shutdown 
[R4]display ip routing-table 

在这里插入图片描述

[R4-GigabitEthernet0/0/2]restart
[R4]display ip routing-table

在这里插入图片描述

建立一对多的NAT关系,让R1-R5均可以R6的环回

R5:
[R5]acl 2000
[R5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[R5-acl-basic-2000]int g0/0/1
[R5-GigabitEthernet0/0/1]nat outbound 2000

R6 telnet R1

R1:
[R1]aaa
[R1-aaa]local-user admin privilege level 15 password cipher 123	
[R1-aaa]local-user admin service-type telnet 	
[R1-aaa]q
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa

做映射

R5:
[R5]interface GigabitEthernet 0/0/1
[R5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23 inside 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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值