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. 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.

The no 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. Range: 1 to 4094.

Authority

Administrators

Examples

Configuring a Layer 2 static 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)# no routing
switch(config-lag-if)# vlan trunk native 20

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)# no routing
switch(config-lag-if)# lacp mode active
switch(config-lag-if)# vlan trunk native 20

Removing native VLAN 20 from LAG 1:

switch(config)# interface lag 1
switch(config-lag-if)# no vlan trunk native