User Manual

Table Of Contents
If you use the switchport trunk native vlan command to specify a VLAN ID that was associated by this command, it is
removed from the specified VLAN ID.
If you specify and associate a VLAN ID that was set by the switchport trunk native vlan command, switchport trunk
native vlan none is set.
If you specify the switchport trunk allowed vlan add command with a combination of "-" or "," in the vlan-ids, the command
setting will fail if you revert to an older version (Rev.2.00.08 or earlier). As a result, normal communication might become
impossible. (Example setting: switchport trunk allowed vlan add 101,103-105)
[Example]
Set LAN port #1 as the trunk port, and associate it to VLAN #2.
SWP2(config)#interface port1.1
SWP2(config-if)#switchport mode trunk
SWP2(config-if)#switchport trunk allowed vlan add 2
6.2.9 Set native VLAN for trunk port (tagged port)
[Syntax]
switchport trunk native vlan vlan-id
switchport trunk native vlan none
no switchport trunk native vlan
[Keyword]
none : Disables the native VLAN
[Parameter]
vlan-id : <1-4094>
VLAN ID set by the vlan command
[Initial value]
switchport trunk native vlan 1
[Input mode]
interface mode
[Description]
Sets the native VLAN for the applicable interface.
If "none" is specified, the native VLAN is disabled. This means that untagged frames received by the applicable interface are
discarded.
If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
This command can be set only for a LAN/SFP+ port or logical interface for which the switchport mode trunk command is set.
If this command is applied to a logical interface, the settings of every LAN/SFP+ port associated with that interface are
changed.
If the port type is changed to access port, the setting of this command returns to the default setting.
For the setting of this command and the setting of the switchport trunk allowed vlan command, the last-specified command
takes priority.
If you use the switchport trunk allowed vlan command to specify the associated VLAN ID, and then specify this
command, it is removed from the specified VLAN ID.
If the VLAN ID specified by this command is associated using the switchport trunk allowed vlan command, switchport
trunk native vlan none is specified.
[Example]
Set LAN port #1 as the trunk port, and specify VLAN #2 as the native VLAN.
SWP2(config)#interface port1.1
SWP2(config-if)#switchport mode trunk
SWP2(config-if)#switchport trunk native vlan 2
Command Reference | Layer 2 functions | 181