diff --git a/A. 第一阶段/拓扑练习/0822_VLAN聚合.md b/A. 第一阶段/拓扑练习/0822_VLAN聚合.md new file mode 100644 index 0000000..ad10217 --- /dev/null +++ b/A. 第一阶段/拓扑练习/0822_VLAN聚合.md @@ -0,0 +1,114 @@ +# VLAN聚合 + +![image-20240822175016583](https://picgo-noriu.oss-cn-beijing.aliyuncs.com/Images/image-20240822175016583.png) + +### 一、配置PC的IP、子网掩码、网关 + +### 二、配置二层交换机 + +- **SW2** + + ``` + u t m + sys + [Huawei]sys SW2 + [SW2]vlan batch 10 20 30 + [SW2]port-group 1 + [SW2-port-group-1]group-member g0/0/2 g0/0/3 + [SW2-port-group-1]port link-type access + [SW2-port-group-1]port def v 10 + [SW2-port-group-1]q + [SW2]int g0/0/1 + [SW2-GigabitEthernet0/0/1]port link-type trunk + [SW2-GigabitEthernet0/0/1]p t a v all + [SW2-GigabitEthernet0/0/1]q + [SW2]q + save + ``` + +- **SW3** + + ``` + u t m + sys + [Huawei]sys SW3 + [SW3]v b 10 20 30 + [SW3]port-group 1 + [SW3-port-group-1]group-member g0/0/2 g0/0/3 + [SW3-port-group-1]port link-type access + [SW3-port-group-1]port def v 20 + [SW3-port-group-1]q + [SW3]int g0/0/1 + [SW3-GigabitEthernet0/0/1]port link-type trunk + [SW3-GigabitEthernet0/0/1]p t a v all + [SW3-GigabitEthernet0/0/1]q + [SW3]q + save + ``` + +- **SW4** + + ``` + u t m + sys + [Huawei]sys SW4 + [SW4]v b 10 20 30 + [SW4]port-group 1 + [SW4-port-group-1]group-member g0/0/2 g0/0/3 + [SW4-port-group-1]port link-type access + [SW4-port-group-1]port def v 30 + [SW4-port-group-1]q + [SW4]int g0/0/1 + [SW4-GigabitEthernet0/0/1]port l + [SW4-GigabitEthernet0/0/1]port link-t t + [SW4-GigabitEthernet0/0/1]p t a v all + [SW4-GigabitEthernet0/0/1]q + [SW4]q + save + ``` + +### 三、配置三层交换机 + +- **SW1** + + ``` + u t m + sys + [Huawei]sy SW1 + [SW1]v b 10 20 30 100 + [SW1]vlan 100 + [SW1-vlan100]aggregate-vlan + [SW1-vlan100]access-vlan 10 20 30 + [SW1-vlan100]q + [SW1]int vlanif 100 + [SW1-Vlanif100]ip a 192.168.100.254 24 + [SW1-Vlanif100]arp-proxy inter-sub-vlan-proxy enable + [SW1-Vlanif100]q + [SW1]port-group group-member g0/0/1 to g0/0/3 + [SW1-port-group]port link-type trunk + [SW1-port-group]port t a v 10 20 30 + ``` + +### 四、测试 + +- PING + + ``` + PC6>ping 192.168.100.1 + + Ping 192.168.100.1: 32 data bytes, Press Ctrl_C to break + From 192.168.100.6: Destination host unreachable + From 192.168.100.1: bytes=32 seq=1 ttl=127 time=78 ms + From 192.168.100.1: bytes=32 seq=2 ttl=127 time=78 ms + From 192.168.100.1: bytes=32 seq=3 ttl=127 time=94 ms + From 192.168.100.1: bytes=32 seq=4 ttl=127 time=78 ms + From 192.168.100.1: bytes=32 seq=5 ttl=127 time=78 ms + + --- 192.168.100.1 ping statistics --- + 5 packet(s) transmitted + 5 packet(s) received + 0.00% packet loss + round-trip min/avg/max = 78/81/94 ms + ``` + + \ No newline at end of file diff --git a/A. 第一阶段/拓扑练习/0822_虚拟VLAN+路由.md b/A. 第一阶段/拓扑练习/0822_虚拟VLAN+路由.md new file mode 100644 index 0000000..518d223 --- /dev/null +++ b/A. 第一阶段/拓扑练习/0822_虚拟VLAN+路由.md @@ -0,0 +1,45 @@ +# 虚拟VLAN + 路由 + +![image-20240822180931264](https://picgo-noriu.oss-cn-beijing.aliyuncs.com/Images/image-20240822180931264.png) + +### 一、配置PC的IP、子网掩码、网关 + +### 二、配置左侧二层交换机 + +- **SW2** + + ``` + + ``` + +- **SW3** + + ``` + + ``` + +### 三、配置右侧路由 + +- **AR1** + + ``` + + ``` + +### 四、配置左侧三层交换机 + +- **SW1** + + ``` + + ``` + +### 五、测试 + +- **PING** + + ``` + + ``` + + \ No newline at end of file