O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required