EasyManuals Logo
Home>Cisco>Network Router>ASR 9000 Series

Cisco ASR 9000 Series User Manual

Cisco ASR 9000 Series
422 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #160 background imageLoading...
Page #160 background image
Configuration Group Precedence: Example
When similar configuration statements are contained in multiple configuration groups, groups applied in inner
configuration modes take precedence over groups applied in outer modes. This example shows two configuration
groups that configure different cost values for OSPF.
RP/0/RSP0/CPU0:router(config)# group g-ospf2
RP/0/RSP0/CPU0:router(config-GRP)# router ospf '.*'
RP/0/RSP0/CPU0:router(config-GRP-ospf)# area '.*'
RP/0/RSP0/CPU0:router(config-GRP-ospf-ar)# cost 2
RP/0/RSP0/CPU0:router(config-GRP-ospf-ar)# end-group
RP/0/RSP0/CPU0:router(config)# group g-ospf100
RP/0/RSP0/CPU0:router(config-GRP)# router ospf '.*'
RP/0/RSP0/CPU0:router(config-GRP-ospf)# area '.*'
RP/0/RSP0/CPU0:router(config-GRP-ospf-ar)# cost 100
RP/0/RSP0/CPU0:router(config-GRP-ospf-ar)# end-group
If these configuration groups are applied as follows, the cost 2 specified in g-ospf2 is inherited by OSPF area
0 because the group is applied in a more inner configuration mode. In this case, the configuration in group
g-ospf100 is ignored.
RP/0/RSP0/CPU0:router(config)# router ospf 0
RP/0/RSP0/CPU0:router(config-ospf)# apply-group g-ospf100
RP/0/RSP0/CPU0:router(config-ospf)# area 0
RP/0/RSP0/CPU0:router(config-ospf-ar)# apply-group g-ospf2
Changes to Configuration Group are Automatically Inherited: Example
When you make changes to a configuration group that is committed and applied to your router configuration,
the changes are automatically inherited by the router configuration. For example, assume that this configuration
is committed:
group g-interface-mtu
interface ‘POS.*’
mtu 1500
!
end-group
interface POS0/4/1/0
apply-group g-interface-mtu
!
Now you change the configuration group as in this example:
RP/0/RSP0/CPU0:router(config)# group g-interface-mtu
RP/0/RSP0/CPU0:router(config-GRP)# interface 'POS.*'
RP/0/RSP0/CPU0:router(config-GRP-if)# mtu 2000
RP/0/RSP0/CPU0:router(config-GRP-if)# end-group
When this configuration group is committed, the MTU configuration for interface POS0/4/1/0 is automatically
updated to 2000.
Cisco ASR 9000 Series Aggregation Services Router System Management Configuration Guide, Release 5.1.x
142
Configuring Flexible Command Line Interface Configuration Groups
Configuration Examples Using Regular Expressions

Table of Contents

Other manuals for Cisco ASR 9000 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco ASR 9000 Series and is the answer not in the manual?

Cisco ASR 9000 Series Specifications

General IconGeneral
BrandCisco
ModelASR 9000 Series
CategoryNetwork Router
LanguageEnglish

Related product manuals