HCIA基础综合实验

HCIA基础综合实验

要求:

在这里插入图片描述
如图配置IP:
在这里插入图片描述

IP地址配置:

R1:
[R1]int LoopBack 1
[R1-LoopBack1]ip address 192.168.1.1 28
[R1]int LoopBack 2
[R1-LoopBack2]ip address 192.168.1.17 28
[R1-LoopBack2]q
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.33 28
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.1.49 28

R2:
[R2]int LoopBack 1
[R2-LoopBack1]ip ad
[R2-LoopBack1]ip address 192.168.1.65 28
[R2-LoopBack1]q
[R2]int LoopBack 2
[R2-LoopBack2]ip address 192.168.1.81 28
[R2-LoopBack2]q
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.1.34 28
[R2-GigabitEthernet0/0/1]ip address 192.168.1.97 28

R3:
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip address 192.168.1.50 28
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip address 192.168.1.114 28
[R3-GigabitEthernet0/0/1]int g0/0/2
[R3-GigabitEthernet0/0/2]ip address 192.168.1.194 28
[R3]dhcp enable
[R3]ip pool mypool
Info: It’s successful to create an IP address pool.
[R3-ip-pool-mypool]network 192.168.1.192 mask 28
[R3-ip-pool-mypool]dns-list 192.168.1.193
[R3-ip-pool-mypool]gateway-list 192.168.1.194
[R3-ip-pool-mypool]q
[R3]int g0/0/2
[R3-GigabitEthernet0/0/2]dhcp select global

PC1:
在这里插入图片描述

PC2:
在这里插入图片描述

R4:
[R4]int LoopBack 1
[R4-LoopBack1]ip address 192.168.1.129 28
[R4-LoopBack1]q
[R4]int LoopBack 2
[R4-LoopBack2]ip address 192.168.1.145 28
[R4-LoopBack2]q
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip address 192.168.1.98 28
[R4-GigabitEthernet0/0/0]int g0/0/1
[R4-GigabitEthernet0/0/1]ip address 192.168.1.113 28
[R4-GigabitEthernet0/0/1]int g0/0/2
[R4-GigabitEthernet0/0/2]ip address 192.168.1.177 28
[R4-GigabitEthernet0/0/2]int g4/0/0
[R4-GigabitEthernet4/0/0]ip address 192.168.1.161 28

R5:
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip address 192.168.1.178 28
[R5-GigabitEthernet0/0/0]int g0/0/1
[R5-GigabitEthernet0/0/1]ip address 192.168.1.162 28
[R5-GigabitEthernet0/0/1]q
[R5]int LoopBack 1
[R5-LoopBack1]ip address 192.168.1.209 28
[R5]int g0/0/2
[R5-GigabitEthernet0/0/2]ip address 10.1.1.1 24

R6:
R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ip address 10.1.1.2 24
[R6-GigabitEthernet0/0/0]q
[R6]int LoopBack 1
[R6-LoopBack1]ip address 8.8.8.8 24

添加路由:

R1
[R1]ip route-static 192.168.1.64 28 192.168.1.34
[R1]ip route-static 192.168.1.80 28 192.168.1.34
[R1]ip route-static 192.168.1.192 28 192.168.1.50
[R1]ip route-static 192.168.1.96 28 192.168.1.34
[R1]ip route-static 192.168.1.112 28 192.168.1.50
[R1]ip route-static 192.168.1.128 28 192.168.1.50
[R1]ip route-static 192.168.1.128 28 192.168.1.34
[R1]ip route-static 192.168.1.144 28 192.168.1.34
[R1]ip route-static 192.168.1.144 28 192.168.1.50
[R1]ip route-static 192.168.1.208 28 192.168.1.34
[R1]ip route-static 192.168.1.208 28 192.168.1.50
[R1]ip route-static 192.168.1.160 28 192.168.1.50
[R1]ip route-static 192.168.1.160 28 192.168.1.34
[R1]ip route-static 192.168.1.176 28 192.168.1.34
[R1]ip route-static 192.168.1.176 28 192.168.1.50
[R1]ip route-static 0.0.0.0 0 192.168.1.34
R2
[R2]ip route-static 192.168.1.0 28 192.168.1.33
[R2]ip route-static 192.168.1.16 28 192.168.1.33
[R2]ip route-static 192.168.1.128 28 192.168.1.98
[R2]ip route-static 192.168.1.144 28 192.168.1.98
[R2]ip route-static 192.168.1.48 28 192.168.1.33
[R2]ip route-static 192.168.1.112 28 192.168.1.98
[R2]ip route-static 192.168.1.192 28 192.168.1.98
[R2]ip route-static 192.168.1.192 28 192.168.1.33
[R2]ip route-static 192.168.1.160 28 192.168.1.98
[R2]ip route-static 192.168.1.208 28 192.168.1.98
[R2]ip route-static 192.168.1.176 28 192.168.1.98
[R2]ip route-static 0.0.0.0 0 192.168.1.98
R3
[R3]ip route-static 192.168.1.0 28 192.168.1.49
[R3]ip route-static 192.168.1.16 28 192.168.1.49
[R3]ip route-static 192.168.1.32 28 192.168.1.49
[R3]ip route-static 192.168.1.64 28 192.168.1.49
[R3]ip route-static 192.168.1.80 28 192.168.1.49
[R3]ip route-static 192.168.1.96 28 192.168.1.113
[R3]ip route-static 192.168.1.128 28 192.168.1.113
[R3]ip route-static 192.168.1.144 28 192.168.1.113
[R3]ip route-static 192.168.1.64 28 192.168.1.113
[R3]ip route-static 192.168.1.80 28 192.168.1.113
[R3]ip route-static 192.168.1.160 28 192.168.1.113
[R3]ip route-static 192.168.1.208 28 192.168.1.113
[R3]ip route-static 192.168.1.176 28 192.168.1.113
[R3]ip route-static 0.0.0.0 0 192.168.1.113
R4
[R4]ip route-static 192.168.1.192 28 192.168.1.114
[R4]ip route-static 192.168.1.48 28 192.168.1.114
[R4]ip route-static 192.168.1.16 28 192.168.1.114
[R4]ip route-static 192.168.1.0 28 192.168.1.114
[R4]ip route-static 192.168.1.0 28 192.168.1.97
[R4]ip route-static 192.168.1.16 28 192.168.1.97
[R4]ip route-static 192.168.1.32 28 192.168.1.97
[R4]ip route-static 192.168.1.64 28 192.168.1.97
[R4]ip route-static 192.168.1.80 28 192.168.1.97
[R4]ip route-static 0.0.0.0 0 192.168.1.162
[R4]ip route-static 0.0.0.0 0 192.168.1.178 preference 61

R5
[R5]ip route-static 192.168.1.96 28 192.168.1.161
[R5]ip route-static 192.168.1.96 28 192.168.1.177
[R5]ip route-static 192.168.1.112 28 192.168.1.177
[R5]ip route-static 192.168.1.112 28 192.168.1.161
[R5]ip route-static 192.168.1.192 28 192.168.1.161
[R5]ip route-static 192.168.1.192 28 192.168.1.177
[R5]ip route-static 192.168.1.48 28 192.168.1.177
[R5]ip route-static 192.168.1.16 28 192.168.1.177
[R5]ip route-static 192.168.1.0 28 192.168.1.177
[R5]ip route-static 192.168.1.0 28 192.168.1.97
[R5]ip route-static 192.168.1.16 28 192.168.1.97
[R5]ip route-static 192.168.1.32 28 192.168.1.97
[R5]ip route-static 192.168.1.64 28 192.168.1.97
[R5]ip route-static 192.168.1.80 28 192.168.1.97
[R5]ip route-static 192.168.1.96 28 192.168.1.97
[R5]ip route-static 0.0.0.0 0 10.1.1.2

NAT:

[R5]nat address-group 1 10.1.1.3 10.1.1.6
[R5]acl 2000
[R5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[R5-acl-basic-2000]q
[R5]int g0/0/2
[R5-GigabitEthernet0/0/2]nat outbound 2000 address-group 1 no-pat

TELNET:

ISP:
[R6-aaa]local-user wgq privilege level 15 password cipher 123456
[R6-aaa]local-user wgq service-type telnet
[R6-aaa]user-interface vty 0 4
[R6-ui-vty0-4]authentication-mode aaa
[R5-GigabitEthernet0/0/2]nat server protocol tcp global current-interface 23 ins
ide 192.168.1.33
Are you sure to continue?[Y/N]:y

全网可达验证:

pc访问:
在这里插入图片描述
R1:
在这里插入图片描述

Telnet:

在这里插入图片描述

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值