vlan-id
Configures VLAN ID for encapsulation of
outgoing packets.
Syntax
Parameters
- vlan-id
- Specifies the VLAN ID to be
configured. Valid range is 1 through 4096.
Usage Guidelines
Validations for the command are as follows:
- Valid VLAN ID must be provided.
- Single VLAN ID per encapsulation is allowed. Already configured VLAN ID must be
removed before configuring a new VLAN ID.
- If the same command is run more
than once, the second and subsequent instances are ignored
and no error is reported.
- If the no form of the command is run
without the configuration, the command is ignored and no
error is reported.
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