Name
alias — global
Synopsis
alias mode alias-name command
Configures
Command aliases
Default
None
Description
This command allows you to configure an alias, or abbreviation, for any IOS command.
-
mode
The mode to which the alias and the command that you are aliasing belong. It can be any of the configuration modes:
configuration
(for global commands),user
,exec
,hub
,interface
,line
,map-class
,map-list
,route-map
,router
, etc.-
alias-name
The name to be assigned to the alias.
-
command
The IOS command represented by the alias.
Example
To assign the shorthand t1
to the command telnet 10.1.1.1 2001
, use the following command:
alias exec t1 telnet 10.1.1.1 2001
Get Cisco IOS in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.