VLAN:(以VLAN id 100为例)
vlan 100 #创建VLAN 100
undo vlan 100 #删除VLAN 100
port gigabitethernet1/0/1 #VLAN接口模式下,将端口加入vlan
undo port gigabitethernet1/0/1 #VLAN接口模式下,将端口从VLAN 中删除
port access vlan 100 #以太网端口模式下,将端口加入vlan 100
undo port access vlan 100 #以太网端口模式下,将端口从VLAN 100 中删除
dis vlan 100 #显示VLAN 100的信息
port link-type trunk #端口属性为trunk
port trunk permit vlan 100
port link-type trunk #端口模式为TRUNK
port trunk permit vlan all #端口容许所有VLAN 。另一种写法 port trunk permit vlan 100 200 to 210
port trunk pvid vlan 10 #端口VLAN标签为 10