sys
sysn SW1
vlan batch 10 20
int g0/0/2
port link-type access
port default vlan 10
int g0/0/3
port link-type access
port default vlan 20
int g0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
sys
sysn R1
int g0/0/0.10
dot1q termination vid 10
ip add 10.0.0.254 8
arp broadcast enable
int g0/0/0.20
dot1q termination vid 20
ip add 20.0.0.254 8
arp broadcast enable
通常使用三層交換機解決VLAN間通訊