Switching Lab
Switching Lab
Host
Device IP Address VLAN 1 Subnet IP Address Subnet
Name /
Designation Fa0/0 IP Address Mask S0/0/0 Mask
Interface
Router1 R1 192.168.1.1 255.255.255.0 192.168.2.1 255.255.255.0
Router2 R2 192.168.3.1 255.255.255.0 192.168.2.2 255.255.255.0
Switch Switch1 192.168.1.5 255.255.255.0
Host1 Host1 192.168.1.10 255.255.255.0
Host2 Host2 192.168.3.10 255.255.255.0
Objectives
Configure static routes.
Configure a routing protocol (RIP v2).
Configure a switch management VLAN IP address.
Test and verify configurations.
Background / Preparation
This lab reviews the primary IOS commands used to manage, configure, and
monitor devices in a multirouter network. In this lab, you will configure two routers
using static routes and then using a routing protocol; configure a switch, including
access to management functions; and configure two hosts. You will make and verify
configuration changes on the switch. You will also verify network configurations
and connectivity.
The following resources are required:
Cisco 2960 switch or other comparable switch
Two 1841 or other compatible Cisco routers with Fast Ethernet interfaces to
connect to switch and host
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 1 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
NOTE: Go to the “Erasing and Reloading the Switch” instructions at the end of this
lab. Perform those steps on the switch in this lab assignment before continuing.
NOTE: Go to the “Erasing and Reloading the Router” instructions at the end of this
lab. Perform those steps on all routers in this lab assignment before continuing.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 2 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
Switch1(config-line)#password cisco
Switch1(config-line)#login
Switch1(config-line)#end
e. Exit from the console session and log in again.
Which password was required?
_______________________________________________________________
________
Which password is required to access privilege EXEC mode and why?
_______________________________________________________________
________
_______________________________________________________________
________
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 3 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
NOTE: When you use the banner motd command, you must issue a delimited
character, a character to let the router know is the beginning (or ending) part of
the message. Examples of delimiting characters include +, @, %, or $. Once you
enter the beginning delimited character, you press Enter and type the lines you
want to appear when someone accesses a network device. Press Enter after each
line. When finished, type the same delimiting character.
R1(config)#banner motd +
**************************************************
Authorized Users Only!
**************************************************
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
+
R1(config)#
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 5 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 6 of 17
Step 8: Perform basic configuration of router R2
a. Repeat Step 5, a through h, making the hostname R2.
b. Configure the Serial 0/0/0 interface with the IP address 192.168.2.2/24.
R2(config)#interface serial 0/0/0
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#no shutdown
c. Configure the FastEthernet 0/0 interface with the IP address 192.168.3.1/24.
R2(config-if)#interface fastethernet 0/0
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#no shutdown
d. Create a static route to enable R2 to reach the network attached to the R1 Fa0/0
interface. Use the next hop interface on R1 as the path to this network.
R2(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1
e. Return to privileged EXEC mode.
f. Save the configuration.
g. Shut down R2.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 7 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
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.
d. Verify that the routing tables have routes to all configured networks by using
the show ip route command.
What does the “S” indicate?
________________________________________________________________
_______
e. Verify the router interface configurations using the show ip interface brief
command.
What should the output indicate for correctly configured, active interfaces?
________________________________________________________________
_______
What should the output indicate for any interface that has not been configured?
________________________________________________________________
_______
f. View devices from R1’s terminal session using the show cdp neighbors
command.
If an additional switch is added between PC2 and R2, would that switch appear
in this command output? ______ Why or why not?
_______________________________________________
Step 11: Remove Static Route and configure a routing protocol on router R1
a. Remove the static route to 192.168.3.0.
R1(config)#no ip route 192.168.3.0 255.255.255.0 192.168.2.2
b. Enable RIP v2 routing and advertise the participating networks.
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0
c. Return to privileged EXEC mode.
d. Save the configuration.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 8 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
Step 12: Remove Static Route and configure a routing protocol on router R2
a. Remove the static route to 192.168.1.0.
R2(config)#no ip route 192.168.1.0 255.255.255.0 192.168.2.1
b. Enable RIP v2 routing and advertise the participating networks.
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 192.168.2.0
R2(config-router)#network 192.168.3.0
c. Return to privileged EXEC mode.
d. Save the configuration.
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 9 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 10 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
f. To allow the switch port FastEthernet 0/1 to accept only one device, configure
port security as follows:
Switch1(config)#interface fastethernet 0/1
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport port-security
Switch1(config-if)#switchport port-security mac-address sticky
Switch1(config-if)#end
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 12 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 13 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
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]:
2) 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]:
3) Type n, and then press Enter.
The responding line prompt is:
Press RETURN to get started! [Enter]
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 14 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 15 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
Router(config)#interface Fa0/0
Router(config-if)#ip address 10.10.10.1 255.255.255.248
Router(config-if)#no shutdown
b. Enable the router's HTTP/HTTPS server, using the following Cisco IOS
commands:
Router(config)#ip http server
Router(config)#ip http secure-server
Router(config)#ip http authentication local
d. Configure SSH and Telnet for local login and privilege level 15.
Router(config)#line vty 0 4
Router(config-line)#privilege level 15
Router(config-line)#login local
Router(config-line)#transport input telnet
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 16 of 17
CCNA Discovery
Introducing Routing and Switching in the Enterprise
All contents are Copyright © 1992–2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 17 of 17