Command
Alias Exec
Use
This command is used to create shortcuts to various commands. While it is definately handy in the real world, we would not recommend using alias exec while studying for the CCNA, as you could potentially get more used to your own commands instead of Cisco’s commands.
Syntax
Router(config)#alias exec <alias> <real command>
Example
In this example, we will set quick aliases to some of my favorite commands.
2611XM(config)#alias exec s sho ip int brief 2611XM(config)#alias exec ss sho ip int brief | ex unass 2611XM#s Interface IP-Address OK? Method Status Protocol FastEthernet0/0 10.10.2.5 YES TFTP up up FastEthernet0/1 10.10.3.1 YES TFTP administratively down down NVI0 unassigned NO unset up up Loopback0 5.5.5.5 YES TFTP up up Loopback44 44.44.44.44 YES TFTP up up 2611XM#ss Interface IP-Address OK? Method Status Protocol FastEthernet0/0 10.10.2.5 YES TFTP up up FastEthernet0/1 10.10.3.1 YES TFTP administratively down down Loopback0 5.5.5.5 YES TFTP up up Loopback44 44.44.44.44 YES TFTP up up