三层交换机下的不同VLAN之间的通信
实验设备环境:华为设备、ENSP
实验拓扑:
LSW详细配置
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn LSW
[LSW]undo info en
Info: Information center is disabled.
[LSW]vlan 10
[LSW-vlan10]int g0/0/1
[LSW-GigabitEthernet0/0/1]port link-type access
[LSW-GigabitEthernet0/0/1]port default vlan 10
[LSW-GigabitEthernet0/0/1]q
[LSW]int vlanif 10
[LSW-Vlanif10]ip add 10.0.10.254 24
[LSW-Vlanif10]q
[LSW]vlan 20
[LSW-vlan20]int g0/0/2
[LSW-GigabitEthernet0/0/2]port link-type access
[LSW-GigabitEthernet0/0/2]port default vlan 20
[LSW-GigabitEthernet0/0/2]q
[LSW]int vlanif 20
[LSW-Vlanif20]ip add 10.0.20.254 24
[LSW-Vlanif20]q
[LSW]
PC1与PC2实现网络互通。