5-13
Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide
OL-17502-01
Chapter 5 CLI Tips, Techniques, and Shortcuts
Wildcards, Templates, and Aliases
interface Gi0/1/0/3
ipv4 address 10.2.3.7 255.255.255.0
gi
crc 32
!
keepalive disable
--More--
In the following example, the state of all Gigabit-Ethernet interfaces appears:
RP/0/RSP1/CPU0:router# show interfaces gi* brief
Intf Intf LineP Encap MTU BW
Name State State Type (byte) (Kbps)
--------------------------------------------------------------------------------
Gi0/1/0/0 up up HDLC 4474 2488320
Gi0/1/0/1 up up HDLC 4474 2488320
Gi0/1/0/2 up up HDLC 4474 2488320
Gi0/1/0/3 up up HDLC 4474 2488320
Gi0/1/0/4 up up HDLC 4474 2488320
Gi0/1/0/5 up up HDLC 4474 2488320
Gi0/1/0/6 up up HDLC 4474 2488320
Gi0/1/0/7 up up HDLC 4474 2488320
Gi0/1/0/8 up up HDLC 4474 2488320
Gi0/1/0/9 up up HDLC 4474 2488320
Gi0/1/0/10 up up HDLC 4474 2488320
Gi0/1/0/11 up up HDLC 4474 2488320
Gi0/1/0/12 up up HDLC 4474 2488320
Gi0/1/0/13 up up HDLC 4474 2488320
Gi0/1/0/14 up up HDLC 4474 2488320
Gi0/1/0/15 up up HDLC 4474 2488320
Creating Configuration Templates
Configuration templates allow you to create a name that represents a group of configuration commands.
After a template is defined, it can be applied to interfaces by you or other users. As networks scale to
large numbers of nodes and ports, the ability to configure multiple ports quickly using templates can
greatly reduce the time it takes to configure interfaces.
The two primary steps in working with templates are creating templates and applying templates. The
following procedure describes how to create a configuration template.
SUMMARY STEPS
1. configure
2. template template-name [($parameter $parameter...)] [config-commands]
3. Type the template commands.
4. end-template
5. commit
6. show running-config template template-name