If you do not configure this parameter, the trunk port uses the default VLAN as the native VLAN ID.
To configure native VLAN for a 802.1Q trunk port, perform this task:
|
|
|
Step 1
|
switch# configure terminal
|
Enters configuration mode.
|
Step 2
|
switch(config)# interface { type slot / port | port-channel number }
|
Specifies an interface to configure, and enters interface configuration mode.
|
Step 3
|
switch(config-if)# switchport trunk native vlan vlan-id
|
Sets the native VLAN for the 802.1Q trunk. Valid values are from 1 to 4094, except those VLANs reserved for internal use. The default value is VLAN1.
|
This example shows how to set the native VLAN for Ethernet 3/1 Ethernet trunk port to VLAN 5:
switch# configure terminal
switch(config)# interface ethernet 3/1
switch(config-if)# switchport trunk native vlan 5