你好,1. 创建VLAN:
vlan vlan-id [name vlan-name]
2. 显示VLAN列表:
show vlan brief
3. 配置端口所属VLAN:
interface interface-id
switchport mode access
switchport access vlan vlan-id
4. 配置端口为Trunk口:
interface interface-id
switchport mode trunk
5. 配置Trunk口允许的VLAN:
interface interface-id
switchport trunk allowed vlan vlan-list
6. 配置VLAN间路由:
interface interface-id
no switchport
ip address ip-address subnet-mask
7. 配置VLAN间交换:
interface interface-id
switchport mode trunk
switchport trunk allowed vlan vlan-list
8. 删除VLAN:
no vlan vlan-id
9. 删除端口所属VLAN:
interface interface-id
switchport mode access
no switchport access vlan
10. 删除Trunk口允许的VLAN:
interface interface-id
switchport trunk allowed vlan remove vlan-list
11. 删除VLAN间路由:
interface interface-id
no ip address
12. 删除VLAN间交换:
interface interface-id
switchport mode access
switchport access vlan default