Enter commands more efficiently with Cisco command aliases

Posted: October 6, 2013 in Generic IOS

Aliases:
srb – Show Running-Config | Begin
sre – Show Running-Config | Exclude
sri – Show Running-Config | Include
srint – Show Running-Config Interface
s – show running-configuration
c – configure terminal sir – show ip route
i – show ip interface brief
pvc – show frame-relay pvc
dwn – show frame-relay map | include down
b – router bgp 1234
ns – no shutdown

Created with:

Router(config)#alias exec srb show running-config | begin
Router(config)#alias exec sre show running-config | exclude
Router(config)#alias exec sri show running-config | include
Router(config)#alias exec srint show running-config interface
Router(config)#alias exec s sh run
Router(config)#alias exec c conf t
Router(config)#alias exec sir sh ip ro
Router(config)#alias exec i sh ip int brie
Router(config)#alias exec dwn sh fram map | inc down
Router(config)#alias configure b router bgp 1234
Router(config)#alias interface ns no shutdown

!- Alias is a Global Configuration command. To use it, enter the alias command and identify which privilege level you want to specify the alias for. Here are some examples:

Use “alias exec” for Privileged Mode (any command you use at the router# prompt).
Use “alias configure” for Global Configuration Mode (any command you use at the router(config)# prompt).
Use “alias interface” for Interface Configuration Mode (any command you use at the router(config-if)# prompt).

After specifying the privilege level, enter the alias you want to create and the command you want it to stand for. You can specify parameters for a command after entering the alias.

For example, to use the shortcut for the show running-config interface command —srint— you can specify the interface for which you want to view configuration information after that command. Here’s an example:

#srint fa0/0

Default Cisco IOS aliases:

p stands for ping.
h stands for help.
lo stands for logout.
u and un stand for undebug.
w stands for where.

You can view these aliases by using the “show alias” command

########################################################################

Leave a comment