(1)拓扑描述
部门1网络为子网1:192.168.1.0/24,对应VLAN10。
部门2网络为子网2:192.168.2.0/24,对应VLAN20。
部门1、部门2的计算机分别通过交换机SW2、SW3接入,然后通过总交换
机SW1互连。
2. 配置各个设备
SW1
<Huawei>system-view [Huawei]sysname SW1 [SW1]vlan batch 10 20 [SW1]interface GigabitEthernet 0/0/1 [SW1-GigabitEthernet0/0/1]port link-type access [SW1-GigabitEthernet0/0/1]port default vlan 10 [SW1-GigabitEthernet0/0/1]quit [SW1]interface GigabitEthernet 0/0/2 [SW1-GigabitEthernet0/0/2]port link-type access [SW1-GigabitEthernet0/0/2]port default vlan 20 [SW1-GigabitEthernet0/0/2]quit [SW1]interface GigabitEthernet 0/0/3 [SW1-GigabitEthernet0/0/3]port link-type trunk [SW1-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20 [SW1-GigabitEthernet0/0/3]quit [SW1]interface GigabitEthernet 0/0/4 [SW1-GigabitEthernet0/0/4]port link-type trunk [SW1-GigabitEthernet0/0/4]port trunk allow-pass vlan 10 20 [SW1-GigabitEthernet0/0/4]quit
SW2
<Huawei>system-view [Huawei]sysname SW2 [SW2]vlan batch 10 20 [SW2]interface GigabitEthernet 0/0/1 [SW2-GigabitEthernet1/0/1]port link-type access [SW2-GigabitEthernet0/0/1]port default vlan 10 [SW2-GigabitEthernet0/0/1]quit [SW2]interface GigabitEthernet0/0/2 [SW2-GigabitEthernet0/0/2]port link-type access [SW2-GigabitEthernet0/0/2]port default vlan 20 [SW2-GigabitEthernet0/0/2]quit [SW2]interface GigabitEthernet0/0/3 [SW2-GigabitEthernet0/0/3]port link-type trunk [SW2-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20 [SW2-GigabitEthernet0/0/3]quit
SW3
<Huawei>system-view [Huawei]sysname SW3 [SW3]vlan batch 10 20 [SW3]interface GigabitEthernet0/0/1 [SW3-GigabitEthernet0/0/1]port link-type access [SW3-GigabitEthernet0/0/1]port default vlan 10 [SW3-GigabitEthernet0/0/1]quit [SW3]interface GigabitEthernet0/0/2 [SW3-GigabitEthernet0/0/2]port link-type access [SW3-GigabitEthernet0/0/2]port default vlan 20 [SW3-GigabitEthernet0/0/2]quit [SW3]interface GigabitEthernet0/0/3 [SW3-GigabitEthernet0/0/3]port link-type trunk [SW3-GigabitEthernet0/0/3]port trunk allow-pass vlan 10 20 [SW3-GigabitEthernet0/0/3]quit
PC配置地址就不说了
我的微信
微信号已复制
我的微信
这是我的微信扫一扫