只使用Vlan的trunk接口和access接口实现两个二层交换机上属于不同Vlan的PC互通
Vlan10的PC1可以访问对端Vlan20的PC6
Vlan10和Vlan10、Vlan20 和Vlan20间均不能通信
Vlan100和Vlan100的相互通信不受任何影响
如图
LSW1配置
sys
sysname lsw1
vlan batch 10 100 20
int g0/0/1
port link-type access
port default vlan 10
int g0/0/2
port link-type access
port default vlan 100
int g0/0/3
port link-type access
port default vlan 20
int g0/0/4
port link-type trunk
port trunk pvid vlan 10
port trunk allow-pass vlan 10 100 20
quit
LSW2 配置
sys
sysname lsw2
vlan batch 10 100 20
int g0/0/1
port link-type access
port default vlan 10
int g0/0/2
port link-type access
port defaul