Documente Academic
Documente Profesional
Documente Cultură
Instructor Note: Red font color or Gray highlights indicate text that appears in the instructor copy only.
Topology
Addressing Table
Device R1 Interface G0/0 G0/1 S1 PC-A PC-B VLAN 1 NIC NIC IP Address 192.168.0.1 192.168.1.1 N/A 192.168.1.3 192.168.0.3 Subnet Mask 255.255.255.0 255.255.255.0 N/A 255.255.255.0 255.255.255.0 Default Gateway N/A N/A N/A 192.168.1.1 192.168.0.1
Objectives
Part 1: Set Up the Topology and Initialize Devices Set up equipment to match the network topology. Initialize and restart the router and switch. Part 2: Configure Devices and Verify Connectivity Assign static IP information to the PC interfaces. Configure the router. Verify network connectivity. Part 3: Display Device Information Retrieve hardware and software information from the network devices. Interpret the output from the routing table. Display interface information on the router. Display a summary list of the interfaces on the router and switch.
Background / Scenario
This is a comprehensive lab to review previously covered IOS commands. In this lab, you will cable the equipment as shown in the topology diagram. You will then configure the devices to match the addressing table. After the configurations have been saved, you will verify your configurations by testing for network connectivity. After the devices have been configured and network connectivity has been verified, you will use IOS commands to retrieve information from the devices to answer questions about your network equipment.
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 1 of 17
Lab - Building a Switch and Router Network This lab provides minimal assistance with the actual commands necessary to configure the router. However, the required commands are provided in Appendix A. Test your knowledge by trying to configure the devices without referring to the appendix. Note: The routers used with CCNA hands-on labs are Cisco 1941 Integrated Services Routers (ISRs) with Cisco IOS Release 15.2(4)M3 (universalk9 image). The switches used are Cisco Catalyst 2960s with Cisco IOS Release 15.0(2) (lanbasek9 image). Other routers, switches, and Cisco IOS versions can be used. Depending on the model and Cisco IOS version, the commands available and output produced might vary from what is shown in the labs. Refer to the Router Interface Summary Table at the end of this lab for the correct interface identifiers. Note: Ensure that the routers and switches have been erased and have no startup configurations. Refer to Appendix B for the procedure to initialize and reload a router and switch.
Required Resources
1 Router (Cisco 1941 with Cisco IOS Release 15.2(4)M3 universal image or comparable) 1 Switch (Cisco 2960 with Cisco IOS Release 15.0(2) lanbasek9 image or comparable) 2 PCs (Windows 7, Vista, or XP with terminal emulation program, such as Tera Term) Console cables to configure the Cisco IOS devices via the console ports Ethernet cables as shown in the topology Note: The Gigabit Ethernet interfaces on Cisco 1941 routers are autosensing and an Ethernet straightthrough cable may be used between the router and PC-B. If using another model Cisco router, it may be necessary to use an Ethernet crossover cable.
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 2 of 17
Lab - Building a Switch and Router Network ____________________________________________________________________________________ The router interfaces (default gateways) have not been configured yet so Layer 3 traffic is not being routed between subnets.
d. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered commands as though they were host names. e. Assign class as the privileged EXEC encrypted password. f. Assign cisco as the console password and enable login.
g. Assign cisco as the VTY password and enable login. h. Encrypt the clear text passwords. i. j. k. l. Create a banner that warns anyone accessing the device that unauthorized access is prohibited. Configure and activate both interfaces on the router. Configure an interface description for each interface indicating which device is connected to it. Save the running configuration to the startup configuration file.
m. Set the clock on the router. Note: Use the question mark (?) to help with the correct sequence of parameters needed to execute this command. n. Ping PC-B from a command prompt window on PC-A. Were the pings successful? Why? ____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ Yes. The router is routing the ping traffic across the two subnets. The default settings for the 2960 switch will automatically turn up the interfaces that are connected to devices.
Step 1: Retrieve hardware and software information from the network devices.
a. Use the show version command to answer the following questions about the router. R1# show version
Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.2(4)M3, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Thu 26-Jul-12 19:34 by prod_rel_team
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 3 of 17
Technology Package License Information for Module:'c1900' ----------------------------------------------------------------Technology Technology-package Technology-package Current Type Next reboot
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 4 of 17
What is the name of the IOS image that the router is running? ____________________________________________________________________________________ Image version may vary, but answers should be something like c1900-universalk9-mz.SPA.152-4.M3.bin. How much DRAM memory does the router have? ____________________________________________________________________________________ ____________________________________________________________________________________ Answers may vary, but the default DRAM memory configuration on a 1941 router is 512MB or 524,288K bytes. The total can be calculated by adding the two DRAM numbers together from the output of the show version command: Cisco CISCO1941/K9 (revision 1.0) with 446464K/77824K bytes of memory. How much NVRAM memory does the router have? ____________________________________________________________________________________ Answers may vary, but the output from the show version on 1941 router is: 255K bytes of non-volatile configuration memory. How much Flash memory does the router have? ____________________________________________________________________________________ Answers may vary, but the default output from the show version command on the 1941 router is 250880K bytes of ATA System CompactFlash 0 (Read/Write). b. Use the show version command to answer the following questions about the switch. Switch# show version
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(2)SE, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Sat 28-Jul-12 00:29 by prod_rel_team ROM: Bootstrap program is C2960 boot loader BOOTLDR: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(53r)SEY3, RELEASE SOFTWARE (fc1) S1 uptime is 1 hour, 2 minutes System returned to ROM by power-on System image file is "flash:/c2960-lanbasek9-mz.150-2.SE.bin"
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
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 5 of 17
SW Version ---------15.0(2)SE
SW Image ---------C2960-LANBASEK9-M
What is the name of the IOS image that the switch is running? ____________________________________________________________________________________ Image version may vary, but answers should be something like c2960-lanbasek9-mz.150-2.SE.bin. How much dynamic random access memory (DRAM) does the switch have?
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 6 of 17
Lab - Building a Switch and Router Network ____________________________________________________________________________________ Answers may vary, but the default DRAM memory configuration on a 2960-24TT-L switch is 65536K of memory. How much nonvolatile random-access memory (NVRAM) does the switch have? ____________________________________________________________________________________ Answers may vary, but the default non-volatile memory configuration on a 2960-24TT-L switch is 64K bytes. What is the model number of the switch? ____________________________________________________________________________________ Answers may vary, but the answer should appear in this form: WS-C2960-24TT-L.
C L C L
What code is used in the routing table to indicate a directly connected network? _____ The C designates a directly connected subnet. An L designates a local interface. Both answers are correct. How many route entries are coded with a C code in the routing table? _________ 2 What interface types are associated to the C coded routes? _______________________________________________________________________________________ Answers may vary depending of router type, but on the 1941 the correct answer is G0/0 and G0/1.
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 7 of 17
What is the operational status of the G0/1 interface? _______________________________________________________________________________________ GigabitEthernet0/1 is up, line protocol is up What is the Media Access Control (MAC) address of the G0/1 interface? _______________________________________________________________________________________ Answers will vary but will appear in the form of: xxxx.xxxx.xxxx, where each x will be replaced with a hexadecimal number. How is the Internet address displayed in this command? _______________________________________________________________________________________ Internet address is 192.168.1.1/24.
Step 4: Display a summary list of the interfaces on the router and switch.
There are several commands that can be used to verify an interface configuration. One of the most useful of these is the show ip interface brief command. The command output displays a summary list of the interfaces on the device and provides immediate feedback to the status of each interface. a. Enter the show ip interface brief command on the router. R1# show ip interface brief
Interface IP-Address Embedded-Service-Engine0/0 unassigned OK? Method Status Protocol YES unset administratively down down
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 8 of 17
b. Enter the show ip interface brief command on the switch. Switch# show ip interface brief
Interface Vlan1 FastEthernet0/1 FastEthernet0/2 FastEthernet0/3 FastEthernet0/4 FastEthernet0/5 FastEthernet0/6 FastEthernet0/7 FastEthernet0/8 FastEthernet0/9 FastEthernet0/10 FastEthernet0/11 FastEthernet0/12 FastEthernet0/13 FastEthernet0/14 FastEthernet0/15 FastEthernet0/16 FastEthernet0/17 FastEthernet0/18 FastEthernet0/19 FastEthernet0/20 FastEthernet0/21 FastEthernet0/22 FastEthernet0/23 FastEthernet0/24 GigabitEthernet0/1 GigabitEthernet0/2 Switch# IP-Address unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned unassigned OK? YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES Method manual unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset unset Status up down down down down up up down down down down down down down down down down down down down down down down down down down down Protocol up down down down down up up down down down down down down down down down down down down down down down down down down down down
Reflection
1. If the G0/1 interface showed administratively down, what interface configuration command would you use to turn the interface up? _______________________________________________________________________________________ R1(config-if)# no shut 2. What would happen if you had incorrectly configured interface G0/1 on the router with an IP address of 192.168.1.2? _______________________________________________________________________________________ _______________________________________________________________________________________
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 9 of 17
Lab - Building a Switch and Router Network PC-A would not be able to ping PC-B. This is because PC-B is on a different network than PC-A which requires the default-gateway router to route these packets. PC-A is configured to use the IP address of 192.168.1.1 for the default-gateway router, but this address is not assigned to any device on the LAN. Any packets that need to be sent to the default-gateway for routing will never reach their destination.
Note: To find out how the router is configured, look at the interfaces to identify the router type and how many interfaces the router has. There is no way to effectively list all the combinations of configurations for each router class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device. The table does not include any other type of interface, even though a specific router may contain one. An example of this might be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be used in Cisco IOS commands to represent the interface.
b. Configure the IP address, subnet mask, and default gateway settings on PC-B.
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 10 of 17
c.
Router(config)# c. Assign a device name to the router. Router(config)# hostname R1 d. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered commands as though they were host names. R1(config)# no ip domain-lookup e. Assign class as the privileged EXEC encrypted password. R1(config)# enable secret class f. Assign cisco as the console password and enable login. R1(config)# line con 0 R1(config-line)# password cisco R1(config-line)# login
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 11 of 17
Lab - Building a Switch and Router Network R1(config-line)# exit R1(config)# g. Assign cisco as the vty password and enable login. R1(config)# line R1(config-line)# R1(config-line)# R1(config-line)# R1(config)# vty 0 4 password cisco login exit
h. Encrypt the clear text passwords. R1(config)# service password-encryption i. Create a banner that warns anyone accessing the device that unauthorized access is prohibited. R1(config)# banner motd # Enter TEXT message. End with the character '#'. Unauthorized access prohibited! # R1(config)# j. Configure and activate both interfaces on the router. R1(config)# int g0/0 R1(config-if)# description Connection to PC-B. R1(config-if)# ip address 192.168.0.1 255.255.255.0 R1(config-if)# no shut R1(config-if)#
*Nov 29 23:49:44.195: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to down *Nov 29 23:49:47.863: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up *Nov 29 23:49:48.863: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
R1(config-if)# int g0/1 R1(config-if)# description Connection to S1. R1(config-if)# ip address 192.168.1.1 255.255.255.0 R1(config-if)# no shut R1(config-if)# exit R1(config)# exit
*Nov 29 23:50:15.283: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to down *Nov 29 23:50:18.863: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to up *Nov 29 23:50:19.863: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
R1# k. Save the running configuration to the startup file. R1# copy running-config startup-config
Destination filename [startup-config]? Building configuration...
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 12 of 17
R1# l. Set the clock on the router. R1# clock set 17:00:00 29 Nov 2012 R1#
*Nov 29 17:00:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 23:55:46 UTC Thu Nov 29 2012 to 17:00:00 UTC Thu Nov 29 2012, configured from console by console.
R1# Note: Use the question mark (?) to help determine the correct sequence of the parameters needed to execute this command. m. Ping PC-B from a command prompt window on PC-A.
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 13 of 17
Lab - Building a Switch and Router Network Proceed with reload? [confirm]
*Nov 29 18:28:09.923: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.
Note: You may receive a prompt to save the running configuration prior to reloading the router. Respond by typing no and press Enter. System configuration has been modified. Save? [yes/no]: no
Step 2: Determine if there have been any virtual local-area networks (VLANs) created.
Use the show flash command to determine if any VLANs have been created on the switch. Switch# show flash
Directory of flash:/ 2 3 4 5 6 -rwx -rwx -rwx -rwx -rwx 1919 1632 13336 11607161 616 Mar Mar Mar Mar Mar 1 1 1 1 1 1993 1993 1993 1993 1993 00:06:33 00:06:33 00:06:33 02:37:06 00:07:13 +00:00 +00:00 +00:00 +00:00 +00:00 private-config.text config.text multiple-fs c2960-lanbasek9-mz.150-2.SE.bin vlan.dat
You will be prompted to verify the file name. At this point, you can change the file name or just press Enter if you have entered the name correctly.
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 14 of 17
Lab - Building a Switch and Router Network b. When you are prompted to delete this file, press Enter to confirm the deletion. (Pressing any other key will abort the deletion.)
Delete flash:/vlan.dat? [confirm] Switch#
Note: You may receive a prompt to save the running configuration prior to reloading the switch. Type no and press Enter. System configuration has been modified. Save? [yes/no]: no
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 15 of 17
Lab - Building a Switch and Router Network ! ! enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2 ! no aaa new-model memory-size iomem 15 ! ! ! ! ! ! ! no ip domain lookup ip cef no ipv6 cef multilink bundle-name authenticated ! ! ! ! ! ! ! ! ! ! ! interface Embedded-Service-Engine0/0 no ip address shutdown ! interface GigabitEthernet0/0 description Connection to PC-B. ip address 192.168.0.1 255.255.255.0 duplex auto speed auto ! interface GigabitEthernet0/1 description Connection to S1. ip address 192.168.1.1 255.255.255.0 duplex auto speed auto ! interface Serial0/0/0 no ip address shutdown clock rate 2000000 ! interface Serial0/0/1
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 16 of 17
Lab - Building a Switch and Router Network no ip address shutdown ! ip forward-protocol nd ! no ip http server no ip http secure-server ! ! ! ! ! control-plane ! ! banner motd ^C Unauthorized access prohibited! ^C ! line con 0 password 7 13061E010803 login line aux 0 line 2 no activation-character no exec transport preferred none transport input all transport output pad telnet rlogin lapb-ta mop udptn v120 ssh stopbits 1 line vty 0 4 password 7 070C285F4D06 login transport input all ! scheduler allocate 20000 1000 ! end
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 17 of 17