vlan-id

Configures VLAN ID for encapsulation of outgoing packets.

Syntax

vlan-id vlan-id-value
no vlan-id vlan-id-value

Parameters

vlan-id
Specifies the VLAN ID to be configured.

Modes

Encap configuration mode

Usage Guidelines

Validations for the command are as follows:

Examples

The following example configures the vlan-id.

device(config-encap-1)# vlan-id 1234 
device(config-encap-1)#  

Show running:  
device# show running-configuration 

encap encap-1 
vlan-id 1234

The following example shows errors thrown for ID out-of-range and pre-existing vlan-id.

device(config-encap)# vlan-id 5000 
% Value '5000' not in range <1-4095>. 

device(config-encap)# vlan-id 4095
Error: Vlan Tag is already configured