Configures encapsulation parameters for the outgoing packets.
Config mode
Encap config mode
Validations for the command are as follows:
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 |
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