Boosting Efficiency with Aliases on Cisco CLI

The commands we use in our daily work can sometimes feel repetitive. To streamline our workflow and save time, we can use aliases on our devices. As with other operating systems, creating an aliases on Cisco devices is relatively straightforward.

Cisco devices have default aliases, which we can view using the following command.

Switch# show aliases
Screenshot 2024 05 09 135531

For example, we can use “p” instead of the “ping” command for pinging.

Switch# p 192.168.1.10

To create a new alias on the device, we can use the following command.

Switch(config)# alias exec siib show ip interface brief

In this example, we create an alias for the “show ip interface brief” command. After configuring the alias, we can use “siib” as a shortcut for “show ip interface brief”.

Both “show ip interface brief” and “siib” commands will give the same output on the same device.

To delete the alias that we create use the following command.

Switch(config)# no alias exec siib show ip interface brief

Stay tuned for more computer network content.

About Hüseyin Pala 156 Articles
Junior Network Specialist

Be the first to comment

Leave a Reply

Your email address will not be published.


*