Decapsulates the current tunnel of the received packet.
Route-map config mode
Listener-policy config mode
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. The payload of the tunneled packet is forwarded to the egress.
The no decap command removes the decapsulation action from the route map.
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 function from a route-map for rmap1 10.
device# configure terminal device(config)# route-map rmap1 10 device(config-route-map)# no decap