Configuring user-level aliases

User-level command aliases (command shortcuts) are defined for an individual user account.

  1. In privileged EXEC mode, enter the configure terminal command.
    device# configure terminal
  2. Enter the alias-config command to access alias configuration mode.
    device(config)# alias-config
  3. Enter the user command to access user-alias configuration mode.
    device(config-alias-config)# user jdoe
  4. Enter the alias command, specifying the alias and its corresponding command.
    device(config-user-jdoe)# alias int2 "interface ethernet 1/2"
  5. Verify the alias.
    Note

    Note

    The following verification example assumes that the user jdoe defined the user-level alias "int2". If an admin defined the alias for this user, the example would show the admin logging out of the CLI and jdoe logging into the CLI.
    device(config-alias-config)# exit
    device(config-user-jdoe)# exit
    device(config-alias-config)# exit
    device(config)# int2
    
    <Displayed automatically:>
    device(config)#interface ethernet 1/2
    device(config-if-eth-1/2)#