egress

Creates or deletes an egress.

Syntax

egress name
no egress name

Parameters

name
Specifies the name of the configured egress object.
Supports 1-32 characters. Characters allowed are alpha-numeric, underscore and dot. Underscore is not allowed as the first character.

Modes

Config mode

Egress config mode

Usage Guidelines

A valid egress name must be provided. The reserved name, all cannot be used for configuration.

An egress name must be unique. An error is thrown if you try to use the same name for an egress as for an egress group.

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.

The no egress name command clears all objects of the given type.

Table 1. Error messages
Message Reason
Error: egress name identifier must start with an alphabetic character or an underscore. Egress name begins with non-alphabetic character or does not begin with an underscore.
Error: egress name identifier cannot exceed 64 characters Egress name is longer than 64 characters.
Error: egress name identifier must be an arbitrary sequence of alphabets, numerals, underscores, hyphens or dots. Egress name contains invalid characters.
Error: egress name identifier must not be reserved keyword "egress". Egress name includes the reserved word egress
Error: Egress and egress-group cannot use same name. An egress-group with same name already exists Egress name cannot be same as egress-group.

Examples

The following example creates egress-123.

device(config)# egress egress-100
device(config-egress)# precedence 10 interface ethernet 1/10
device(config-egress)# set encap-100
device(config-egress)# set listener-policy lp-100

device# show running-config egress
Egress egress-100
Precedence 10 interface ethernet 1/10
encap-100
lp-100