[S9306-GigabitEthernet2/0/42]dis this

#

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