子网划分
192.168.1.000 00000/24
192.168.1.0/27
192.168.1.000000 00
192.168.1.0/30
192.168.1.0000001 00
192.168.1.4/30
192.168.1.000010 00
192.168.1.8/30
192.168.1.12/30
192.168.1.16/30
192.168.1.001 00000
192.168.1.32/27 --- r1
192.168.1.0010 0000
192.168.1.32/28
192.168.1.0011 0000
192.168.1.48/28
192.168.1.010 00000
192.168.1.64/27 --- r2
192.168.1.010 0 0000
192.168.1.64/28
192.168.1.010 1 0000
192.168.1.80/28
192.168.1.96/27 ---- r3
192.168.1.96/28
192.168.1.112/28
192.168.1.128/27 ----r4
192.168.1.128/28
192.168.1.144/28
配置
sysname r3
interface GigabitEthernet0/0/0
ip address 192.168.1.22 255.255.255.252
#
interface GigabitEthernet0/0/1
ip address 192.168.1.18 255.255.255.252
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 192.168.1.129 255.255.255.240
#
interface LoopBack1
ip address 192.168.1.145 255.255.255.240
#
ip route-static 0.0.0.0 0.0.0.0 192.168.1.17
ip route-static 192.168.1.0 255.255.255.252 192.168.1.21
ip route-static 192.168.1.4 255.255.255.252 192.168.1.17
ip route-static 192.168.1.8 255.255.255.252 192.168.1.17
ip route-static 192.168.1.12 255.255.255.252 192.168.1.17 preference 61
ip route-static 192.168.1.32 255.255.255.224 192.168.1.21
ip route-static 192.168.1.64 255.255.255.224 192.168.1.21
ip route-static 192.168.1.64 255.255.255.224 192.168.1.17
ip route-static 192.168.1.96 255.255.255.224 192.168.1.17
ip route-static 192.168.1.128 255.255.255.224 NULL0
sysname r5
interface GigabitEthernet0/0/0
ip address 192.168.1.10 255.255.255.252
#
interface GigabitEthernet0/0/1
ip address 192.168.1.14 255.255.255.252
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 5.5.5.5 255.255.255.0
#
ip route-static 192.168.1.0 255.255.255.0 192.168.1.9
ip route-static 192.168.1.0 255.255.255.0 192.168.1.13 preference 61
#
sysname r2
interface GigabitEthernet0/0/0
ip address 192.168.1.2 255.255.255.252
#
interface GigabitEthernet0/0/1
ip address 192.168.1.5 255.255.255.252
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 192.168.1.65 255.255.255.240
#
interface LoopBack1
ip address 192.168.1.81 255.255.255.240
#
ip route-static 0.0.0.0 0.0.0.0 192.168.1.6
ip route-static 192.168.1.8 255.255.255.252 192.168.1.6
ip route-static 192.168.1.12 255.255.255.252 192.168.1.6 preference 61
ip route-static 192.168.1.16 255.255.255.252 192.168.1.6
ip route-static 192.168.1.20 255.255.255.252 192.168.1.1
ip route-static 192.168.1.32 255.255.255.224 192.168.1.1
ip route-static 192.168.1.64 255.255.255.224 NULL0
ip route-static 192.168.1.96 255.255.255.224 192.168.1.6
ip route-static 192.168.1.128 255.255.255.224 192.168.1.6
ip route-static 192.168.1.128 255.255.255.224 192.168.1.1
#
sysname r4
interface GigabitEthernet0/0/0
ip address 192.168.1.6 255.255.255.252
#
interface GigabitEthernet0/0/1
ip address 192.168.1.17 255.255.255.252
#
interface GigabitEthernet0/0/2
ip address 192.168.1.9 255.255.255.252
#
interface GigabitEthernet4/0/0
ip address 192.168.1.13 255.255.255.252
#
interface NULL0
#
interface LoopBack0
ip address 192.168.1.97 255.255.255.240
#
interface LoopBack1
ip address 192.168.1.113 255.255.255.240
#
ip route-static 0.0.0.0 0.0.0.0 192.168.1.10
ip route-static 0.0.0.0 0.0.0.0 192.168.1.14 preference 61
ip route-static 192.168.1.0 255.255.255.252 192.168.1.5
ip route-static 192.168.1.20 255.255.255.252 192.168.1.18
ip route-static 192.168.1.32 255.255.255.224 192.168.1.18
ip route-static 192.168.1.32 255.255.255.224 192.168.1.5
ip route-static 192.168.1.64 255.255.255.224 192.168.1.5
ip route-static 192.168.1.96 255.255.255.224 NULL0
ip route-static 192.168.1.128 255.255.255.224 192.168.1.18
sysname r1
interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.252
#
interface GigabitEthernet0/0/1
ip address 192.168.1.21 255.255.255.252
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 192.168.1.33 255.255.255.240
#
interface LoopBack1
ip address 192.168.1.49 255.255.255.240
#
ip route-static 0.0.0.0 0.0.0.0 192.168.1.2
ip route-static 192.168.1.4 255.255.255.252 192.168.1.2
ip route-static 192.168.1.8 255.255.255.252 192.168.1.2
ip route-static 192.168.1.8 255.255.255.252 192.168.1.22
ip route-static 192.168.1.12 255.255.255.252 192.168.1.2 preference 61
ip route-static 192.168.1.12 255.255.255.252 192.168.1.22 preference 61
ip route-static 192.168.1.16 255.255.255.252 192.168.1.22
ip route-static 192.168.1.32 255.255.255.224 NULL0
ip route-static 192.168.1.64 255.255.255.224 192.168.1.2
ip route-static 192.168.1.96 255.255.255.224 192.168.1.2
ip route-static 192.168.1.96 255.255.255.224 192.168.1.22
ip route-static 192.168.1.128 255.255.255.224 192.168.1.22
测试