华为三层交换机实现VLAN间通信
三层交换机:
<Huawei>sys
[Huawei]sys SW-3
[SW-3]vlan batch 10 20
[SW-3]int vlan 10
[SW-3-Vlanif10]ip address 192.168.10.254 24
[SW-3-Vlanif10]int vlan 20
[SW-3-Vlanif20]ip add 192.168.20.254 24
[SW-3-Vlanif20]int g0/0/1
[SW-3-GigabitEthernet0/0/1]port link-type trunk
[SW-3-GigabitEthernet0/0/1]port trunk allow-pass vlan all
二层交换机:
<Huawei>sys
[Huawei]vlan batch 10 20
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2]port default vlan 10
[Huawei-GigabitEthernet0/0/2]int g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type access
[Huawei-GigabitEthernet0/0/3]port default vlan 20
Ping测试