interface g0/2 port link-type trunk port trunk allow vlan all
vlan 10 q dis port vlan brief
interface g0/2 port link-type access port default vlan 10 # 端口加入vlan10