要求:
1、全网用192.168.1/24进行IP地址分配
2、R5作为DHCP服务器为pc分配IP地址
3、路由上均具备2个环回地址
4、R4与R5之间正常走1000M,备份走100M
5、全网尽量负载均衡
6、减少路由表数量,并避免环路产生
7、全网可达
分析
1、总共需要14个网段,所以需要拿4位主机位;
2、不能直接编写到达静态路由,所以需要做缺省路由;
3、尽量减少路由表的路透条目,所以需要进行汇总;
4、R4与R5之间,需要配置浮动静态,即修改优先级。
配置
1.配置IP地址
R1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 28
Mar 15 2023 14:54:13-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]int g0/0/1
[r1-GigabitEthernet0/0/1]ip address 192.168.1.33 28
Mar 15 2023 14:54:50-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]dis
[r1-GigabitEthernet0/0/1]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.1/28 up up
GigabitEthernet0/0/1 192.168.1.33/28 up up
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
R2
<Huawei>sys
[Huawei]sysname r2
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.1.2 28
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]ip address 192.168.1.17 28
[r2-GigabitEthernet0/0/1]display ip interface brief
down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.162.1.17/28 up up
GigabitEthernet0/0/1 192.168.1.17/28 up up
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
R3
[Huawei]sy