#
interface GigabitEthernet2/0/42 原先的爲trunk,
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet2/0/42 現在改爲access
undo port trunk allow-pass vlan all
port trunk allow-pass vlan 1
port link-type access
port default vlan 10