08-21-2024 11:31 AM
Buenas tardes comunidad, alguien podría ayudarme con una consulta.
Que comandos utilizar para cambiar un puerto de un Switch Catalyst 3560 G48 a modo troncal (trunk)
esta es mi configuración actual en el Switch: (puerto 28 como ejemplo)
interface GigabitEthernet0/28
switchport access vlan 2
spanning-tree portfast
spanning-tree guard loop
deseable:
interface GigabitEthernet0/28
switchport trunk encapsulation dot1q
switchport mode trunk
spanning-tree portfast
spanning-tree guard loop
Solved! Go to Solution.
08-21-2024 11:46 AM - edited 08-21-2024 12:03 PM
interface GigabitEthernet0/28
switchport trunk encapsulation dot1q <<- optional
switchport mode trunk
Switchport trunk allow vlan x x x
spanning-tree portfast trunk <<- this need ONLY if you connect SW port to host/server/FW if you connect this SW port to other port then remove this command
spanning-tree guard loop <- this optional
MHM
08-21-2024 11:36 AM
The commands is
enable
configure terminal
interface GigabitEthernet0/28
switchport mode trunk
That´s it.
You dont need the command "switchport trunk encapsulation dot1q" in the switch.
And dont use the command "spanning-tree portfast" in a trunk interface.
08-21-2024 11:44 AM
Hi Flavio, thanks for your reply.
I entered the command you told me, but I got the following error:
Sw_Comedor(config-if)#switchport mode trunk
Error:
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.
08-21-2024 11:50 AM
Do this then
enable
configure terminal
default interface GigabitEthernet0/28
interface GigabitEthernet0/28
switchport mode trunk
08-21-2024 12:55 PM
Thanks Flavio, keep the same error, but the comand defaul it was helpful for us.
08-21-2024 11:53 AM
Error:
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.
This error becuase you dont use
switchport trunk encapsulation dot1q
MHM
08-21-2024 11:46 AM - edited 08-21-2024 12:03 PM
interface GigabitEthernet0/28
switchport trunk encapsulation dot1q <<- optional
switchport mode trunk
Switchport trunk allow vlan x x x
spanning-tree portfast trunk <<- this need ONLY if you connect SW port to host/server/FW if you connect this SW port to other port then remove this command
spanning-tree guard loop <- this optional
MHM
08-22-2024 08:18 AM
Thanks a lot, it works.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide