Sunteți pe pagina 1din 15

Task 1: Perform a Reload and Verify That the Switch Is Unconfigured

Step 2:
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:
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:
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()
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-2012golden_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:
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 show startup-config command.

Switch>enable
Switch#show startup-config
startup-config is not present

Step 6:
You can issue the show version 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-2012golden_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

Step 1:
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.
Switch(config)#hostname SW1

End with CNTL/Z.

SW1(config)#

Step 2:
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 4:
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.
PC1(config)#interface Ethernet 0/0

End with CNTL/Z.

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:
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
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

Step 1:
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:
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

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:
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

< output omitted! >

SW1#show
SW1#show clock?
clock
SW1#show clock
SW1#show clock
13:01:24.145 UTC Fri Aug 17 2012
SW1#
Task 4: Improve the Usability of the CLI

Step 1:
You can enter the show terminal 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:
Enter global configuration mode.

SW1#configure terminal
Enter configuration commands, one per line.
Enter line console 0 configuration mode.

End with CNTL/Z.

SW1(config)#line console 0
Change the history size to 100.

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:
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:
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:
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:
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...
[OK]
SW1#
1992-2014 Cisco Systems, Inc. All rights reserved.

S-ar putea să vă placă și