Sei sulla pagina 1di 18

Lab 1

Switch Startup and Initial Configuration

CCNA Lab Guide Global Knowledge Training LLC

L1-1

Switch Startup and Initial Configuration

Objectives
In this lab you will connect to the 2950 switch in the remote lab and put a basic configuration on the switch using the initial configuration dialog. The switch starts this lab powered off, with its startup configuration file erased. Therefore when the switch boots up it is unable to find a configuration in NVRAM; it starts up the initial configuration dialog which allows basic configuration tasks to be performed in an interactive, question-based mode. The objectives for this lab are: Connect to the 2950 switch in the remote lab. Use the initial configuration dialog to put a basic configuration on the switch. Add a default gateway to the switchs configuration, using Cisco IOS commands.
Important Substitute your pod number for x in all instructions and commands.

Important To have the equipment revert to a pre-set configuration that will have all equipment ready for the lab, use the Reset-to feature under your pod link. Choose a lab from the drop down menu and click on the Reset button; the equipment will reset and pre-configure itself for that lab and when the reset is complete you will also see the document associated with the new lab. Choosing the Change Doc feature will load the new lab instructions but will not reset or configure the equipment.

L1-2

CCNA Lab Guide Global Knowledge Training LLC

Switch Startup and Initial Configuration

Lab Topology
Fa0/0 192.168.xx.2/24 S1/0 192.168.x.102/27 DCE

PxR2 Student PC PxSW VLAN 1 192.168.xx.10/24 Fa0/2

S1/1 192.168.x.202/27 Core Router 192.168.x.200/27

Frame Relay

Fa0/1 Fa0/10 Fa0/11 Fa0/12 Core Switch

S1/1 192.168.x.201/27 Virtual Access-PC-x 192.168.xx.250/24 PxR1 S1/0 192.168.x.101/27 DTE To Core Switch Fa0/0 192.168.xx.1/24 TFTP Server 10.1.1.1

Warning If Tarantella is used in this Lab it will be necessary to switch the firewall mode. You can access Tarantella by changing the firewall mode from standard to tarantella on the upper left of the web browser screen.

CCNA Lab Guide Global Knowledge Training LLC

L1-3

Switch Startup and Initial Configuration


Note If you receive a Web Services Failure notice when attempting to access the xAccessPC
it is quite possible that you clicked on the X at the top of the AccessPC window rather than using the Start/Logout option. If you attempt to reconnect you will get the Web Services Failure message in the Tarantella window. To fix this problem you must logout of the labs system, close your browser, dismiss the Tarantella/SGD task tray icon and relaunch your browser, delete cookies, and log back in to the labs If you receive a Cannot connect to lab hardware notice when attempting to connect to a pod device and no XTerm window displays, the console port to this device may be busy. Check with other users on the pod so make sure no one else is connected. To verify this, switch the firewall mode to Standard and then use the Default Telnet / Hyperterm option, you should get the message that the line is busy and to use the Clear Line feature to gain access.

L1-4

CCNA Lab Guide Global Knowledge Training LLC

Switch Startup and Initial Configuration

Command List
The following table lists the commands used in this lab, in alphabetical order. Cisco IOS Commands Used In This Lab
Command
#configure terminal #copy running-config startupconfig >enable (config-if-range)#exit

Description
Enters global configuration mode. Saves the running configuration (in RAM) into the startup configuration (in NVRAM). Enters the EXEC privileged mode. Exit the configuration submode and go up one level. Enters interface range configuration mode, to put the same configuration on multiple interfaces simultaneously. Defines the IP address of the default gateway. Enters the initial configuration dialog mode. Displays the running configuration (in RAM). Disable the range of interfaces.

(config)#interface range fa0/11 12 (config)#ip default-gateway 192.168.xx.1 #setup #show running-config (config-if-range)#shutdown

CCNA Lab Guide Global Knowledge Training LLC

L1-5

Switch Startup and Initial Configuration

Procedure
Pod definition
1. The equipment in the lab is grouped by pods; a network has six pods. Each team of up to two people will configure a pod. The team membership should be defined prior to starting this lab. Each pod contains a virtual Access-PC, two routers and a switch. The devices are named Access-PC-x, PxR1, PxR2 and PxSW, where x is the pod number. Within a pod, each router has a serial connection to the other router and to the core router. Each switch is connected to both routers and to the core switch over FastEthernet connections.

Connect to your PxSW console


2. To connect to your pod, start up Internet Explorer and go to www.remotelabs.com. Login using the username and password that has been provided to you.
Important Remember this password; you will need to use it again to log into the terminal server every time you start up a connection to one of the devices in your pod. In the lab documentation we refer to this as the e-lab password.

3. A Tarantella Window will appear.

Important Notice in the title of this Tarantella Window it says DO NOT CLOSE THIS WINDOW. It is important that you DO NOT CLOSE THIS WINDOW or else you will no longer be connected to the lab system

L1-6

CCNA Lab Guide Global Knowledge Training LLC

Switch Startup and Initial Configuration

If Internet Explorer has blocked content in this Tarantella Window, click the warning message and then select Display Blocked Content. 4. In the left-side navigation frame of your Internet Explorer screen you will see your pod menu (indicating your pod number) and links to your pod devices; if you dont see them, click on the Refresh button in your browser.

Which pod are you configuring?

5. Click on the PxSW link (where x is your pod number; for example, if you are in Pod 3 this link will be P3SW). The link will expand and you will see a set of links below it.

CCNA Lab Guide Global Knowledge Training LLC

L1-7

Switch Startup and Initial Configuration

6. To connect to your PxSW console click on the Xterm Telnet link. If a security warning appears, click Run.

7. Another security warning may appear, warning of an unrecognized security certificate. Click Accept.

8. The terminal window that appears will ask for a password. Enter your e-lab password and press <Enter>.
Important This is the password that used to login to www.remotelabs.com. You will need to use this password to log into the terminal server every time you start up a connection to one of the devices in your pod.

L1-8

CCNA Lab Guide Global Knowledge Training LLC

Switch Startup and Initial Configuration

Start up your PxSW switch


9. The device appears to be unresponsive because it is currently powered OFF. Power on the switch by clicking the Power On link from the PxSW menu on your www.remotelabs.com screen. The switch will then boot; observe the messages in the terminal window.
C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1) Compiled Mon 22-Jul-02 17:18 by antonino WS-C2950-24 starting... <output omitted> --- System Configuration Dialog --Would you like to enter the initial configuration dialog? [yes/no]: 00:00:15: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan 00:00:18: %SYS-5-RESTART: System restarted -Cisco Internetwork Operating System Software IOS (tm) C2950 Software (C2950-I6K2L2Q4-M), Version 12.1(22)EA9, RELEASE SOFTWAR E (fc1) Copyright (c) 1986-2006 by cisco Systems, Inc. Compiled Fri 01-Dec-06 18:22 by weiliu 00:00:18: %SNMP-5-COLDSTART: SNMP agent on host Switch is undergoing a cold start 00:00:22: %LINK-3-UPDOWN: Interface FastEthernet0/11, changed state to up 00:00:22: %LINK-3-UPDOWN: Interface FastEthernet0/12, changed state to up 00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to up 00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to up

Use the initial configuration dialog


10. Notice the system prompted you to enter the initial configuration dialog (this dialog is also called setup mode):
--- System Configuration Dialog --Would you like to enter the initial configuration dialog? [yes/no]:
Note To repeat the prompt, press <Enter>.

CCNA Lab Guide Global Knowledge Training LLC

L1-9

Switch Startup and Initial Configuration

11. Enter setup mode by typing y or yes and pressing <Enter>. Throughout the configuration dialog shown here, your responses are shown in bold.
% Please answer 'yes' or 'no'. Would you like to enter the initial configuration dialog? [yes/no]:yes

Note

If you make a mistake during the initial configuration dialog and want to restart, press <Control-C> to exit and then go to privileged mode and enter the setup command.

Switch>enable Switch#setup --- System Configuration Dialog --Continue with configuration dialog? [yes/no]:
Enter setup mode by typing y or yes and pressing <Enter>.

12. Notice that the default answer/setting to queries is in square brackets; press <Enter> to accept the default, or type another response after the colon and then press <Enter>. Decline entering basic management setup by entering n or no. You may opt to review interfaces by answering yes to the interface summary question.
At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity for management of the system, extended setup will ask you to configure each interface on the system Would you like to enter basic management setup? [yes/no]: no First, would you like to see the current interface summary? [yes]: Interface Vlan1 FastEthernet0/1 FastEthernet0/2 FastEthernet0/3 <output omitted> FastEthernet0/24 unassigned L1-10 YES unset down down CCNA Lab Guide Global Knowledge Training LLC IP-Address unassigned unassigned unassigned unassigned OK? Method Status Protocol YES unset administratively down down YES unset YES unset YES unset down down down down down down

Switch Startup and Initial Configuration


Note At the More-- prompt, press the <space bar> to view the next page or press <Enter> to display the next line.

Note

The number of FastEthernet interfaces on your switch may be different from the example shown.

13. Enter PxSW (where x is your pod number) as the host name for your switch. For example, Pod 2 switchs name is P2SW.
Configuring global parameters: Enter host name [Switch]:PxSW
Important Remember to type your pod number instead of x!

14. Next, you will be asked to enter passwords for the switch; use the passwords in the following table: Switch passwords
Password Description
enable secret enable password virtual terminal password

Password
san-fran notused switch

Usage
Privileged access (encrypted) Privileged access (not encrypted; the use of this password is deprecated) Telnet

Note

All passwords are case sensitive; enter them exactly as shown.

The enable secret password is used to control access to privileged mode. It is saved in the configuration in a hashed (encrypted) form, unlike the enable password. If both passwords are specified, the enable secret overrides the enable password (thus the clever enable password in the above table); note that in the initial configuration dialog you must enter both of these passwords. The virtual terminal password controls telnet access.
The enable secret is a password used to protect access to privileged EXEC and configuration modes. This password, after entered, becomes encrypted in the configuration. Enter enable secret: san-fran The enable password is used when you do not specify an enable secret password, with some older software versions, and some boot images. Enter enable password: notused CCNA Lab Guide Global Knowledge Training LLC L1-11

Switch Startup and Initial Configuration


The virtual terminal password is used to protect access to the router over a network interface. Enter virtual terminal password: switch

15. SNMP is not covered in this course; answer no to the configure SNMP question.
Configure SNMP Network Management? [no]:no

16. Next you will configure an IP address on the switch under the interface VLAN 1; answer yes to configuring VLAN1 and using IP. Use the IP address 192.168.xx.10 (where x is your pod number); for example, for Pod 2 the address is 192.168.22.10. Use the default subnet mask 255.255.255.0.
Do you want to configure Vlan1 interface? [no]: yes Configure IP on this interface? [no]: yes IP address for this interface: 192.168.xx.10 Subnet mask for this interface [255.255.255.0] : Class C network is 192.168.xx.0, 24 subnet bits; mask is /24
Important Remember to type you pod number for each x!

17. Do not configure the individual physical interfaces.


Do you want to configure FastEthernet0/1 Do you want to configure FastEthernet0/2 <output omitted> Do you want to configure FastEthernet0/24 interface? [yes]: no interface? [yes]: no interface? [yes]: no

18. Do not configure the device for clustered operations.


Would you like to enable as a cluster command switch? [yes/no]: no

19. Finally, the initial configuration dialog (setup) is complete. The switch will propose a configuration based on your input. The switch may display several pages of output. Pressing <Enter> will display one line at a time; pressing the <space bar> will move forward a page at a time.
The following configuration command script was created: hostname PxSW enable secret 5 $1$J4rX$BfjThJJPez5pNSXkOPdLG. enable password notused line vty 0 15 password switch no snmp-server ! L1-12 CCNA Lab Guide Global Knowledge Training LLC

Switch Startup and Initial Configuration


! interface Vlan1 no shutdown ip address 192.168.xx.10 255.255.255.0 ! interface FastEthernet0/1 ! interface FastEthernet0/2 ! interface FastEthernet0/3 ! interface FastEthernet0/4 ! interface FastEthernet0/5 ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 ! interface FastEthernet0/9 ! interface FastEthernet0/10 ! interface FastEthernet0/11 ! interface FastEthernet0/12 ! interface FastEthernet0/13 ! interface FastEthernet0/14 ! interface FastEthernet0/15 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 ! interface FastEthernet0/23 CCNA Lab Guide Global Knowledge Training LLC L1-13

Switch Startup and Initial Configuration


! interface FastEthernet0/24 ! end

20. If you are satisfied with your configuration, select 2 at the prompt to save the configuration to NVRAM and exit the initial configuration dialog.
[0] Go to the IOS command prompt without saving this config. [1] Return back to the setup without saving this config. [2] Save this configuration to nvram and exit. Enter your selection [2]: 2 Building configuration... [OK] 04:43:04: %LINK-3-UPDOWN: Interface Vlan1, changed state to up Use the enabled mode 'configure' command to modify this configuration. PxSW>

Add to the initial configuration


21. Enter privileged mode; enter the enable secret password (san-fran) when prompted. Enter global configuration mode.
PxSW>enable Password:san-fran PxSW#configure terminal Enter configuration commands, one per line. PxSW(config)#

End with CNTL/Z.

Important Remember that you can abbreviate commands; for example configure terminal is often shortened to config t.

22. Disable interfaces FastEthernet 0/11 and FastEthernet 0/12, to prevent interference from the core switch. (PxSW is connected to the core via FastEthernet 0/11 and FastEthernet 0/12; however, these interfaces are not used in the ICND1 labs.)
PxSW(config)#interface range fa0/11 12 PxSW(config-if-range)#shutdown PxSW(config-if-range)#exit
Note The interface range command is a quick way to put the same configuration on multiple interfaces.

L1-14

CCNA Lab Guide Global Knowledge Training LLC

Switch Startup and Initial Configuration

23. Use the ip default-gateway command to allow the switch to forward packets to another network. Use the address of PxR1s FastEthernet 0/0 interface as the default gateway: 192.168.xx.1. Note that this gateway will not work until PxR1 is configured.
PxSW(config)#ip default-gateway 192.168.xx.1 PxSW(config)#end

24. Finally, save the configuration to startup-config.


PxSW#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] PxSW#
Important When you are done with the labs for the day, you need to Log Off of www.remotelabs.com and then close the Tarantella connection. The icon for Tarantella is in system tray on the right hand side of the screen; right-click on the Tarantella icon and select exit to close Tarantella.

STOP! You have completed this lab, you may choose to explore the information that you entered in more detail before moving on to another lab. Good job!

CCNA Lab Guide Global Knowledge Training LLC

L1-15

Switch Startup and Initial Configuration

Completed Configuration
Your configuration should be similar to the example below. Notice that the enable secret password is saved in hashed form.
PxSW#show running-config Building configuration... Current configuration : 1320 bytes ! version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname PxSW ! enable secret 5 $1$J4rX$BfjThJJPez5pNSXkOPdLG. enable password notused ! ip subnet-zero ! ip ssh time-out 120 ip ssh authentication-retries 3 ! spanning-tree mode pvst no spanning-tree optimize bpdu transmission spanning-tree extend system-id ! ! ! ! interface FastEthernet0/1 ! interface FastEthernet0/2 ! interface FastEthernet0/3 ! interface FastEthernet0/4 ! interface FastEthernet0/5 ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 ! L1-16 CCNA Lab Guide Global Knowledge Training LLC

Switch Startup and Initial Configuration


interface FastEthernet0/9 ! interface FastEthernet0/10 ! interface FastEthernet0/11 shutdown ! interface FastEthernet0/12 shutdown ! interface FastEthernet0/13 ! interface FastEthernet0/14 ! interface FastEthernet0/15 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/23 ! interface FastEthernet0/24 ! interface Vlan1 ip address 192.168.xx.10 255.255.255.0 no ip route-cache ! ip default-gateway 192.168.xx.1 ip http server ! line con 0 line vty 0 4 password switch login line vty 5 15 password switch login ! ! end PxSW# CCNA Lab Guide Global Knowledge Training LLC L1-17

Switch Startup and Initial Configuration

L1-18

CCNA Lab Guide Global Knowledge Training LLC

Potrebbero piacerti anche