Lab Objective:
The objective of this lab exercise is for you to learn and understand how to configure and use aliases within the Cisco IOS.
Lab Purpose:
Configuring and using aliases is a fundamental skill. Aliases are customized names assigned to Cisco IOS commands that can be used in place of long commands. As a Cisco engineer, as well as in the Cisco CCNA exam, you will be expected to know how to configure and use aliases on Cisco IOS devices.
Certification Level:
This lab is suitable for CCNA certification exam preparation.
Lab Difficulty:
This lab has a difficulty rating of 3/10.
Readiness Assessment:
When you are ready for your certification exam, you should complete this lab in no more than 10 minutes.
Lab Topology:
Please use any single router or switch to complete this lab.
Task 1:
Configure a hostname on your router or switch.
Task 2:
Configure the following aliases on your device:
ALIAS: REAL Cisco IOS COMMAND
int: show ip interfaces brief
save: copy running-config startup-config
proc: show processes cpu
Task 3:
Verify your configured aliases. Now test your aliases and validate that they operate as expected.
Configuration and Verification
Task 1:
For reference information on configuring hostnames, please refer to earlier labs.
Task 2:
R1#conf t Enter configuration commands, one per line. End with CTRL/Z. R1(config)#alias exec int show ip interface brief R1(config)#alias exec save copy running-config startup-config R1(config)#alias exec proc show processes cpu R1(config)#end R1#
Task 3:
R1#show aliases Exec mode aliases: h help lo logout p ping r resume s show u undebug un undebug w where int show ip interface brief save copy running-config startup-config proc show processes cpu R1#int Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES manual administratively down down Serial0/0 unassigned YES NVRAM administratively down down Serial0/1 unassigned YES manual administratively down down R1#save Destination filename [startup-config]? Building configuration... [OK] R1#proc CPU utilization for five seconds: 0%/0%; one minute: 4%; five minutes: 1% PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process 1 0 2 0 0.00% 0.00% 0.00% 0 Chunk Manager 2 0 110 0 0.00% 0.00% 0.00% 0 Load Meter [output truncated for brevity]