forward-action

Determines the actions performed on a packet for the current route map or listener-policy.

Syntax

forward-action { permit | deny }

Command Default

Default is permit.

Parameters

permit
Modifies outgoing packets according to specified matching actions. Otherwise, it tries to match the condition in the next instance of the same listener-policy. If a match is not found, the packet is forwarded without applying any actions.
deny
Skips the matching listener policy instance and drops traffic.

Modes

Route-map config mode

Listener-policy config mode

Examples

The following example allows packet forwarding based on the ACL for the current route map.

device# configure terminal
device# config-route-map
device(config-route-map)# forward-action permit

The following example allows packet forwarding based on the ACL for the current listener policy.

device# configure terminal   
device(config)# listener-policy lp1 <sId>  
device(config-listener-policy)#  forward-action permit

device# show listener-policy rt 45 
  forward-action permit 

The following example blocks packet forwarding and drops packets for the current route map.

device# config-route-map
device(config-route-map)# forward-action deny