vlan中添加删除端口
switch#conf t
switch(config)#interface fastethernet0/1 进入要分配的端口
switch(config-if)#switchport mode access 定义二层端口
switch(config-if)#switchport access vlan号码 把端口发给一个vlan
switch(config-if)#switchport mode trunk 设置为干线
switch(config-if)#switchport trunk encapsulation dotlq 设置vlan中继协议
switch(config-if)#no switchport mode 或 (switchport mode access) 禁用干线
switch(config-if)#switchport trunk allowed vlan add 1,2 从trunk中添加vlans
switch(config-if)#switchport trunk allowed vlan remove1,2 从trunk中删除vlan
switch(config-if)#switchport trunk pruning vlan remove1,2