将192.168.1.0/24分成14个网段;
总母网192.168.1.0/24(即192.168.1.0000 0000/24)
AR1-AR2:192.168.1.0/28 00000000
AR2-AR4:192.168.1.16/28 00010000
手工子网汇总:192.168.1.0/27
AR1-AR3: 192.168.1.32/28 00100000
AR3-AR4: 192.168.1.48/28 00110000
手工子网汇总:192.168.32.0/27
AR4-AR5: 192.168.1.64/28 01000000(preference:60)1000M链路
AR5-AR4: 192.168.1.80/28 01010000(preference:61)100M链路
手工子网汇总:192.168.64.0/27
AR1环回:
192.168.1.224/28 11100000
192.168.1.240/28 11110000
手工子网汇总:192.168.1.224/27
AR2环回:
192.168.1.128/28 10000000
192.168.1.144/28 10010000
手工子网汇总:192.168.1.128/27
AR3环回:
192.168.1.160/28 10100000
192.168.1.176/28 10110000
手工子网汇总:192.168.1.160/27
AR4环回:
192.168.1.192/28 11000000
192.168.1.208/28 11010000
手工子网总汇:192.168.1.192/27
四个手工总汇子网的总汇:192.168.1.128/25
(1)AR1:
[sw1-GigabitEthernet0/0/0]ip address 192.168.1.1
[sw1-GigabitEthernet0/0/1]ip address 192.168.1.33
[sw1]interface LoopBack 0
[sw1-LoopBack0]ip address 192.168.1.224 28
[sw1]interface LoopBack 1
[sw1-LoopBack1]ip address 192.168.1.240 28
(2)AR2:
[sw2-GigabitEthernet0/0/0]ip address 192.168.1.2
[sw2-GigabitEthernet0/0/1]ip address 192.168.1.17
[sw2]interface LoopBack 0
[sw2-LoopBack0]ip address 192.168.1.128 28
[sw2]interface LoopBack 1
[sw2-LoopBack0]ip address 192.168.1.144 28
(3)AR3:
[sw3-GigabitEthernet0/0/0]ip address 192.168.1.34
[sw3-GigabitEthernet0/0/1]ip address 192.168.1.49
[sw3]interface LoopBack 0
[sw3-LoopBack0]ip address 192.168.1.160 28
[sw3]interface LoopBack 1
[sw3-LoopBack1]ip address 192.168.1.176 28
(4)AR4:
[sw4-GigabitEthernet0/0/0]ip address 192.168.1.18
[sw4-GigabitEthernet0/0/1]ip address 192.168.1.65
[sw4-GigabitEthernet0/0/2]ip address 192.168.1.50
[sw4-GigabitEthernet4/0/0]ip address 192.168.1.81
[sw4]interface LoopBack 0
[sw4-LoopBack0]ip address 192.168.1.192 28
[sw4]interface LoopBack 1
[sw4-LoopBack1]ip address 192.168.1.208 28
(5)AR5:
[sw5-GigabitEthernet0/0/0]ip address 192.168.1.66
[sw5-GigabitEthernet0/0/1]ip address 192.168.1.82
[sw5]interface LoopBack 0
[sw5-LoopBack0]ip address 5.5.5.1 24
(1)AR1:
静态路由:
[sw1]ip route-static 192.168.1.16 28 192.168.1.2
[sw1]ip route-static 192.168.1.48 28 192.168.1.34
[sw1]ip route-static 192.168.1.64 28 192.168.1.2
[sw1]ip route-static 192.168.1.64 28 192.168.1.34
[sw1]ip route-static 192.168.1.128 27 192.168.1.2
[sw1]ip route-static 192.168.1.160 27 192.168.1.34
[sw1]ip route-static 192.168.1.192 27 192.168.1.2
[sw1]ip route-static 192.168.1.192 27 192.168.1.34
[sw1]ip route-static 192.168.1.80 28 192.168.1.2 preference 61
[sw1]ip route-static 192.168.1.80 28 192.168.1.34 preference 61
缺省路由:
[sw1]ip route-static 0.0.0.0 0 192.168.1.2
[sw1]ip route-static 0.0.0.0 0 192.168.1.34
空接口:
[sw1]ip route-static 192.168.1.224 27 NULL 0
(2)AR2:
静态路由:
[sw2]ip route-static 192.168.1.32 28 192.168.1.1
[sw2]ip route-static 192.168.1.48 28 192.168.1.18
[sw2]ip route-static 192.168.1.64 28 192.168.1.18
[sw2]ip route-static 192.168.1.80 28 192.168.1.18 preference 61
[sw2]ip route-static 192.168.1.224 27 192.168.1.1
[sw2]ip route-static 192.168.1.192 27 192.168.1.18
[sw2]ip route-static 192.168.1.160 27 192.168.1.1
[sw2]ip route-static 192.168.1.160 27 192.168.1.18
缺省路由:
[sw2]ip route-static 0.0.0.0 0 192.168.1.1
[sw2]ip route-static 0.0.0.0 0 192.168.1.18
空接口:
[sw2]ip route-static 192.168.1.128 27 NULL 0