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

This command is available only to users with the admin role.

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.

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