Exec Alias


Scenario:

You run a local petshop located in The Netherlands and the network in use has been configured for you. Your colleagues like routers but they are not used to working with the command-line. You decide to help them by using exec aliases for some of the commands they require most.

Goal:

  • All IP addresses have been preconfigured for you.
  • OSPF has been configured for connectivity.
  • Typing “shr” should show the routing table.
  • Typing “sho” should show the OSPF database.
  • Typing “i l0” in global configuration mode should switch to the configuration of the loopback0 interface.
  • Typing “newsa VAULT” in global configuration mode should create a new standard access-list called VAULT.

IOS:

c3640-jk9s-mz.124-16.bin

Topology:

Exec Alias

Configuration Files

You need to register to download the GNS3 topology file. (Registration is free!)

Once you are logged in you will find the configuration files right here.

Opt In Image
Do you want your CCNA or CCNP Certificate?

The How to Master series helps you to understand complex topics like spanning-tree, VLANs, trunks, OSPF, EIGRP, BGP and more.

Written by René Molenaar - CCIE #41726

You May Also Like

About the Author: Rene Molenaar

René - CCIE #41726 is the creator of GNS3Vault.com where he shares CCNA, CCNP and CCIE R&S labs. He also blogs about networking on http://networklessons.com

5 Comments

  1. I cannot use more than 1 words for the alias, but this is my solution;
    alias configure l0 int lo0
    alias configure VAULT ip access-list standard VAULT
    alias exec shr sh ip route
    alias exec sho sh ip ospf database

  2. alias configure ilo interface loopback 0
    alias configure newsaVAULT ip access-list standard VAULT
    alias exec shr show ip route
    alias exec sho show ip ospf database
    alias exec ilo interface loopback 0

Comments are closed.