Configures VLAN ID for encapsulation of outgoing packets.
Encap configuration mode
Validations for the command are as follows:
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