Step 3
Enter configuration commands, starting from global configuration mode. Use regular expressions for interface names
and other variable instances.
Example:
RP/0/RP0/CPU0:router(config)#
group g-interf
RP/0/RP0/CPU0:router(config-GRP)#
interface 'GigabitEthernet.*'
RP/0/RP0/CPU0:router(config-GRP-if)#
mtu 1500
Specifies the configuration statements that you want included in this configuration group.
For more information regarding the use of regular expressions, see
Configuration Group Inheritance with Regular
Expressions: Example, on page 90
. This example is applicable to all Gigabit Ethernet interfaces.
Step 4
end-group
Example:
RP/0/RP0/CPU0:router(config-GRP-if)#
end-group
Completes the configuration of a configuration group and exits to global configuration mode.
Step 5
apply-group
Example:
RP/0/RP0/CPU0:router(config)#
interface GigabitEthernet0/2/0/0
RP/0/RP0/CPU0:router(config-if)#
apply-group g-interf
Adds the configuration of the configuration group into the router configuration applicable at the location that the group
is applied. Groups 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 mode, the MTU value is inherited by all Gigabit Ethernet interfaces that do not have an MTU value
configured.
Simple Configuration Group: Example
This example shows how to use configuration groups to add a global configuration to the system:
RP/0/RP0/CPU0:router(config)#
group g-logging
RP/0/RP0/CPU0:router(config-GRP)#
logging trap notifications
RP/0/RP0/CPU0:router(config-GRP)#
logging console debugging
RP/0/RP0/CPU0:router(config-GRP)#
logging monitor debugging
RP/0/RP0/CPU0:router(config-GRP)#
logging buffered 10000000
RP/0/RP0/CPU0:router(config-GRP)#
end-group
RP/0/RP0/CPU0:router(config)#
apply-group g-logging
When this configuration is committed, all commands contained in the g-logging configuration group are
committed.
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
80
Configuring Flexible Command Line Interface
Simple Configuration Group: Example