encap
	 
   
  Configures encapsulation parameters for
		the outgoing packets.
 Syntax
			 
	 
			
			
 
	 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:
			
				- If the same command is executed
                                        more than once, the second and subsequent executions 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.
- If the [no] form of the command is executed
					with the configuration, all sub-mode configurations are removed along with the
					encap object.
- The following reserved keywords
                                        cannot be used as name identifiers: all, ingress-group, egress, egress-group, match, list, access-list, route-map, and listener-policy.
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