set egress-group

Sets the egress group to be used by the route map for forwarding matched packets.

Syntax

set egress-group name
no set egress-group name

Parameters

name
Specifies the configured egress group to be bound to the route map and used for packet forwarding. Name must not exceed 64 characters and must start with an alphabetic character or an underscore followed by an arbitrary sequence of alphabetic or numeric characters, underscores, hyphens, or dots.

Modes

Route-map config mode

Usage Guidelines

You must have the admin role to perform this task.

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.

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

Examples

The following example configures egress-group egr1 to be used by the route map for forwarding matched packets.

device# configure terminal
device(config)# route-map rmap1 10 
device(config-route-map)# set egress-group egr1
device(config-route-map)# end

device# show route-map all
route-map R1 10
forward-action permit
match ip access-list test_1 (active)
egress-group eg_1
Policy matches: 0 packets, 0 bytes, 0 PacketRate, 0 BitRate

The following example sets the egress for the egress-group and uses the show running-config command to verify the setting.

device# configure terminal
device(conf)# egress-group eg-100 
device(conf-egress-group)#set egress egress-100 

device# show running-config egress-group
egress-group eg-100
  set egress egress-100 

The following example unbinds the egress-group egr1 from the route map.

device# configure terminal
device(config)# route-map rmap1 10 
device(config-egress-group)# no set egress-group egr1