undo port default vlan 125 删除默认
undo port trunk allow-pass vlan 1
undo port link-type access
一、
system-view
interface GigabitEtchernet0/0/16
port link-type trunk
port trunk allow-pass vlan 320
port trunk pvid vlan 320
port link-type trunk
port trunk allow-pass vlan all 允许所有vlan通过
clear configuration interface GigabitEtchernet0/0/16 清空端口配置
system-view
vlan 125
vlan batch 125 to 130
undo vlan 125
undo vlan batch 125 to 130
二、
interface GigabitEtchernet0/0/16
port link-type access
port default vlan 125
Access端口
-- Access端口再接收到数据后会添加Vlan Tag,Vlan ID和端口的PVID相同;
-- Access端口再发送数据时会删除Vlan Tag
port-group 1
group-member GigabitEtchernet0/0/16
group-member GigabitEtchernet0/0/17 to GigabitEtchernet0/0/20
port link-type access
port default vlan 125
display vlan
display vlan 125 显示VLAN配置
三、
interface ethernet0/1
interface gigabitetchernet0/0/16
port link-type hybrid 设置端口的工作模式
port access vlan 125
undoshoutdown 激活端口
port hybrid pvid vlan 125 设置端口的pvid port hybrid pvid 删除pvid
PVID
-- PVID表示端口所属的Vlan
-- 默认情况下,交换机所有端口的PVID是1
在端口中设置Tagged或者untagged 来确定允许哪些数据帧通过
port Hybrid tagged vlan 130
port Hybrid untagged vlan 130
GVRP????