//创建 VLAN

[switch] vlan { vlan-id1 [ to vlan-id2 ] }


//进入 VLAN 视图

[switch] vlan vlan-id


//指定当前 VLAN 的名称

[switch-vlan] name text


//创建 VLAN 接口并进入 VLAN接口视图

[switch] interface vlan-interface vlan-interface-id


//配置 VLAN 接口的 IP 地址

[switch-vlan-interface] ip address ip-address { mask | mask-length } [ sub ]


//打开 VLAN 接口

[switch-vlan-interface] undo shutdown


//向当前 VLAN 中添加一个或一组 Access 端口

[switch-vlan] port interface-list


//配置端口的链路类型为Trunk类型

[switch-interFace] port link-type trunk


//允许指定的 VLAN 通过当前 Trunk端口

[switch-interFace] port trunk permit vlan { vlan-id-list | all }