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. Valid range is 1 through 4096.

Modes

Encap config 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)#  
 
device# show running-configuration 
encap encap-1 
vlan-id 1234