Configuration Examples Using Regular Expressions; Configuration Group With Regular Expression: Example - Cisco NCS 5000 Series Manual

System management configuration guide for cisco ncs 5000 series routers
Hide thumbs Also See for NCS 5000 Series:
Table of Contents

Advertisement

Configuring Flexible Command Line Interface
Here, when all have the same (common) configuration, group one will be active. That is
is active. If group ONE is deleted, then group TWO will be active.
TWO

Configuration Examples Using Regular Expressions

Configuration Group with Regular Expression: Example

This example shows the definition of a configuration group for configuring Gigabit Ethernet interfaces with
ISIS routing parameters, using regular expressions for the exact interface:
RP/0/RP0/CPU0:router(config)# group g-isis-gige
RP/0/RP0/CPU0:router(config-GRP)# router isis '.*'
RP/0/RP0/CPU0:router(config-GRP-isis)# interface 'GigabitEthernet.*'
RP/0/RP0/CPU0:router(config-GRP-isis-if)# lsp-interval 20
RP/0/RP0/CPU0:router(config-GRP-isis-if)# hello-interval 40
RP/0/RP0/CPU0:router(config-GRP-isis-if)# address-family ipv4 unicast
RP/0/RP0/CPU0:router(config-GRP-isis-if-af)# metric 10
RP/0/RP0/CPU0:router(config-GRP-isis-if-af)# end-group
RP/0/RP0/CPU0:router(config)#
To illustrate the use of this configuration group, assume that you want to configure these Gigabit Ethernet
interfaces with the ISIS routing parameters:
router isis green
interface GigabitEthernet0/0/0/0
lsp-interval 20
hello-interval 40
address-family ipv4 unicast
metric 10
!
!
interface GigabitEthernet0/0/0/1
lsp-interval 20
hello-interval 40
address-family ipv4 unicast
metric 10
!
!
interface GigabitEthernet0/0/0/2
lsp-interval 20
hello-interval 40
address-family ipv4 unicast
metric 10
!
!
interface GigabitEthernet0/0/0/3
lsp-interval 20
hello-interval 40
address-family ipv4 unicast
metric 10
!
!
!
There are three possible ways to use the configuration group to configure these interfaces. The first is by
applying the group within the interface configuration, as shown here:
router isis green
interface GigabitEthernet0/0/0/0
!
!
interface GigabitEthernet0/0/0/1
apply-group g-isis-gige
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
Configuration Examples Using Regular Expressions
apply-group ONE
89

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents