When you configure switchport access vlan 20 on an interface:
- This will make the interface become a layer 2 switchport or non-routeable port.
- There is no 802.1q/ISL tagging involvement in this port as the traffic will be received and sent as untagged.
- Because there is no tagging involved, the port has no clue what VLAN this frame should be. Therefore, any packets passing this port is assumed to belong to the VLAN assigned to this port. In this case vlan 20.
- If you add the configuration with
switchport mode accessthis will make the interface turned to nontrunking permanently and also negotiates or telling the other end of the link to be a nontrunk link. This interface will permanently become nontrunk interface regardless the other end is trunk or nontrunk link. With this in mind, if one port is configured withswitchport mode accessand other end port happens to be configured withswitchport mode dynamic autoorswitchport mode dynamic desirable
Continue reading