直接在接口下打switchport即可 Switch(config)# inter g0/1 Switch(config-if)#switchport Switch(config-if)#switchport mode ? access Set trunking mode to ACCESS unconditionally dynamic Set trunking mode to dynamically negotiate access or trunk mode trunk Set trunking mode to TRUNK unconditionally