Vous êtes sur la page 1sur 9

29/5/2014 Cisco Learning Labs

https://cll1.cisco.com/labs/labmain 1/9
Task 1: Perform a Reload and Verify That the Switch Is Unconfigured
In this task, you will use the erase startup-config command to ensure that the switch has no prior configuration in the startup-config file. You will then reload the switch software and observe the output that is generated during the
reload. Last, you will investigate the properties of the switch.
Step 1:
Access the CLI of switch SW1.
Step 2:
To see the effect of entering a privileged-level command in user EXEC mode, enter the command erase startup-config.
What was the result of issuing the command in an incorrect EXEC mode?
Tip:
Since the erase startup-config command is a privileged-level command, entering it in user EXEC mode will have no effect to the system. You were informed that the command is invalid:
Switch>erase startup-config
^
% Invalid input detected at '^' marker.
Step 3:
Enter privileged EXEC mode.
How do you know if you are in privileged EXEC mode and not user EXEC mode?
Tip:
When you have a right arrow (>) symbol after the device hostname, you are in user EXEC mode. When you issued the enable command, you moved into privileged EXEC mode, which is indicated by the pound sign (#)
after the hostname. Enter privileged EXEC mode by typing enable in user EXEC mode.
Switch>enable
Switch#
Step 4:
Erase the startup configuration and perform a reload. Observe the output during the reload.
On the switch you also need to delete the vlan.dat file if VLANs were created. Initially there were no VLANs created in this exercise.
When this lab starts, there is no VLAN database so it is not necessary to delete it. The following is an example of how you would delete the VLAN data base when that action is necessary.
Switch#delete vlan.dat
Delete filename [vlan.dat]?
Delete flash:/vlan.dat? [confirm]
Tip:
When you enter the erase startup-config command within privileged EXEC mode, it is accepted and you are prompted to press Enter to confirm this action.
Switch#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] <Enter>
[OK]
Erase of nvram: complete
When you enter the reload command within privileged EXEC mode, you are asked to confirm the reload. Press Enter at that point.
Switch#reload
Proceed with reload? [confirm]
unix_reload()
29/5/2014 Cisco Learning Labs
https://cll1.cisco.com/labs/labmain 2/9
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software, Solaris Software (UNIXL2-UPK9-M), Experimental Version 15.0(20120621:035549) [dstivers-june20-2012-golden_spike 100]
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Wed 20-Jun-12 21:37 by dstivers
Image text-base: 0x00011EB0, data-base: 0x02A3B6BC
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Solaris Unix (Sparc) processor with 111929K bytes of memory.
Processor board ID 213017
24 Ethernet interfaces
16K bytes of NVRAM.
Step 5:
Press Enter when the switch boots and skip the initial configuration dialog. You will know when the switch is done booting by seeing "Press RETURN to get started!" in the console output.
How do you know that the startup configuration has been erased?
Tip:
Your results should resemble the output displayed here. You should have answered No to the question (Would you like to enter the initial configuration dialog?).
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: no
Press RETURN to get started!
If you skipped initial configuration dialog there is no startup configuration present. Alternatively, you can verify that there is no configuration present by entering privileged EXEC mode and issuing the showstartup-config
command.
Switch>enable
Switch#show startup-config
29/5/2014 Cisco Learning Labs
https://cll1.cisco.com/labs/labmain 3/9
startup-config is not present
Step 6:
Using the appropriate showcommand, investigate the software version, and amount of RAM and flash memory.
Tip:
You can issue the showversion command from either user or privileged EXEC mode.
In the output here, you see that the switch software is running on the Solaris Unix.
Note that your device may have different properties.
Switch#show version
Cisco IOS Software, Solaris Software (UNIXL2-UPK9-M), Experimental Version 15.0(20120621:035549) [dstivers-june20-2012-golden_spike 100]
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Wed 20-Jun-12 21:37 by dstivers
ROM: Bootstrap program is Solaris
Switch uptime is 7 minutes
System returned to ROM by reload at 0
System image file is "unix:/iou_root/iou_images/Cisco-IOS/unixl2-upk9-ms.june20_2012_golde"
Last reload reason: Unknown reason
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Solaris Unix (Sparc) processor with 111929K bytes of memory.
Processor board ID 213017
24 Ethernet interfaces
16K bytes of NVRAM.
Configuration register is 0x0
Switch#
Task 2: Configure the Switch with a Hostname and an IP Address
In this task, you will equip the switch with a hostname and an IP address.
Step 1:
Change the hostname of the switch to SW1.
Tip:
29/5/2014 Cisco Learning Labs
https://cll1.cisco.com/labs/labmain 4/9
Enter privileged EXEC mode and then global configuration mode. Issue the hostname command, as shown in the following output. Notice the change in the hostname of the device in the last line of the output.
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW1
SW1(config)#
Step 2:
On the SW1 enable VLAN1 interface and assign an IP address to the VLAN1 interface. Be sure that you assign the correct IP address, as described in the Job Aids section in the beginning of the lab document.
Tip:
First, make sure that you are in global configuration mode.
SW1(config)#
Then enter interface configuration mode for VLAN 1, enable interface and assign the proper IP address and network mask.
SW1(config)#interface vlan 1
SW1(config-if)#ip address 10.1.1.11 255.255.255.0
SW1(config-if)#no shutdown
SW1(config-if)#
*Feb 27 22:11:31.987: %LINK-3-UPDOWN: Interface Vlan1, changed state to up
SW1(config-if)#
*Feb 27 22:11:31.999: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
SW1(config-if)#
Configuring the IP address on the switch is not mandatory to start the switch running, but it is necessary for IP connectivity with other devices.
Step 3:
Access PC1. For this lab a router is used to simulate the PC. Routing has been disabled and a default gateway has been preconfigured.
Step 4:
Ethernet0/0 interface is used to connect PC1 to the switch. Assign the IP address to the PC1, as listed in the Job Aids section. The IP address should be assigned to the Ethernet0/0 interface of the PC1.
Tip:
Then enter interface configuration mode for e0/0, enable interface and assign the proper IP address and network mask.
PC1>enable
PC1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
PC1(config)#interface Ethernet 0/0
PC1(config-if)#ip address 10.1.1.100 255.255.255.0
PC1(config-if)#no shutdown
PC1(config-if)#
*Feb 27 22:16:56.520: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Feb 27 22:16:57.520: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up
PC1(config-if)#
Step 5:
From the PC ping the VLAN 1 IP address of SW1, to confirm Layer 3 connectivity.
Tip:
On PC1 enter ping, followed by the IP address of the VLAN 1 interface on the SW1 switch. This Layer 3 test should succeed.
PC1(config-if)#exit
PC1(config)#exit
29/5/2014 Cisco Learning Labs
https://cll1.cisco.com/labs/labmain 5/9
PC1#ping 10.1.1.11
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.11, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/4 ms
Task 3: Explore Context-Sensitive Help
In this task, you will use context-sensitive help to locate commands and complete command syntax.
Step 1:
On switch SW1, enter privileged EXEC mode and enter ? to list the available commands.
When you left the switch, it was in the EXEC mode (SW#). By default, the switch will timeout and exit the EXEC mode if there is no user input. Depending on how quickly you performed the steps on PC1, this timeout may
have happened. If the switch has timed out, enter the following commands:.
SW1>enable
SW#
Tip:
After you enter privileged EXEC mode and enter ?, you are presented with a list of available commands. Each command is listed with a description.
SW1#?
Exec commands:
access-enable Create a temporary Access-List entry
access-profile Apply user-profile to interface
access-template Create a temporary Access-List entry
archive manage archive files
beep Blocks Extensible Exchange Protocol commands
< output omitted >
where List active connections
write Write running configuration to memory, network, or terminal
Step 2:
Using the ? command, set the clock on the switch to the current time and date.
Tip:
First, make sure that you are in privileged EXEC mode. Enter clock, followed by ?. Complete the configuration as displayed here.
The Tab key can be used to automatically complete the command if the characters that you have entered are not ambiguous.
SW1#clock ?
read-calendar Read the hardware calendar into the clock
set Set the time and date
update-calendar Update the hardware calendar from the clock
SW1#clock
SW1#clock set ?
hh:mm:ss Current Time
SW1#clock set
SW1#clock set 12:57:22 ?
<1-31> Day of the month
MONTH Month of the year
29/5/2014 Cisco Learning Labs
https://cll1.cisco.com/labs/labmain 6/9
SW1#clock set 12:57:22
SW1#clock set 12:57:22 17 ?
MONTH Month of the year
SW1#clock set 12:57:22 17
SW1#clock set 12:57:22 17 8 ?
% Unrecognized command
SW1#clock set 12:57:22 17 8
SW1#clock set 12:57:22 17 August ?
<1993-2035> Year
SW1#clock set 12:57:22 17 August
SW1#clock set 12:57:22 17 August 2012 ?
<cr>

SW1#clock set 12:57:22 17 August 2012
SW1#clock set 12:57:22 17 August 2012
SW1#
Step 3:
Verify the current date and time using the appropriate showcommand.
Tip:
When you are familiar only with how a command begins, you can get help by using the ? command. It will list all commands that begin with the sequence of letters that you entered.
SW1#sh?
show
SW1#sh
SW1#show ?
aaa Show AAA values
access-expression List access expression
access-lists List access lists
accounting Accounting data for active sessions
acircuit Access circuit info
adjacency Adjacent nodes
aliases Display alias commands
alignment Show alignment information
archive Archive functions
arp ARP table
< output omitted! >
cef CEF address family independent status
checkpoint Checkpoint Facility (CF)
class-map Show QoS Class Map
clns CLNS network information
clock Display the system clock
cns CNS agents
compress Show compression statistics
configuration Contents of Non-Volatile memory
connection Show Connection
29/5/2014 Cisco Learning Labs
https://cll1.cisco.com/labs/labmain 7/9
< output omitted! >
SW1#show
SW1#show clock?
clock
SW1#show clock
SW1#show clock
13:01:24.145 UTC Fri Aug 17 2012
SW1#
Step 4:
Type the following comment line at the prompt and then press Enter:
!ths command changuwthe clck sped for the swch
An exclamation point (!) at the beginning of the line indicates that you are entering a comment. The comment will not be part of the switch configuration. Comments are a great help when you are working on a configuration in a text
editor and plan to upload it to a device.
Step 5:
Press Ctrl-P or press the Up Arrowkey to see the previous line. Use the editor commands Ctrl-A, Ctrl-F, Ctrl-E, and Ctrl-B to move along the line, and use the Backspace key to delete unwanted characters. Using the editing
commands, correct the comment line to read:
!This command changes the clock speed for the switch.
Task 4: Improve the Usability of the CLI
In this task, you will enter commands to improve the usability of the CLI. You will increase the number of lines in the history buffer, increase the inactivity timer on the console port, and stop the attempted name resolution of mistyped
commands.
Step 1:
Using the showterminal command, verify that history is enabled and determine the current history size for the console line.
Tip:
You can enter the showterminal command and then investigate the output to determine the current history size. Alternatively, you can use the pipe (|) along with the include command and the keyword history size to print
out just the line with the information.
SW1#show terminal | include history size
History is enabled, history size is 10.
Step 2:
Change the history size to 100 for the console line and verify that the change has taken place.
Tip:
Enter global configuration mode.
SW1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Enter line console 0 configuration mode.
SW1(config)#line console 0
Change the history size to 100.
29/5/2014 Cisco Learning Labs
https://cll1.cisco.com/labs/labmain 8/9
SW1(config-line)#history size 100
Issue the exit command twice to get back to privileged EXEC mode.
SW1(config-line)#exit
SW1(config)#exit
Verify that the history size is changed.
SW1#show terminal | i history size
History is enabled, history size is 100.
Step 3:
The no ip domain lookup command disables the resolution of symbolic names. If you mistype a command, the system will not try to translate it into an IP address (it will take about 5 seconds to time out). Disable IP domain
lookup.
Tip:
You must be in global configuration mode before issuing the no ip domain lookup command.
SW1>enable
SW1#configure terminal
SW1(config)#no ip domain lookup
Step 4:
The default console access EXEC timeout is set to 10 minutes. After 10 minutes of inactivity, the user is disconnected from console access and is required to reconnect. Change this timer to 60 minutes.
Tip:
Issue the exec-timeout 60 command to set the console timeout expiration timer to one hour.
SW1(config)#line console 0
SW1(config-line)#exec-timeout 60
Step 5:
The logging synchronous command synchronizes unsolicited messages and debugs privileged EXEC command output with the input from the CLI. If you are in the middle of typing a command, status messages will appear
where you are typing. Enable synchronous logging on line console 0.
Tip:
Make sure that you are in global configuration mode and then enter line console 0 configuration mode. Last, enable synchronous logging as shown in the output here.
SW1(config-line)#logging synchronous
SW1(config-line)#exit
SW1(config)#exit
SW1#
Make sure that you are in console line configuration mode.
Step 6:
Save your running configuration to the the startup configuration.
Tip:
This command copies the running configuration to the startup configuration. If you do not save the configuration, you will lose it the next time the switch is restarted.
SW1#copy running-config startup-config
If you press Enter when asked for the destination filename, the running configuration is stored as the startup configuration.
Destination filename [startup-config]? <Enter>
Building configuration...
29/5/2014 Cisco Learning Labs
https://cll1.cisco.com/labs/labmain 9/9
[OK]
SW1#

Vous aimerez peut-être aussi