Lab 2.3.5 Configuring Basic Routing and Switching
Lab 2.3.5 Configuring Basic Routing and Switching
Lab 2.3.5 Configuring Basic Routing and Switching
VLAN 1 IP Address
Default Gateway
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 Two Windows-based PCs, at least one with a terminal emulation program At least one RJ45-to-DB-9 connector console cable Two straight-through Ethernet cables One crossover Ethernet cable Access to the PC command prompt Access to PC network TCP/IP configuration
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 1 of 12
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.
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 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 3 of 12
Where does this banner display? _______________________________________________________________________ h. Configure the console and virtual terminal lines to use a password and require it at login. R1(config)#line console 0 R1(config-line)#password cisco R1(config-line)#login R1(config-line)#line vty 0 4 R1(config-line)#password cisco R1(config-line)#login R1(config-line)#end
d. Create a static route to enable R1 to reach the network attached to the R2 Fa0/0 interface. Use the next hop interface on R2 as the path to this network. R1(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2 Why is this static route the only one required? _______________________________________________________________________ e. Return to privileged EXEC mode. f. Save the configuration.
Step 11: Remove Static Route and configure a routing protocol on router R1
a. Remove the static route to 192.168.3.0.
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 5 of 12
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.
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 6 of 12
If a host other than PC1 attempts to connect to Fa0/1, what will happen? _______________________________________________________________________ It is sometimes necessary to set the speed and duplex of a port to ensure that it operates in a particular mode. You can set the speed and duplex with the duplex and speed commands while in interface configuration mode. To force FastEthernet port 5 to operate at half duplex and 10 Mbps, issue the following commands: Switch>enable Switch#configure terminal Switch(config-if)#interface fastethernet 0/5 Switch(config-if)#speed 10
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 7 of 12
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 8 of 12
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 9 of 12
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 10 of 12
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 11 of 12
CCNA Discovery Introducing Routing and Switching in the Enterprise SDM Router Basic IOS Configuration to Bring Up SDM
If the startup-config is erased in an SDM router, SDM will no longer come up by default when the router is restarted. It will be necessary to build a basic config as follows. Further details regarding the setup and use of SDM are can be found in the SDM Quick Start Guide: http://www.cisco.com/en/US/products/sw/secursw/ps5318/products_quick_start09186a0080511c89.html#wp44788 a. Set the router Fa0/0 IP address. This is the interface that a PC will connect to using a browser to bring up SDM. The PC IP address should be set to 10.10.10.2 255.255.255.248. NOTE: An SDM router other than the 1841 may require connection to a different port to access SDM. 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 c. Create a user account with privilege level 15 (enable privileges). Router(config)#username <username> privilege 15 password 0 <password> Replace <username> and <password> with the username and password that you want to configure.
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 Router(config-line)#transport input telnet ssh Router(config-line)#exit
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 12 of 12