vlan trunk native
Syntax
vlan trunk native <VLAN-ID>
no vlan trunk native [<VLAN-ID>]
Description
Assigns a native VLAN ID to a trunk interface. By default, VLAN ID 1 is assigned as the native VLAN ID for all trunk interfaces. VLANs can only be assigned to a non-routed (layer 2) interface or LAG interface. Only one VLAN ID can be assigned as the native VLAN.
When a native VLAN is defined, the switch automatically executes the
vlan trunk allowed all
command to ensure that the default VLAN is allowed on the trunk. To only allow specific VLANs on the trunk, issue the
vlan trunk allowed
command specifying only specific VLANs.
no
form of this command removes a native VLAN from a trunk interface and assigns VLAN ID 1 as its native VLAN.
Command context
config-if
Parameters
<VLAN-ID>
Specifies a VLAN ID. Range: 1 to 4094.
Authority
Administrators or local user group members with execution rights for this command.
Examples
On the 6400 Switch Series, interface identification differs.
switch(config)# interface 1/1/2 switch(config-if)# vlan trunk native 20
switch(config)# interface 1/1/2 switch(config-if)# no vlan trunk native 20
switch(config)# interface 1/1/2 switch(config-if)# no vlan trunk native
switch(config)# interface 1/1/2 switch(config-if)# vlan trunk native 20 switch(config-if)# vlan trunk allowed 10