Which IOS commands are entered in interface configuration mode to configure a switch port to unconditionally be an 802.1Q trunk port and not generate DTP packets? (Choose two.)
- trunk dot1q
- switchport trunk dot1q
- switchport nonegotiate
- switchport trunk allowed vlan
- switchport trunk encapsulation dot1q
Entering the IOS commands switchport nonegotiate and switchport trunk encapsulation dot1q in interface configuration mode will only allow a switch port to be an 802.1Q trunk port. This disables the generation of dynamic trunking protocol (DTP) negotiation packets. Since DTP also negotiates encapsulation type, the encapsulation type must be identified (for example, dot1q).
Use the following steps to configure a port as an 802.1Q trunk:
1. Enter the interface configuration: switch(config)# interface interface-id 2. Configure the port to using 802.1Q encapsulation: switch(config-if)# switchport trunk encapsulation dot1q
3. Configure the port as a trunk port: switch(config-if)# switchport nonegotiate
Note: Trunking modes can be configured as trunk, dynamic auto, dynamic desirable, nonegotiate, and access.
The switchport allowed vlan command is also valid for configuring dot1q trunks, but is not required. By default, all VLANs are allowed on the trunk.
Layer 2 Technologies
Configure and verify trunking