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/RSP0/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/RSP0/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/RSP0/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/RSP0/CPU0:router# show running 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
load-interval 30
## Inherited from group gd21
mac-accounting ingress
## Inherited from group gd21
mac-accounting egress
!
!
Cisco ASR 9000 Series Aggregation Services Router System Management Configuration Guide, Release 5.1.x
143
Configuring Flexible Command Line Interface Configuration Groups
Configuration Examples for Flexible CLI Configuration