一.实验需求
1.全网用192.168.1.0/24进行IP地址划分
2.R5作为DPC服务器
3.路由器上均匀两个环回
4.R4,R5之间有浮动静态路由
5.全网尽量负载均衡
6.减少路由表数量
7.全网可达
二.实验过程
1.搭建拓扑图

2.合理化划分IP
192.168.1.0/24
192.168.1.0/27---骨干链路
192.168.1.0/30---12间网段
192.168.1.4/30---13间网段
192.168.1.8/30---24间网段
192.168.1.12/30---34间网段
192.168.1.16/30---45间网段
192.168.1.20/30---45间网段
192.168.1.24/30---保留
192.168.1.28/30---保留
R1环回
192.168.1.32/28
192.168.1.48/28
R2环回
192.168.1.64/28
192.168.1.80/28
R3环回
192.168.1.96/28
192.168.112/28
R4环回
192.168.128/28
192.168.144/28
R5环回
192.168.1.160/28
192.168.1.176/28
3.配置ip
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 30
May 1 2023 09:26:07-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]q
[r1]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.1.5 30
May 1 2023 09:26:20-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r1-GigabitEthernet0/0/1]q
[r1]int l 0
[r1-LoopBack0]ip add 192.168.1.33 28
[r1-LoopBack0]q
[r1]int l 1
[r1-LoopBack1]ip add 192.168.1.49 28
[r1-LoopBack1]q
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.1.2 30
May 1 2023 09:27:22-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r2-GigabitEthernet0/0/0]q
[r2]int g 0/0/1
[r2-GigabitEthernet0/0/1]ip add 192.168.1.9 30
May 1 2023 09:27:51-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r2-GigabitEthernet0/0/1]q
[r2]int l 0
[r2-LoopBack0]ip add 192.168.1.65 28
[r2-LoopBack0]q
[r2]int l 1
[r2-LoopBack1]ip add 192.168.1.81 28
[r2-LoopBack1]q
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.1.6 30
May 1 2023 09:30:16-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r3-GigabitEthernet0/0/0]q
[r3]int g 0/0/1
[r3-GigabitEthernet0/0/1]ip add 192.168.1.13 30
May 1 2023 09:30:34-08:00 r3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r3-GigabitEthernet0/0/1]q
[r3]int l 0
[r3-LoopBack0]ip add 192.168.1.97 28
[r3-LoopBack0]q
[r3]int l 1
[r3-LoopBack1]ip add 192.168.1.113 28
[r3-LoopBack1]q
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]ip add 192.168.1.10 30
May 1 2023 09:32:24-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r4-GigabitEthernet0/0/0]q
[r4]int g 0/0/1
[r4-GigabitEthernet0/0/1]ip add 192.168.1.14 30
May 1 2023 09:32:53-08:00 r4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r4-GigabitEthernet0/0/1]q
[r4]int g 0/0/2
[r4-GigabitEthernet0/0/2]ip add 192.168.1.17 30
[r4-GigabitEthernet0/0/2]
May 1 2023 09:33:10-08:00 r4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[r4-GigabitEthernet0/0/2]q
[r4]int l 0
[r4-LoopBack0]ip add 192.168.1.129 28
[r4-LoopBack0]q
[r4]int l 1
[r4-LoopBack1]ip add 192.168.1.145 28
[r4-LoopBack1]q
[r4]int g 4/0/0
[r4-GigabitEthernet4/0/0]ip add 192.168.1.21 30
[r4-GigabitEthernet4/0/0]
May 1 2023 09:34:20-08:00 r4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
on the interface GigabitEthernet4/0/0 has entered the UP state.
[r4-GigabitEthernet4/0/0]q
[r5]int g 0/0/0
[r5-GigabitEthernet0/0/0]ip add 192.168.1.18 30
May 1 2023 09:34:46-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r5-GigabitEthernet0/0/0]q
[r5]int g 0/0/1
[r5-GigabitEthernet0/0/1]ip add 192.168.1.22 30
May 1 2023 09:35:34-08:00 r5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r5-GigabitEthernet0/0/1]q
[r5]int g 0/0/2
[r5-GigabitEthernet0/0/2]q
[r5]int l 0
[r5-LoopBack0]ip add 192.168.1.161 28
[r5-LoopBack0]q
[r5]int l 1
[r5-LoopBack1]ip add 192.168.1.177 28
[r5-LoopBack1]q
[r5]int g 0/0/2
[r5-GigabitEthernet0/0/2]ip add 192.168.1.193 27
May 1 2023 09:37:06-08:00 r5 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[r5-GigabitEthernet0/0/2]q
4.配置静态路由
[r1]ip route-static 192.168.1.64 27 192.168.1.2
[r1]ip route-static 192.168.1.96 27 192.168.1.6
[r1]ip route-static 192.168.1.8 30 192.168.1.2
[r1]ip route-static 192.168.1.12 30 192.168.1.6
[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.6
[r2]ip route-static 192.168.1.32 27 192.168.1.1
[r2]ip route-static 192.168.1.4 30 192.168.1.1
[r2]ip route-static 192.168.1.96 27 192.168.1.1
[r2]ip route-static 192.168.1.96 27 192.168.1.10
[r2]ip route-static 0.0.0.0 0 192.168.1.10
[r3]ip route-static 192.168.1.32 27 192.168.1.5
[r3]ip route-static 192.168.1.0 30 192.168.1.5
[r3]ip route-static 192.168.1.64 27 192.168.1.5
[r3]ip route-static 192.168.1.64 27 192.168.1.14
[r3]ip route-static 0.0.0.0 0 192.168.1.14
[r4]ip route-static 192.168.1.32 27 192.168.1.9
[r4]ip route-static 192.168.1.32 27 192.168.1.13
[r4]ip route-static 192.168.1.0 30 192.168.1.9
[r4]ip route-static 192.168.1.4 30 192.168.1.13
[r4]ip route-static 192.168.1.64 27 192.168.1.9
[r4]ip route-static 192.168.1.96 27 192.168.1.13
[r4]ip route-static 0.0.0.0 0 192.168.1.18
[r4]ip route-static 0.0.0.0 0 192.168.1.22
[r4]ip route-static 0.0.0.0 0 192.168.1.22 preference 90
[r5]ip route-static 192.168.1.0 24 192.168.1.17
[r5]ip route-
[r5]ip route-static 192.168.1.0 24 192.168.1.21 pre
[r5]ip route-static 192.168.1.0 24 192.168.1.21 preference 90
5.dhcp配置
[r5]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[r5]ip pool 1
Info: It's successful to create an IP address pool.
[r5-ip-pool-1]network 192.168.1.192 mask 27
[r5-ip-pool-1]gateway-list 192.168.1.193
[r5-ip-pool-1]dns-list 114.114.114.144
[r5-ip-pool-1]q
[r5]int g 0/0/2
[r5-GigabitEthernet0/0/2]dhcp select global
[r5-GigabitEthernet0/0/2]q
6.防环操作
[r1]ip route-static 192.168.1.32 27 NULL 0
[r2]ip route-static 192.168.1.64 27 NULL 0
[r3]ip route-static 192.168.1.96 27 NULL 0
[r4]ip route-static 192.168.1.128 27 NULL 0
7.将PC IPv4配置调为DHCP获取IP

PC>ipconfig
Link local IPv6 address...........: fe80::5689:98ff:fed9:5ff2
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 192.168.1.222
Subnet mask.......................: 255.255.255.224
Gateway...........................: 192.168.1.193
Physical address..................: 54-89-98-D9-5F-F2
DNS server........................: 114.114.114.144
8.检验各设备间互通

经检验各设备均互通,实验完成。
该实验构建了一个使用192.168.1.0/24子网的网络,通过IP地址的精细划分实现不同节点间的连接。R5作为DPC服务器,路由器上配置了多个环回接口,R4和R5之间配置了浮动静态路由以实现全网负载均衡。此外,通过DHCP服务为PC分配IP地址,并实施防环策略确保网络稳定性。最终,所有设备可以相互通信,实验目标达成。
1839

被折叠的 条评论
为什么被折叠?



