SUMMARY STEPS
1.
configure
2.
group group-name
3.
Enter configuration commands, starting from global configuration mode. Use regular expressions for
interface names and other variable instances.
4.
end-group
5.
apply-group
DETAILED STEPS
PurposeCommand or Action
configure
Step 1
Specifies a name for a configuration group and enters group configuration
mode to define the group.The group-name argument can have up to 32
group group-name
Example:
RP/0/RSP0/CPU0:router(config)# group
g-interf
Step 2
characters and cannot contain any special characters. For information
regarding special characters, refer to the Understanding Regular
Expressions, Special Characters, and Patterns module in the
Cisco ASR 9000 Series Aggregation Services Router Getting Started
Guide.
Specifies the configuration statements that you want included in this
configuration group.
Enter configuration commands, starting from
global configuration mode. Use regular
Step 3
expressions for interface names and other
variable instances.
For more information regarding the use of regular expressions, see
Regular Expressions in Configuration Groups, on page 136. This example
is applicable to all Gigabit Ethernet interfaces.
Example:
RP/0/RSP0/CPU0:router(config)# group
g-interf
RP/0/RSP0/CPU0:router(config-GRP)#
interface 'GigabitEthernet.*'
RP/0/RSP0/CPU0:router(config-GRP-if)#
mtu 1500
Completes the configuration of a configuration group and exits to global
configuration mode.
end-group
Example:
RP/0/RSP0/CPU0:router(config-GRP-if)#
end-group
Step 4
Adds the configuration of the configuration group into the router
configuration applicable at the location that the group is applied. Groups
apply-group
Example:
RP/0/RSP0/CPU0:router(config)# interface
Step 5
can be applied in multiple locations, and their effect depends on the
location and context.
The MTU value from the group g-interf is applied to the interface
GigabitEthernet0/2/0/0. If this group is applied in global configuration
GigabitEthernet0/2/0/0
RP/0/RSP0/CPU0:router(config-if)#
apply-group g-interf
mode, the MTU value is inherited by all Gigabit Ethernet interfaces that
do not have an MTU value configured.
Cisco ASR 9000 Series Aggregation Services Router System Management Configuration Guide, Release 5.1.x
132
Configuring Flexible Command Line Interface Configuration Groups
Configuring a Configuration Group