How to configure trunk on Cisco Catalyst Switch

Hello Giovanni

Actually, this interface is configured as a trunk. It is the switchport mode command that tells you the mode of the interface. You can have either switchport mode trunk, or switchport mode access. You will never have both trunk and access configured on the same interface, because when you issue this command, it overwrites the previous configuration.

When you have switchport mode trunk, as you have in this case, the switchport access vlan 10 command is ignored.

But because you have the switchport trunk native vlan 10 command, any untagged frames arriving at this port will go to VLAN 10. So the interface behaves as if it is an access port on VLAN 10 simply because the native VLAN is set up that way.

So to summarize:

  • this interface is indeed a trunk and not an access port
  • the switchport access VLAN 10 command is ignored
  • the native VLAN of 10 makes the interface act as if it is an access port on VLAN 10, although it is not.

I hope this has been helpful!

Laz

2 Likes