总结:首先划分网段再将网段汇总,然后用下一跳配置,需要配置缺省路由和空接口路由r4上改优先级让100m备用
r1:
[Huawei]sys
Jan 5 2023 18:39:30-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[1]:Interface GigabitEt
hernet0/0/1 has turned into UP state.
[Huawei]sys r1
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.33 28
Jan 5 2023 18:44:15-08:00 r1 %%01IFNET/4/LINK_STATE(l)[2]: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 ad
[r1-GigabitEthernet0/0/1]ip address 192.168.1.129 28
Jan 5 2023 18:44:44-08:00 r1 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r1-GigabitEthernet0/0/1]q
[r1]int
[r1]interface lo
[r1]interface LoopBack 0
[r1-LoopBack0]ip ad
[r1-LoopBack0]ip address 192.168.1.1 28
[r1-LoopBack0]q
[r1]int
[r1]interface lo
[r1]interface LoopBack 1
[r1-LoopBack1]ip ad
[r1-LoopBack1]ip address 192.168.1.17 28
[r1-LoopBack1]q
[r1]q
<r1>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<r1>
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r1>sys
<r1>system-view
Enter system view, return user view with Ctrl+Z.
[r1]ip ro
[r1]ip route
[r1]ip route-static
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r1>sys
Enter system view, return user view with Ctrl+Z.
[r1]ip st
[r1]ip ro
[r1]ip route
[r1]ip route-static
[r1]ip route
[r1]ip route-static 192.168.1.0 25 192.168.1.34
[r1]ip ro
[r1]ip route
[r1]ip route-static 192.168.1.0 24 192.168.1.130
[r1]ip ro
[r1]ip route
[r1]ip route-static 192.168.1.64 26 192.168.1.34
[r1]ip ro
[r1]ip route
[r1]ip route-static 192.168.1.128 25 192.168.1.130
[r1]ip ro
[r1]ip route
[r1]ip route-static 192.168.1.128 26 192.168.1.130
[r1]ip ro
[r1]ip route
[r1]ip route-static 192.168.1.192 27 192.168.1.130
[r1]ip ro
[r1]ip route
[r1]ip route-static192.168.1.192 26 192.168.1.34
^
Error: Unrecognized command found at '^' position.
[r1]ip route-static 192.168.1.192 27 192.168.1.130
^
Error:Too many parameters found at '^' position.
[r1]ip ro
[r1]ip route
[r1]ip route-static 192.168.1.192 26 192.168.1.34
[r1]q
<r1>sa
<r1>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<r1>sys
Enter system view, return user view with Ctrl+Z.
[r1]ip ro
[r1]ip route
[r1]ip route-static 0.0.0.0 0 192.168.1.34
[r1]ip ro
[r1]ip route
[r1]ip route-static 192.168.1.0 24 n
[r1]ip route-static 192.168.1.0 24 NULL 0
r2:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys r2
[r2]int
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip ad
[r2-GigabitEthernet0/0/0]ip address 192.168.1.34 28
Jan 5 2023 18:47:26-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]int
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]ip ad1
[r2-GigabitEthernet0/0/1]ip ad
[r2-GigabitEthernet0/0/1]ip address 192.168.1.81 28
Jan 5 2023 18:47:49-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
[r2]interface lo
[r2]interface LoopBack 0
[r2-LoopBack0]ip ad
[r2-LoopBack0]ip address 192.168.1.49 28
[r2-LoopBack0]q
[r2]int
[r2]interface lo
[r2]interface LoopBack 1
[r2-LoopBack1]ip ad
[r2-LoopBack1]ip address 192.168.1.65 28
[r2-LoopBack1]q
[r2]q
<r2>sa
<r2>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<r2>
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r2>sys
Enter system view, return user view with Ctrl+Z.
[r2]ip ro
[r2]ip route
[r2]ip route-static 192.168.1.0 26 192.168.1.33
[r2]ip ro
[r2]ip route
[r2]ip route-static192.168.1.128 27 192.168.1.33
^
Error: Unrecognized command found at '^' position.
[r2]ip route-static 192.168.1.128 27 192.168.1.33
[r2]ip ro
[r2]ip route
[r2]ip route-static 192.168.1.0 24 192.168.1.82
[r2]ip ro
[r2]ip route
[r2]ip route-static192.168.1.128 25 192.168.1.82
^
Error: Unrecognized command found at '^' position.
[r2]ip route-static 192.168.1.128 25 192.168.1.82
[r2]ip ro
[r2]ip route
[r2]ip route-static 192.168.1.128 26 192.168.1.82
[r2]ip ro
[r2]ip route
[r2]ip route-static 192.168.1.192 26 192.168.1.82
[r2]ip route-static 192.168.1.192 27 192.168.1.82
[r2]ip ro
[r2]ip route
[r2]ip route-static 0.0.0.0 0 192.168.1.82
[r2]ip r
[r2]ip rd-filtero
[r2]ip rr
[r2]ip ro
[r2]ip route-static 192.168.1.0 24 nu
[r2]ip route-static 192.168.1.0 24 NULL 0
r3:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys r3
[r3]ip ad
[r3]int
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip ad
[r3-GigabitEthernet0/0/0]ip address 192.168.1.130 28
Jan 5 2023 18:49:01-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]int g0/0/1
[r3-GigabitEthernet0/0/1]ip ad
[r3-GigabitEthernet0/0/1]ip address 192.168.1.177 28
Jan 5 2023 18:49:15-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]q
<r3>sys
Enter system view, return user view with Ctrl+Z.
[r3]int
[r3]interface lo
[r3]interface LoopBack 0
[r3-LoopBack0]ip ad
[r3-LoopBack0]ip address 192.168.1.97 28
[r3-LoopBack0]q
[r3]int lo
[r3]int LoopBack 1
[r3-LoopBack1]ip ad
[r3-LoopBack1]ip address 192.168.113 28
^
Error: Wrong parameter found at '^' position.
[r3-LoopBack1]ip address 192.168.1.113 28
[r3-LoopBack1]q
[r3]q
<r3>sa
<r3>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<r3>
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r3>sys
Enter system view, return user view with Ctrl+Z.
[r3]ip ro
[r3]ip route
[r3]ip route-static 192.168.1.0 26 192.168.1.129
[r3]ip ro
[r3]ip route
[r3]ip route-static 192.168.1.0 25 192.168.1.129
[r3]ip ro
[r3]ip route
[r3]ip route-static 192.168.1.128 26 192.168.1.17
[r3]ip route-static 192.168.1.128 26 192.168.1.178
[r3]ip ro
[r3]ip route
[r3]ip route-static 192.168.1.32 27 192.168.1.129
[r3]ip ro
[r3]ip route
[r3]ip route-static 192.168.1.64 26 192.168.1.178
[r3]ip ro
[r3]ip route
[r3]ip route-static 192.168.1.192 27 192.168.1.178
[r3]ip route-static 192.168.1.192 26 192.168.1.178
[r3]ip ro
[r3]ip route
[r3]ip route-static 192.168.1.0 24 nu
[r3]ip route-static 192.168.1.0 24 NULL 0
[r3]ip ro
[r3]ip route
[r3]ip route-static 0.0.0.0 0 192.168.1.178
r4:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys r4
[r4]int
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ip ad
[r4-GigabitEthernet0/0/0]ip address 192.168.1.178 28
[r4-GigabitEthernet0/0/0]
Jan 5 2023 18:50:45-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]int g0/0/1
[r4-GigabitEthernet0/0/1]ip ad
[r4-GigabitEthernet0/0/1]ip address 192.168.1.82 28
Jan 5 2023 18:51:00-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]int
[r4-GigabitEthernet0/0/1]int g0/0/2
[r4-GigabitEthernet0/0/2]ip ad
[r4-GigabitEthernet0/0/2]ip address 192.168.1.193 28
Jan 5 2023 18:51:20-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]int g0/0/4
^
Error: Unrecognized command found at '^' position.
[r4-GigabitEthernet0/0/2]int g4/0/0
[r4-GigabitEthernet4/0/0]ip ad
[r4-GigabitEthernet4/0/0]ip address 192.168.1.209 28
[r4-GigabitEthernet4/0/0]
Jan 5 2023 18:52:03-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]q
<r4>sys
<r4>system-view
Enter system view, return user view with Ctrl+Z.
[r4]int
[r4]interface lo
[r4]interface LoopBack 0
[r4-LoopBack0]ip ad
[r4-LoopBack0]ip address 192.168.1.145 28
[r4-LoopBack0]q
[r4]int lo
[r4]int LoopBack 1
[r4-LoopBack1]ip ad
[r4-LoopBack1]ip address 192.168.1.161 28
[r4-LoopBack1]q
[r4]q
<r4>sa
<r4>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<r4>
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r4>sys
<r4>system-view
Enter system view, return user view with Ctrl+Z.
[r4]ip ro
[r4]ip route
[r4]ip route-static 192.168.1.0 26 192.168.1.81
[r4]ip ro
[r4]ip route
[r4]ip route-static 192.168.1.0 25 192.168.1.81
[r4]ip ro
[r4]ip route
[r4]ip route-static 192.168.1.0 24 192.168.1.177
[r4]ip ro
[r4]ip route
[r4]ip route-static 192.168.1.32 27 192.168.1.81
[r4]ip ro
[r4]ip route
[r4]ip route-static 192.168.1.128 27 192.168.1.177
[r4]ip ro
[r4]ip route
[r4]ip route-static 192.168.1.0 24 nu
[r4]ip route-static 192.168.1.0 24 NULL 0
[r4]ip ro
[r4]ip route
[r4]ip route-static 0.0.0.0 0 192.168.1.194
[r4]ip route-static 0.0.0.0 0 192.168.1.210
[r4]q
<r4>sa
<r4>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<r4>sys
<r4>system-view
Enter system view, return user view with Ctrl+Z.
[r4]ip ro
[r4]ip route
[r4]ip route-static 5.5.5.0 24 192.168.1.210 pr
[r4]ip route-static 5.5.5.0 24 192.168.1.210 preference 61
r5:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys r5
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ip ad
[r5-GigabitEthernet0/0/0]ip address 192.168.1.194 28
Jan 5 2023 18:53:20-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]int g0/0/1
[r5-GigabitEthernet0/0/1]ip ad
[r5-GigabitEthernet0/0/1]ip address
^
Error:Incomplete command found at '^' position.
[r5-GigabitEthernet0/0/1]ip address 192.168.1.210 28
Jan 5 2023 18:53:37-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 lo
[r5]int LoopBack 0
[r5-LoopBack0]5.5.5.0 24
^
Error: Unrecognized command found at '^' position.
[r5-LoopBack0]ip ad
[r5-LoopBack0]ip address 5.5.5.0 24
Error: The specified IP address is invalid.
[r5-LoopBack0]ip address 5.5.5.0 24
Error: The specified IP address is invalid.
[r5-LoopBack0]ip ad
[r5-LoopBack0]ip address 5.5.5.0 24
Error: The specified IP address is invalid.
[r5-LoopBack0]ip address 5.5.5.1 24
[r5]ip route-static 192.168.1.0 24 NULL 0