子网划分
192.168.1.0/24
192.168.1.0/27
192.168.1.32/27 R1 192.168.1.32/28 192.168.1.48/28
192.168.1.64/27 R2 192.168.1.64/28 192.168.1.80/28
192.168.1.96/27 R3
192.168.1.128/27 R4 192.168.1.128/28 192.168.1.144/28
192.168.1.160/27 R5
192.168.1.192/27
192.168.1.224/27
R1
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1
[r1]in
[r1]inter
[r1]interface lo
[r1]interface LoopBack 0
[r1-LoopBack0]ip ad
[r1-LoopBack0]ip address 192.168.1.33 28
[r1-LoopBack0]int lo1
[r1-LoopBack1]ip ad
[r1-LoopBack1]ip address 192.168.1.49 28
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip ad
[r1-GigabitEthernet0/0/1]ip address 192.168.1.1 30
Jan 11 2022 21:53:00-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]int
[r1-GigabitEthernet0/0/1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip ad
[r1-GigabitEthernet0/0/0]ip address 192.168.1.5 30
Jan 11 2022 21:53:18-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]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
[r1]ip rou
[r1]ip route
[r1]ip route-static 192.168.1.64 27 192.168.1.2
[r1]ip route-static 192.168.1.8 30 192.168.1.2
[r1]ip route-static 192.168.1.96 27 192.168.1.6
[r1]ip route-static 192.168.1.12 30 192.168.1.6
[r1]ip route-static 192.168.1.32 27 NULL 0
R2
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r2
[r2]int lo0
[r2-LoopBack0]ip ad
[r2-LoopBack0]ip address 192.168.1.65 28
[r2-LoopBack0]int lo1<