静态路由综合实验【实验报告】
例图:

要求:
1.全网用192.168.1.0/24进行IP地址进行分配
2.R5作为DHCP服务器为PC分配IP地址
3.路由上均具备2个环回地址
4.R4与R5之间正常走1000M,备份走100M
5.全网尽量负载均衡
6.减少路由表数量,并避免环路产生
7.全网可达
分析:
1.根据要求,需要将192.168.1.0/24划分为17个网段,并需要给每个接口分配各自的IP地址。
如下:
192.168.1.0/29 — 192.168.1.1~6
192.168.1.8/29 — 192.168.1.9~14
192.168.1.16/29 — 192.168.1.17~22
192.168.1.24/29 — 192.168.1.25~30
192.168.1.32/29 — 192.168.1.33~38
192.168.1.40/29 — 192.168.1.41~46
192.168.1.48/29 — 192.168.1.49~54
192.168.1.56/29 — 192.168.1.57~62
192.168.1.64/29 — 192.168.1.65~70
192.168.1.72/29 — 192.168.1.73~78
192.168.1.80/29 — 192.168.1.81~86
192.168.1.88/29 — 192.168.1.89~94
192.168.1.96/29 — 192.168.1.97~102
192.168.1.104/29 — 192.168.1.105~110
192.168.1.112/29 — 192.168.1.113~118
192.168.1.120/29 — 192.168.1.121~126
192.168.1.128/29 — 192.168.1.129~134

搭建:
1、AR1
<r1>sys
Enter system view, return user view with Ctrl+Z.
[r1]inter G 0/0/1
[r1-GigabitEthernet0/0/1]ip address 192.168.1.9 29
Nov 11 2025 19:35:19-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r1-GigabitEthernet0/0/1]q
[r1]inter G 0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 29
Nov 11 2025 19:37:20-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]q
2、AR2
<r2>sys
Enter system view, return user view with Ctrl+Z.
[r2]inter G 0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.1.2 29
Nov 11 2025 19:39:43-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]inter G 0/0/1
[r2-GigabitEthernet0/0/1]ip address 192.168.1.25 29
Nov 11 2025 19:40:11-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]
3、AR3
<r3>sys
Enter system view, return user view with Ctrl+Z.
[r3]inter G 0/0/0
[r3-GigabitEthernet0/0/0]ip address 192.168.1.10 29
[r3-GigabitEthernet0/0/0]
Nov 11 2025 19:41:29-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]inter G 0/0/1
[r3-GigabitEthernet0/0/1]ip address 192.168.1.17 29
Nov 11 2025 19:42:01-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]
4、AR4
<r4>sys
Enter system view, return user view with Ctrl+Z.
[r4]inter G 0/0/0
[r4-GigabitEthernet0/0/0]ip address 192.168.1.26 29
Nov 11 2025 19:47:57-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]inter G 0/0/1
[r4-GigabitEthernet0/0/1]ip address 192.168.1.18 29
Nov 11 2025 19:52:46-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]inter G 0/0/2
[r4-GigabitEthernet0/0/2]ip address 192.168.1.33 29
[r4-GigabitEthernet0/0/2]
Nov 11 2025 19:56:44-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]inter G 4/0/0
[r4-GigabitEthernet4/0/0]ip address 192.168.1.41 29
[r4-GigabitEthernet4/0/0]
Nov 11 2025 19:57:44-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
[r4]ip route-static 192.168.1.40 255.255.255.248 192.168.1.42 preference 1
[r4]ip route-static 192.168.1.40 255.255.255.248 192.168.1.34 preference 2
5、AR5
<r5>sys
Enter system view, return user view with Ctrl+Z.
[r5]inter G 0/0/1
[r5-GigabitEthernet0/0/1]ip address 192.168.1.42 29
[r5-GigabitEthernet0/0/1]
Nov 11 2025 20:20:47-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r5-GigabitEthernet0/0/1]q
[r5]inter G 0/0/0
[r5-GigabitEthernet0/0/0]ip address 192.168.1.34 29
Nov 11 2025 20:21:17-08:00 r5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r5-GigabitEthernet0/0/0]q
[r5]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[r5]ip pool aa
Info: It's successful to create an IP address pool.
[r5-ip-pool-aa]network 192.168.1.0 mask 24
[r5-ip-pool-aa]gateway-list 192.168.1.254
[r5-ip-pool-aa]dns-list 8.8.8.8
[r5-ip-pool-aa]q
[r5]inter G 0/0/1
[r5-GigabitEthernet0/0/1]dhcp select global
[r5-GigabitEthernet0/0/1]q
[r5]inter G 0/0/0
[r5-GigabitEthernet0/0/0]dhcp select global
[r5-GigabitEthernet0/0/0]q
[r5]inter G 0/0/2
[r5-GigabitEthernet0/0/2]dhcp select global
[r5-GigabitEthernet0/0/2]q
