vlan trunk native
Syntax
vlan trunk native <VLAN-ID>
no vlan trunk native [<VLAN-ID>]
Description
Assigns a native VLAN ID to a LAG interface.
Theno
form of this command removes a native VLAN from a LAG interface and assigns VLAN ID 1 as its native VLAN.
Command context
config-lag-if
Command context
config-if
Parameters
<VLAN-ID>
Specifies the number of the VLAN ID to assign. The VLAN ID must exist.
Maximum number of VLANs supported: 512 (6100); 2048 (6200); 4096 (6300, 6400, 8320, 8325, 8360, 8400).
VLAN ID range: 2 to 4094.
Authority
Administrators or local user group members with execution rights for this command.
Usage
By default, VLAN ID 1 is assigned as the LAG VLAN ID for all LAG interfaces. VLANs can only be assigned to a nonrouted (layer 2) interface or LAG interface.
Only one VLAN ID can be assigned as the native VLAN. For the interface to forward the native VLAN traffic, the interface has to be allowed explicitly by entering
vlan trunk allowed <ID>
where the ID is the native VLAN ID. This setting is also applicable to the physical interface.
Examples
Configuring a Layer 2 dynamic aggregation group with native VLAN ID 1 assigned to LAG 1:
switch(config)# interface lag 1 switch(config-lag-if)# no shutdown switch(config-lag-if)# lacp mode active switch(config-lag-if)# vlan trunk native 1 switch(config-lag-if)# vlan trunk allowed 1
switch(config)# interface lag 1 switch(config-lag-if)# no shutdown switch(config-lag-if)# no routing switch(config-lag-if)# lacp mode active switch(config-lag-if)# vlan trunk native 1 switch(config-lag-if)# vlan trunk allowed 1
Configuring a Layer 2 dynamic aggregation group with native VLAN ID 20 assigned to LAG 1:
switch(config)# interface lag 1 switch(config-lag-if)# no shutdown switch(config-lag-if)# lacp mode active switch(config-lag-if)# vlan trunk native 20 switch(config-lag-if)# vlan trunk allowed 20
switch(config)# interface lag 1 switch(config-lag-if)# no shutdown switch(config-lag-if)# no routing switch(config-lag-if)# lacp mode active switch(config-lag-if)# vlan trunk native 20 switch(config-lag-if)# vlan trunk allowed 20
Removing a native VLAN from LAG 1:
switch(config)# interface lag 1 switch(config-lag-if)# no vlan trunk native