HCIA综合实验

该实验涉及网络拓扑构建,通过192.168.0.0/24子网划分IP,并在R3路由器上配置DHCP服务。配置了多个静态路由以确保全网可达,同时在R4上设置了浮动静态路由。R1、R2、R3、R4和R5的默认路由也进行了设置,以实现不同子网间的通信。最后,R5配置了NAT外出规则。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一.实验要求

 二、实验步骤

1.建立新的拓扑

2.基于192.168.0.0/2划分所有IP

3. 然后在R3上配置DHCP

[r3]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r3]ip pool 111
Info: It's successful to create an IP address pool.
[r3-ip-pool-111]network 192.168.0.112 mask 255.255.255.240
[r3-ip-pool-111]gateway-list 192.168.0.113
[r3-ip-pool-111]dns-list 8.8.8.8
[r3]ip pool 222
Info: It's successful to create an IP address pool.     
[r3-ip-pool-222]network 192.168.0.128 mask 255.255.255.240
[r3-ip-pool-222]gateway-list 192.168.0.129
[r3-ip-pool-222]dns-list 8.8.8.8
[r3-ip-pool-222]q
[r3]int g 0/0/2.1
[r3-GigabitEthernet0/0/2.1]dhcp select global 
[r3-GigabitEthernet0/0/2.1]int g 0/0/2.2
[r3-GigabitEthernet0/0/2.2]dhcp select global 

4.配置静态路由

R1:

[r1]ip route-static 192.168.0.32 28 192.168.0.18
[r1]ip route-static 192.168.0.48 28 192.168.0.18
[r1]ip route-static 192.168.0.64 28 192.168.0.18
[r1]ip route-static 192.168.0.80 28 192.168.0.98
[r1]ip route-static 192.168.0.112 28 192.168.0.98
[r1]ip route-static 192.168.0.128 28 192.168.0.98

R2:

[r2]ip route-static 192.168.0.96 28 192.168.0.17
[r2]ip route-static 192.168.0.112 28 192.168.0.17
[r2]ip route-static 192.168.0.128 28 192.168.0.17
[r2]ip route-static 192.168.0.80 28 192.168.0.34
[r2]ip route-static 192.168.0.48 28 192.168.0.34
[r2]ip route-static 192.168.0.64 28 192.168.0.34

R3:

[r3]ip route-static 192.168.0.16 28 192.168.0.97
[r3]ip route-static 192.168.0.32 28 192.168.0.97
[r3]ip route-static 192.168.0.48 28 192.168.0.82
[r3]ip route-static 192.168.0.64 28 192.168.0.82

R4:

[r4]ip route-static 192.168.0.96 28 192.168.0.81
[r4]ip route-static 192.168.0.112 28 192.168.0.81
[r4]ip route-static 192.168.0.128 28 192.168.0.81

R5:

[r5]ip route-static 192.168.0.16 28 192.168.0.49
[r5]ip route-static 192.168.0.32 28 192.168.0.49
[r5]ip route-static 192.168.0.96 28 192.168.0.49
[r5]ip route-static 192.168.0.80 28 192.168.0.49
[r5]ip route-static 192.168.0.112 28 192.168.0.49
[r5]ip route-static 192.168.0.128 28 192.168.0.49

5.配置缺省路由

R1:

[r1]ip route-static 0.0.0.0 0 192.168.0.18
[r1]ip route-static 0.0.0.0 0 192.168.0.98

R2:

[r2]ip route-static 0.0.0.0 0 192.168.0.34 

R3:

[r3]ip route-static 0.0.0.0 0 192.168.0.82

R4:配置浮动静态路由

[r4]ip route-static 0.0.0.0 0 192.168.0.50 preference 80
[r4]ip route-static 0.0.0.0 0 192.168.0.66

R5:

[r5]ip route-static 0.0.0.0 0 100.1.1.2 

6.配置nat

[r5]acl 2000
[r5-acl-basic-2000]rule 1 permit source any
[r5-acl-basic-2000]q
[r5]int g 0/0/2
[r5-GigabitEthernet0/0/2]nat outbound 2000

三、实验结果

dhcp:

全网可达:

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值