A network administrator needs to manually configure a switch port as an IEEE 802.1Q trunk link and limit the traffic traversing the link to specific VLANs. What is the correct sequence of CLI configuration commands to perform this setup on a Cisco Catalyst switch interface from first to last?
- 1Enter interface configuration sub-mode using the command: interface GigabitEthernet0/1
- 2Specify the trunking encapsulation type using the command: switchport trunk encapsulation dot1q
- 3Enable permanent trunking mode on the interface using the command: switchport mode trunk
- 4Restrict the permitted VLANs across the trunk using the command: switchport trunk allowed vlan 10,20
Answer
The correct order of configuration commands is: 1) Enter interface configuration mode (interface GigabitEthernet0/1), 2) Set encapsulation to dot1q (switchport trunk encapsulation dot1q), 3) Set mode to trunk (switchport mode trunk), and 4) Specify allowed VLANs (switchport trunk allowed vlan 10,20).
The proper administrative sequence requires entering the target interface configuration mode first, setting the 802.1Q encapsulation protocol second, forcing the port into permanent trunking mode third, and finally defining the list of allowed VLANs to prune unwanted traffic.
Step-by-Step Solution
Key Concept
IEEE 802.1Q Trunk Interface CLI Configuration Workflow