Hi. If a port on a switch is not configured with a switchport mode access command and only with a switchport access vlan 10 for example, what exactly are the repercussions of this particular config on the port?
Thanks in advance.
The Administrative mode will be set to 'dynamic desirable or dynamic auto' depending on the switch.
You can verify this status with the 'show interface fx/x switchport' command.
A dynamic desirable mode switchport will automatically trunk with another switch while a dynamic auto mode switchport will only trunk with another switch if this remote switch is set to dynamic desirable.
Setting the access-vlan without entering the 'mode access' will associate that port to such vlan when the switchport negotiates an access mode. If you connect to another switch, a trunk will be made, based on the requirements explained above, and the trunk native vlan will be used which by default is Vlan 1.
So in short, avoiding the 'mode access' can potentially create connectivity issues as you are leaving the switch to negotiate some important parameters.