Configure an Egress Policy

About this task

Follow this procedure to prepare packets for actions to be performed when leaving the 9920.

Procedure

  1. Enter the Config mode.
    device# configure terminal 
    device(config)# 
  2. Configure an ACL of type IPv4, IPv6, or MAC and any actions.
    device(config)# ip access-list acl5-ipv4
    device(config-ip-acl)# seq 15 permit ip any any count
    The specified ACL and configured actions are bound to a listener policy.
  3. Create the listener policy, including any action subcommands for the policy.
    Note

    Note

    A listener policy supports only one IPv4 ACL, IPv6 ACL, or MAC ACL.
    device(config)# listener-policy lp-2 220
    device(config-listener-policy)# match ip access-list acl5-ipv4
    device(config-listener-policy)# strip vn-tag
    device(config-listener-policy)# description “ABCD”
  4. Configure an egress policy, and bind the listener policy, specifying any additional egress actions.
    Note

    Note

    An egress can be associated with only one listener policy.
    device(config-egress)# egress e2
    device(config-egress)# set listener-policy lp-2
    device(config-egress)# description DirectTool
    device(config-egress)# set encap encap-1 
    device(config-egress)# precedence 1 interface ethernet 2/14
  5. Configure the interface port and channel for egress traffic.
    Note

    Note

    In the following example, traffic is leaving on slot/port number 2/14.
    interface ethernet 2/14
    speed 100000
    description To_Tool
    no shutdown