Wildcards, Templates, and Aliases
DETAILED STEPS
Command or Action
Step 1
configure
Example:
Router# configure
Step 2
template template-name [parameter]
[config-commands]
Example:
RP/0/RP0/CPU0:router(config)# template tmplt_1
Step 3
Enter the template definitions.
Example:
RP/0/RP0/CPU0:router(config-TPL)# interface
pos0/2/0/4
RP/0/RP0/CPU0:router(config-if)# ipv4 address
10.0.0.1
RP/0/RP0/CPU0:router(config-if)# exit
Step 4
end-template
Example:
RP/0/RP0/CPU0:router(config-TPL)# end-template
Cisco CRS-1 Series Carrier Routing System Getting Started Guide
3-14
Chapter 3
Purpose
Enters global configuration mode.
Enters template configuration mode and creates a template.
template-name: A unique name for the template to be
•
applied to the running configuration.
parameter: (Optional) Actual values of the variables
•
specified in the template definition. Up to five
parameters can be specified within parentheses.
Templates can be created with or without parameters.
config-commands: (Optional) Global configuration
•
commands to be added to the template definition. Any
name in a command (such as server name, group name,
and so on) can be parameterized. This means that those
parameters can be used in the template commands
(starting with $), and replaced with real arguments
when applied.
To remove the template, use the no form of this
•
command. Type the template command in global
configuration mode.
—
Ends the template definition session and exits template
configuration mode.
When you end the template session, you are returned to
•
global configuration mode.
CLI Tips, Techniques, and Shortcuts