交换机VLAN命令

VLAN基本命令

1
2
3
4
5
6
7
8
9
10
vlan 10  # 创建单个VALN
vlan batch 10 to 20 # 创建多个vlan
port link-type access/trunk/hybird # 配置接口类型
port default vlan 10 # 配置access关联vlan/pvid
port trunk allow-pass vlan 10 # 配置trunk允许vlan 默认只允许vlan1
port trunk pvid vlan 10 # 配置trunk的pvid
port hybird tagged/untagged vlan 10 # 配置hybird标记的vlan
port hybird pvid vlan 10 # 配置hybird 的pvid
display vlan # 验证vlan
display port vlan # 验证vlan端口