1、基于192.168.0.0 24,可以先划分为三个大段(借两位):
192.168.0.0 26
192.168.0.64 26
192.168.0.128 26
192.168.0.192 26
2、骨干链路192.168.0.0 26分为7个网段(借三位):
192.168.0.0 29
192.168.0.32 29
192.168.0.64 29
192.168.0.96 29
192.168.0.128 29
192.168.0.160 29
192.168.0.192 29
192.168.0.224 29
3、R2的三个环路为一个大的网段192.168.0.64 26(借两位):
192.168.0.64 28
192.168.0.80 28
192.168.0.96 28
192.168.0.112 28
4、Pc1~pc4为一个网段192.168.0.128 26:
192.168.0.129 26
192.168.0.130 26
192.168.0.131 26
192.168.0.132 26
192.168.0.133 26
5、更改设备名称
[Huawei]sysname R1/R2/R3/R4/R5
[Huawei]sysname SW1/SW2
6、配置底层IP地址
R1:
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.0.2 29
[r1]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip address 192.168.0.33 29
R2
[r2]interface GigabitEthernet 0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.0.1 29
[r2]interface GigabitEthernet 0/0/1
[r2-GigabitEthernet0/0/1]ip address 192.168.0.65 29
[r2]interface LoopBack 1
[r2-LoopBack1]ip address 192.168.0.64 28
[r2]interface LoopBack 2
[r2-LoopBack1]ip address 192.168.0.80 28
[r2]interface LoopBack 3
[r2-LoopBack1]ip address 192.168.0.96 28
R3
[r3]interface GigabitEthernet 0/0/0
[r3-GigabitEthernet0/0/0]ip address 192.168.0.34 29
[r3]interface GigabitEthernet 0/0/1
[r3-GigabitEthernet0/0/1]ip address 192.168.0.98 29
[r3]interface GigabitEthernet 0/0/2
[r3-GigabitEthernet0/0/1]ip address 192.168.0.129 29
[r3]interface GigabitEthernet 4/0/
[r3-GigabitEthernet4/0/1]ip address 192.168.0.161 29
R4
[r4]in g 0/0/0
[r4-GigabitEthernet0/0/0]ip address 192.168.0.97 29
[r4]in g 0/0/1
[r4-GigabitEthernet0/0/1]ip address 192.168.0.66 29
[r4]in g 0/0/2
[r4-GigabitEthernet0/0/2]ip address 192.168.0.225 29
R5
[r5]in g 0/0/0
[r5-GigabitEthernet0/0/0]ip address 192.168.0.130 29
[r5]in g 0/0/1
[r5-GigabitEthernet0/0/1]ip address 192.168.0.162 29
[r5]in g 0/0/2
[r5-GigabitEthernet0/0/2]ip address 192.168.0.193 29
isp
[r5]in g 0/0/0
[r5-GigabitEthernet0/0/0]ip address 192.168.0.194 29
7、配置vlan
[LW1]vlan 2
[LW1-vlan 2]q
[LW1]vlan 3
[LW1-vlan 3]q
[LW1]in g 0/0/2
[LW1-GigabitEthernet0/0/2]ip address 192.168.0.129 26
[LW1]in g 0/0/3
[LW1-GigabitEthernet0/0/3]ip address 192.168.0.130 26
[LW1-GigabitEthernet0/0/4]ip address 192.168.0.131 26
[LW2]vlan 2
[LW2-vlan 2]q
[LW2]vlan 3
[LW2-vlan 3]q
[LW2]in g 0/0/2
[LW2-GigabitEthernet0/0/2]ip address 192.168.0.133 26
[LW2]in g 0/0/3
[LW2-GigabitEthernet0/0/3]ip address 192.168.0.134 26
[LW2-GigabitEthernet0/0/1]ip address 192.168.0.132 26
8、实现全网可达–配置路由
R1:
[R1]IP route-static 192.168.0.96 29 192.168.0.1
[R1]IP route-static 192.168.0.64 29 192.168.0.1
[R1]IP route-static 192.168.0.192 29 192.168.0.1
[R1]IP route-static 192.168.0.224 26 192.168.0.1
[R1]IP route-static 192.168.0.128 29 192.168.0.34
[R1]IP route-static 192.168.0.160 29 192.168.0.34
[R1]IP route-static 192.168.0.192 29 192.168.0.34
[R1]IP route-static 100.1.1.0 24 192.168.0.34
R2
[R2]IP route-static 192.168.0.96 29 192.168.0.66
[R2]IP route-static 192.168.0.32 29 192.168.0.66
[R2]IP route-static 192.168.0.192 29 192.168.0.66
[R2]IP route-static 192.168.0.224 26 192.168.0.66
[R2]IP route-static 192.168.0.128 29 192.168.0.66
[R2]IP route-static 192.168.0.160 29 192.168.0.66
[R2]IP route-static 100.1.1.0 24 192.168.0.66
R3
[R3]IP route-static 192.168.0.64 29 192.168.0.97
[R3]IP route-static 192.168.0.0 29 192.168.0.97
[R3]IP route-static 192.168.0.192 29 192.168.0.130
[R3]IP route-static 192.168.0.192 29 192.168.0.162
[R3]IP route-static 100.1.1.0 24 192.168.0.130
[R3]IP route-static 100.1.1.0 24 192.168.0.162
R4
[R4]IP route-static 192.168.0.0 29 192.168.0.65
[R4]IP route-static 192.168.0.32 29 192.168.0.65
[R4]IP route-static 192.168.0.192 29 192.168.0.98
[R4]IP route-static 192.168.0.128 29 192.168.0.98
[R4]IP route-static 192.168.0.160 29 192.168.0.98
[R4]IP route-static 100.1.1.0 24 192.168.0.98
R5
[R5]IP route-static 192.168.0.0 29 192.168.0.129
[R5]IP route-static 192.168.0.32 29 192.168.0.129
[R5]IP route-static 192.168.0.64 29 192.168.0.129
[R5]IP route-static 192.168.0.96 29 192.168.0.129
[R5]IP route-static 192.168.0.224 29 192.168.0.129
[R5]IP route-static 192.168.0.160 29 192.168.0.129
[R5]IP route-static 192.168.0.0 29 192.168.0.161
[R5]IP route-static 192.168.0.32 29 192.168.0.161
[R5]IP route-static 192.168.0.64 29 192.168.0.161
[R5]IP route-static 192.168.0.96 29 192.168.0.161
[R5]IP route-static 192.168.0.224 29 192.168.0.161
[R5]IP route-static 192.168.0.160 29 192.168.0.161
ISP
[ISP]IP route-static 192.168.0.128 29 192.168.0.193
[ISP]IP route-static 192.168.0.160 29 192.168.0.193
[ISP]IP route-static 192.168.0.32 29 192.168.0.193
[ISP]IP route-static 192.168.0.0 29 192.168.0.98
[ISP]IP route-static 192.168.0.64 29 192.168.0.98
[ISP]IP route-static 192.168.0.96 29 192.168.0.98
9、选择宽带链路问题;
浮动路由宽带,设置优先级。
[R3]IP route-static 100.1.1.0 24 192.168.0.130 preference 41
静态路由默认优先级为60,当将链路改为41时,优先级越高,选择这条。
至此,本实验的需求已全部完成。