The objective of this lab exercise is for you to learn and understand how to configure and use aliases within the Cisco IOS.
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.
This lab is suitable for CCNA certification exam preparation.
This lab has a difficulty rating of 3/10.
When you are ready for your certification exam, you should complete this lab in no more than 10 minutes.
Please use any single router or switch to complete this lab.
Configure a hostname on your router or switch.
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
Verify your configured aliases. Now test your aliases and validate that they operate as expected.
Configuration and Verification
For reference information on configuring hostnames, please refer to earlier labs.
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#
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]