May 21, 2025
SWITCHPORT MODE TRUNK: Configures interface as a trunk.SWITCHPORT TRUNK ENCAPSULATION dot1q: Defines encapsulation type (necessary on some switches).SHOW INTERFACES TRUNK: Checks trunk configurations.SWITCHPORT TRUNK ALLOWED VLAN: Limits VLANs on trunk for security and performance.SWITCHPORT TRUNK NATIVE VLAN: Changes native VLAN (frames in native VLAN are untagged).ENCAPSULATION DOT1Q <VLAN>: Router treats frames tagged with specified VLAN as arriving on that subinterface.switchport trunk native vlan 10.switchport trunk allowed vlan all.switchport trunk encapsulation dot1q.VID.