Layer 2 Transport Configuration Group: Example - Cisco ASR 9000 Series User Configuration Manual

Aggregation services router
Hide thumbs Also See for ASR 9000 Series:
Table of Contents

Advertisement

Configuring Flexible Command Line Interface Configuration Groups
Compatible Configuration Is Inherited
The configuration in the configuration group must match the configuration on the router to be inherited. If
the configuration does not match, it is not inherited. For example, assume that this configuration is running
on the router:
router ospf 100
auto-cost disable
!
You configure this configuration and commit it to the configuration.
RP/0/RSP0/CPU0:router(config)# group g-ospf
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)# packet-size 2000
RP/0/RSP0/CPU0:router(config-GRP-ospf)# end-group
RP/0/RSP0/CPU0:router(config)# apply-group g-ospf
RP/0/RSP0/CPU0:router(config)# router ospf 200
RP/0/RSP0/CPU0:router(config-ospf)# area 1
The result is effectively this configuration:
router ospf 100
auto-cost disable
router ospf 200
area 1
packet-size 2000
The packet size is inherited by the ospf 200 configuration, but not by the ospf 100 configuration because the
area is not configured.

Layer 2 Transport Configuration Group: Example

This example shows how to configure and apply a configuration group with Layer 2 transport subinterfaces:
RP/0/RSP0/CPU0:router(config)# group g-l2trans-if
RP/0/RSP0/CPU0:router(config-GRP)# interface 'TenGigE.*\..*' l2transport
RP/0/RSP0/CPU0:router(config-GRP)# mtu 1514
RP/0/RSP0/CPU0:router(config-GRP)# end-group
RP/0/RSP0/CPU0:router(config)# interface TenGigE0/0/0/0.1 l2transport
RP/0/RSP0/CPU0:router(config-if)# apply-group g-l2trans-if
When this configuration is committed, the Ten Gigabit Ethernet interface 0/0/0/0.1 inherits the 1514 MTU
value. This is the output displayed from the show running-config inheritence command for the Ten Gigabit
Ethernet interface:
interface TenGigE0/0/0/0.1 l2transport
## Inherited from group g-l2trans-if
mtu 1514
!
Cisco ASR 9000 Series Aggregation Services Router System Management Configuration Guide, Release 5.1.x
Configuration Examples Using Regular Expressions
141

Advertisement

Table of Contents
loading

Table of Contents