实验拓扑:
实验配置:
vlan batch 10 20
interface Ethernet0/0/1
port link-type access
port default vlan 10
interface Ethernet0/0/2
port link-type access
vlan 20
port Ethernet0/0/2
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass vlan 10 20
实验结果验证: