Lab 5.5.4 Configuring The Cisco 2960 Switch: CCNA Discovery Working at A Small-to-Medium Business or ISP
Lab 5.5.4 Configuring The Cisco 2960 Switch: CCNA Discovery Working at A Small-to-Medium Business or ISP
Lab 5.5.4 Configuring The Cisco 2960 Switch: CCNA Discovery Working at A Small-to-Medium Business or ISP
Device S1 R1 H1 H2 H3
Objectives
Configure initial switch global settings. Configure host PCs and attach them to the switch. Configure a router and attach it to the switch. Configure a switch management VLAN IP address. Verify network connectivity. Configure basic port security. Configure port duplex and speed settings.
Page 1 of 11
All contents are Copyright 19922008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Required Resources
The following resources are required: Cisco 2960 switch or other comparable switch Router with Ethernet interface to connect to switch Three Windows-based PCs, one with a terminal emulation program RJ-45-to-DB-9 connector console cable Three straight-through Ethernet cables Access to the PC command prompt Access to a PC network TCP/IP configuration
Note: Perform the instructions in the section Erasing and Reloading the Switch at the end of this lab before continuing.
Step 2: Connect the router to the switch and configure the router.
Note: If necessary, see Lab 5.3.5, Configuring Basic Router Settings with the Cisco IOS CLI, for instructions on setting the host name, passwords, and interface addresses. a. Connect the router to switch port Fa0/5. b. Configure the router with the host name CustomerRouter. c. Configure the console access and password, vty access and password, and enable secret password.
All contents are Copyright 19922008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 2 of 11
d. Are the pings successful? _________ e. If the ping is not successful, verify the connections and configurations again. Check to ensure that all cables are correct and that connections are seated. Check the host, switch, and router configurations. f. Open a command prompt on host H1, and telnet the IP address assigned to switch management VLAN 1.
g. Enter the vty password configured in Step 3. What is the result? __________________________ At the switch prompt, issue the show version command. CustomerSwitch>show version Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(0.0.16)FX, CISCO DEVELOPMENT TEST VERSION Copyright (c) 1986-2005 by Cisco Systems, Inc. Compiled Tue 17-May-05 01:43 by yenanh ROM: Bootstrap program is C2960 boot loader BOOTLDR: C2960 Boot Loader (C2960-HBOOT-M), Version 12.2 [lqianflo_pilsner 100] Switch uptime is 3 days, 20 hours, 8 minutes System returned to ROM by power-on System image file is "flash:c2960-lanbase-mz.122-0.0.16.FX.bin" cisco WS-C2960-24TC-L (PowerPC405) processor with 61440K/4088K bytes of memory. Processor board ID FHH0916001J Last reset from power-on Target IOS Version 12.2(25)FX
All contents are Copyright 19922008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 11
Configuration register is 0xF h. What is the Cisco IOS version of this switch? ___________________ i. Type quit at the switch command prompt to terminate the Telnet session.
Step 7: Determine which MAC addresses that the switch has learned.
a. From the Windows command prompt, get the Layer 2 addresses of the PC network interface card for each host by using the ipconfig /all command. Host H1: _______________________________________________ Host H2: _______________________________________________ Host H3: _______________________________________________ b. Determine which MAC addresses the switch has learned by using the show mac-address-table command at the privileged exec mode prompt. CustomerSwitch#show mac-address-table Mac Address Table ------------------------------------------Vlan Mac Address Type Ports ------------------------All 000b.be7f.ed40 STATIC CPU All 0100.0ccc.cccc STATIC CPU All 0100.0ccc.cccd STATIC CPU All 0100.0cdd.dddd STATIC CPU 1 000b.db04.a5cd DYNAMIC Fa0/5 1 000c.3076.8380 DYNAMIC Fa0/11 1 000d.1496.36ad DYNAMIC Fa0/18 Total Mac Addresses for this criterion: 7 c. How many dynamic addresses are there? ____________________________
d. Do the MAC addresses match the host MAC addresses? _______________ e. Review the options that the mac-address-table command has by using the ? help feature. CustomerSwitch(config)#mac-address-table ? address address keyword aging-time aging-time keyword count count keyword
All contents are Copyright 19922008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 5 of 11
Set up a static MAC address on the Fast Ethernet interface 0/18. Use the address that was recorded for H1 in Step 7. The MAC address XXXX.YYYY.ZZZZ is used in the example statement only. CustomerSwitch(config)#mac-address-table static XXXX.YYYY.ZZZZ interface fastethernet 0/18 vlan 1
g. Verify the MAC address table entries. CustomerSwitch#show mac-address-table Mac Address Table ------------------------------------------Vlan ---All All All All 1 1 1 Mac Address ----------000b.be7f.ed40 0100.0ccc.cccc 0100.0ccc.cccd 0100.0cdd.dddd 000b.db04.a5cd 000c.3076.8380 000d.1496.36ad Type -------STATIC STATIC STATIC STATIC DYNAMIC DYNAMIC STATIC Ports ----CPU CPU CPU CPU Fa0/5 Fa0/11 Fa0/18
h. How many total MAC addresses are there now? ________________________ i. What type are they? ____________________________________________
All contents are Copyright 19922008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 6 of 11
Note: Some output is omitted in the following display. CustomerSwitch#show running-config Building configuration... Current configuration : 1452 bytes version 12.2 hostname CustomerSwitch ! interface FastEthernet0/1 ! interface FastEthernet0/2 ! interface FastEthernet0/3 ! interface FastEthernet0/18 switchport mode access switchport port-security switchport port-security mac-address sticky ! interface FastEthernet0/5 ! mac-address-table static 000b.db04.a5cd vlan 1 interface FastEthernet0/18 ! end g. Are there statements that directly reflect the security implementation in the listing of the running configuration? ____________________________________________________________
d. View the configuration information for just Fast Ethernet port 0/18. CustomerSwitch#show interface fastethernet 0/18 e. What is the state of this interface? Fast Ethernet 0/18 is ________________ and the line protocol is _____________
All contents are Copyright 19922008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 7 of 11
d. In the Advanced tab, under the Property section, click on Network Address or Locally Administered Address. e. On the right side, under Value, type in the new MAC address. Use the original MAC address, but change only the last value. For example, if the original MAC is 000C29C1510A, change it to 000C29C1510B. f. Type c:\>ipconfig /all to verify the changes.
g. From H2, ping the switch VLAN 1 address at 192.168.1.5. c:\>ping 192.168.1.5 h. Record any observations from the PC and switch terminal session. ________________________________________________________________________________
01:11:12: %PM-4-ERR_DISABLE: psecure-violation error detected on Fa0/18, putting Fa0/18 in err-disable state 01:11:12: %PORT_SECURITY-2-PSECURE_VIOLATION: Security violation occurred, cause d by MAC address 000c.3076.8380 on port FastEthernet0/18. 01:11:13: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/18, chang ed state to down 01:11:14: %LINK-3-UPDOWN: Interface FastEthernet0/18, changed state to down
i.
View the configuration information for just Fast Ethernet port 0/18. CustomerSwitch#show interface fastethernet 0/18
j.
What is the state of this interface? Fast Ethernet 0/18 is ________________, and the line protocol is _____________.
Step 11: Set speed and duplex options for the ports.
a. Switch port settings default to auto-duplex and auto-speed. If a computer with a 100 Mbps NIC is attached to the port, it automatically goes into full-duplex 100 Mbps mode. If a hub is attached to the switch port, it normally goes into half-duplex 10 Mbps mode.
All contents are Copyright 19922008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 8 of 11
All contents are Copyright 19922008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 9 of 11
CCNA Discovery Working at a Small-to-Medium Business or ISP Erasing and Reloading the Switch
For the majority of the labs in CCNA Discovery, it is necessary to start with an unconfigured switch. Using a switch with an existing configuration may produce unpredictable results. The following instructions prepare the switch prior to performing the lab so that previous configuration options do not interfere. Instructions are provided for the 2900 and 2950 series switches. a. Enter privileged EXEC mode by typing enable. If prompted for a password, enter class (if that does not work, ask the instructor). Switch>enable b. Remove the VLAN database information file. Switch#delete flash:vlan.dat Delete filename [vlan.dat]?[Enter] Delete flash:vlan.dat? [confirm] [Enter] If there was no VLAN file, this message is displayed: %Error deleting flash:vlan.dat (No such file or directory) c. Remove the switch startup configuration file from NVRAM. Switch#erase startup-config The responding line prompt is: Erasing the nvram filesystem will remove all files! Continue? [confirm] Press Enter to confirm. The response should be: Erase of nvram: complete d. Check that the VLAN information was deleted in Step b by using the show vlan command. If the VLAN information was deleted, go to Step e and restart the switch using the reload command. If previous VLAN configuration information (other than the default management VLAN 1) is still present, you must power cycle the switch (hardware restart) instead of issuing the reload command. To power cycle the switch, remove the power cord from the back of the switch or unplug it, and then plug it back in. e. Restart the software using the reload command in privileged EXEC mode. Note: This step is not necessary if the switch was restarted using the power cycle method. 1) At the privileged EXEC mode, enter the reload command: Switch(config)#reload The responding line prompt is: System configuration has been modified. Save? [yes/no]: Type n, and then press Enter. The responding line prompt is: Proceed with reload? [confirm] [Enter] The first line of the response is: Reload requested by console. After the switch has reloaded, the line prompt is: Would you like to enter the initial configuration dialog? [yes/no]:
All contents are Copyright 19922008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 10 of 11
All contents are Copyright 19922008 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 11 of 11