RP/0/RP0/CPU0:router(config-GRP-if)#
mtu 2000
RP/0/RP0/CPU0:router(config-GRP-if)#
end-group
When this configuration group is committed, the MTU configuration for interface GigabitEthernet0/4/1/0 is
automatically updated to 2000.
Configuration Examples for Flexible CLI Configuration
Basic Flexible CLI Configuration: Example
This example shows that the Media Access Control (MAC) accounting configuration from the gd21
configuration group is applied to all Gigabit Ethernet interfaces in slot 2, ports 1 to 9.
1
Configure the configuration group that configures MAC accounting:
RP/0/RP0/CPU0:router#
show running group gd21
group gd21
interface 'GigabitEthernet0/0/0/2[1-9]'
description general interface inheritance check
load-interval 30
mac-accounting ingress
mac-accounting egress
!
end-group
2
Check that the corresponding apply-group is configured in global configuration or somewhere in the
hierarchy:
RP/0/RP0/CPU0:router#
show running | in apply-group gd21
Building configuration...
apply-group gd21
3
Check the concise local view of the configuration of some of the interfaces:
RP/0/RP0/CPU0:router#
show running interface
interface GigabiEthernet0/0/0/21
!
interface GigabitEthernet0/0/0/22
!
4
Verify that the match and inheritance occur on these interfaces:
RP/0/RP0/CPU0:router#
show running-config inheritance interface
interface GigabitEthernet0/0/0/21
## Inherited from group gd21
description general interface inheritance check
## Inherited from group gd21
load-interval 30
## Inherited from group gd21
mac-accounting ingress
## Inherited from group gd21
mac-accounting egress
!
Interface GigabitEthernet0/0/0/22
## Inherited from group gd21
description general interface inheritance check
## Inherited from group gd21
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
93
Configuring Flexible Command Line Interface
Configuration Examples for Flexible CLI Configuration