decap

Decapsulates the current tunnel of the received packet.

Syntax

decap
no decap

Parameters

decap
Sets decapsulation action for the route map or listener policy.

Modes

Route-map config mode

Listener-policy config mode

Usage Guidelines

Enabled in route-map mode: Decapsulates a particular encapsulation header in the packet and process remaining packet in further processing blocks. The scope of the headers is shifted to inner headers automatically.

Enabled in listener-policy mode:Terminates the incoming tunneled packets and strips the tunneled header. Payload of the tunneled packet is forwarded to the egress.

The no decap command removes decapsulation action from the route map.

Table 1. Error Messages
Error Reason
Error: New scope is enabled on routeMapName, terminate can't enable new-scope and decap are mutually exclusive.

Examples

The following example enables the decap function in route-map configuration mode and then uses the show command to verify the setting.

device# configure terminal
device(config)# route-map rmap1 10
device(config-route-map)# decap 

device# show route-map all 
route-map rmap1 10 
forward-action deny  
decap 

Policy matches: 0 packets, 0 bytes, 0 Packets/secRate, 0 Bits/sec

The following example enables the decap function in listener-policy configuration mode.

device# configure terminal
device(config)# listener-policy lp1 100
device(config-listener-policy)#  decap 

The following example removes the decap funtion from route-map for rmap1 10.

device# configure terminal
device(config)# route-map rmap1 10
device(config-route-map)# no decap