Configuration Group Applied to Different Places: Example
Configuration groups can be applied to different places, and their effect depends on the context within which
they are applied. Consider this configuration group:
RP/0/RP0/CPU0:router(config)#
group g-interfaces
RP/0/RP0/CPU0:router(config-GRP)#
interface 'GigabitEthernet.*'
RP/0/RP0/CPU0:router(config-GRP-if)#
mtu 1500
RP/0/RP0/CPU0:router(config-GRP-if)#
exit
RP/0/RP0/CPU0:router(config-GRP)#
interface 'GigabitEthernet.*'
RP/0/RP0/CPU0:router(config-GRP-if)#
mtu 1000
RP/0/RP0/CPU0:router(config-GRP-if)#
exit
RP/0/RP0/CPU0:router(config-GRP)#
interface 'GigabitEthernet.*'
RP/0/RP0/CPU0:router(config-GRP-if)#
mtu 2000
RP/0/RP0/CPU0:router(config-GRP-if)#
end-group
This group can be applied to Gigabit Ethernet interface and in each instance the applicable MTU is applied.
For instance, in this example, the Gigabit Ethernet interface is configured to have an MTU of 1000:
RP/0/RP0/CPU0:router(config)#
interface GigabitEthernet0/2/0/0
RP/0/RP0/CPU0:router(config-if)#
apply-group g-interfaces
RP/0/RP0/CPU0:router(config-if)#
ipv4 address 2.2.2.2 255.255.255.0
In this example, the Gigabit Ethernet interface is configured to have an MTU of 1500:
RP/0/RP0/CPU0:router(config)#
interface GigabitEthernet0/2/0/0
RP/0/RP0/CPU0:router(config-if)#
apply-group g-interfaces
RP/0/RP0/CPU0:router(config-if)#
ipv4 address 3.3.3.3 255.255.255.0
The same configuration group is used in both cases, but only the applicable configuration statements are used.
Verifying the Configuration of Configuration Groups
Use this task to verify the router configuration using configuration groups:
SUMMARY STEPS
1.
show running-config group
[
group-name
]
2.
show running-config
3.
show running-config inheritance
4.
show running-config interface x/y/z inheritance detail
DETAILED STEPS
Purpose
Command or Action
Displays the contents of a specific or all configured
configuration groups.
show running-config group
[
group-name
]
Example:
RP/0/RP0/CPU0:router#
show running-config group
Step 1
group g-int-ge
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
81
Configuring Flexible Command Line Interface
Configuration Group Applied to Different Places: Example