encap

Configures encapsulation parameters for the outgoing packets.

Syntax

encap name
no encap name

Parameters

encap name
Specifies the name of the encap object. The name is restricted to 32 characters. Characters allowed are alpha-numeric, underscore, and dot. Underscore is not allowed as the first character.
The encap name "all" is reserved and cannot be used.

Modes

Config mode

Encap config mode

Usage Guidelines

Validations for the command are as follows:

Table 1. Error messages
Message Reason
Error: encap name identifier must start with an alphabetic character or an underscore. Encap name begins with non-alphabetic character or does not begin with an underscore.
Error: encap name identifier cannot exceed 64 characters Encap name is longer than 64 characters.
Error: encap name identifier must be an arbitrary sequence of alphabets, numerals, underscores, hyphens or dots. Encap name contains invalid characters.
Error: encap name identifier must not be reserved keyword "encap". Encap name includes the reserved word encap

Examples

The following example configures encapsulation parameters for encap-1.

device(config)# encap encap-1
device(config-encap-1)#

Show running:
device# show running-configuration

encap encap-1