IOS Command Aliases
Just a quick tip, do you ever get tired of typing in long show commands, particularly the show commands you normally land up running when something isn’t working? IOS has a great feature that allows you to create command aliases. What this means is that you can use an alias such as ’si’ instead of a longer command such as ’show ip interface brief’.
To configure IOS command aliases you simple use the ‘alias’ command. Below I created three separate aliases:
* si = show ip int brief
* ri = reload in 2
* sa = show ip vrf CustomerA (As the VRF name is case sensitive, I find that this really helps alot.)
A#conf t
A(config)#alias exec si show ip int brief
A(config)#alias exec ri reload in 2
A(config)#alias exec sa show ip vrf CustomerA
A#si
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 192.168.1.101 YES NVRAM up up
Ethernet0/1 192.168.2.201 YES NVRAM up up
Ethernet0/2 unassigned YES unset administratively down down
Ethernet0/3 unassigned YES unset administratively down down
Serial1/0 unassigned YES unset administratively down down
Serial1/1 unassigned YES unset administratively down down
Serial1/2 unassigned YES unset administratively down down
Serial1/3 unassigned YES unset administratively down down



Leave a Reply