Network Access

An administrator wants trunk port GigabitEthernet0/1 to use VLAN 99 as its native VLAN. Which interface command does this?

Show the answer

Correct answerA. switchport trunk native vlan 99

AWhy this is right: this is the trunk-specific command that sets the native VLAN.

BWhy not this: This restricts the trunk to VLAN 99 only and leaves the native VLAN unchanged.

CWhy not this: This assigns an access port to VLAN 99 and does not affect the trunk's native VLAN.

DWhy not this: This is not valid IOS syntax; the trunk keyword is required.

The switchport trunk native vlan command sets the VLAN whose frames cross the trunk untagged. The allowed vlan command only limits which VLANs may use the trunk and does not change the untagged VLAN.