Вы находитесь на странице: 1из 4

Lab ID: 9.9K713A013.SCI1.

Scenario Lab: Conguring Telnet on Catalyst


2950 Switches
Objective
Build a lab network to learn the commands that will enable you to manage a switch using Telnet. Congure
Switch1 and Switch2 so that they can be managed remotely using Telnet.

Lab Topology
The Topology diagram below represents the NetMap in the Simulator.

Fa0/1 Fa0/11 Fa0/11 Fa0/1


Switch1 Switch2
HostA Fa0/12 Fa0/12 HostB

Command Summary
Command Description
congure terminal enters global conguration mode from privileged EXEC mode
enable enters privileged EXEC mode
exit exits one level in the menu structure
hostname host-name sets the device name
interface type number changes from global conguration mode to interface
conguration mode
ip address ip-address subnet-mask assigns an IP address to an interface
line vty 0 15 enters conguration mode for virtual terminal (Telnet) lines
login enables password checking
no shutdown enables an interface
password password species the password that is required for a user to log in
show running-cong displays the active conguration le
telnet ip-address starts the terminal emulation program from a PC, router, or
switch that permits you to access devices remotely over the
network

1 Boson NetSim Lab Manual


The IP addresses and subnet masks used in this lab are shown in the table below:

IP Addresses
Device Interface IP Address Subnet Mask
Switch1 VLAN1 192.168.100.101 255.255.255.0
Switch2 VLAN1 192.168.100.102 255.255.255.0
HostA - 192.168.100.1 255.255.255.0
HostB - 192.168.100.2 255.255.255.0

Lab Tasks
1. Congure Switch1 with a host name of Switch1.

2. On Switch1, use the default virtual local area network (VLAN) for management and congure the
appropriate IP address and subnet mask; refer to the IP Addresses table.

3. Enable Telnet access on Switch1; use cisco as the password.

4. Congure Switch2 with a host name of Switch2.

5. On Switch2, use the default VLAN for management and congure the appropriate IP address and
subnet mask; refer to the IP Addresses table.

6. Enable Telnet access on Switch2; use cisco as the password.

7. Verify that you are able to manage Switch1 from HostA by using Telnet; the Telnet session should be
successful. Close the connection.

8. Verify that you are able to manage Switch2 from HostB by using Telnet; the Telnet session should be
successful. Close the connection.

2 Boson NetSim Lab Manual


Lab Solutions
1. On Switch1, issue the following commands to congure a host name:

Switch>enable
Switch#configure terminal
Switch(config)#hostname Switch1

2. On Switch1, issue the following commands to congure the default VLAN:

Switch1(config)#interface vlan 1
Switch1(config-if)#ip address 192.168.100.101 255.255.255.0
Switch1(config-if)#no shutdown

3. On Switch1, issue the following commands to enable Telnet access:

Switch1(config-if)#line vty 0 15
Switch1(config-line)#login
Switch1(config-line)#password cisco

4. On Switch2, issue the following commands to congure a host name:

Switch>enable
Switch#configure terminal
Switch(config)#hostname Switch2

5. On Switch2, issue the following commands to congure the default VLAN:

Switch2(config)#interface vlan 1
Switch2(config-if)#ip address 192.168.100.102 255.255.255.0
Switch2(config-if)#no shutdown

6. On Switch2, issue the following commands to enable Telnet access:

Switch2(config-if)#line vty 0 15
Switch2(config-line)#login
Switch2(config-line)#password cisco

7. Issue the telnet 192.168.100.101 command to verify that you are able to manage Switch1 from
HostA; the Telnet session should be successful. Close the connection.

C:>telnet 192.168.100.101
Trying 192.168.100.101 ... Open
Password:cisco
Switch1>exit
[Connection to 192.168.100.101 closed by foreign host]

3 Boson NetSim Lab Manual


8. Issue the telnet 192.168.100.102 command to verify that you are able to manage Switch2 from
HostB; the Telnet session should be successful. Close the connection.

C:>telnet 192.168.100.102
Trying 192.168.100.102 ... Open
Password:cisco
Switch2>exit
[Connection to 192.168.100.102 closed by foreign host]

Sample Conguration Script


Switch1 Switch1 (continued)
Switch1#show running-config interface FastEthernet0/8
! switchport mode dynamic desirable
Version 12.3 !
service timestamps debug uptime interface FastEthernet0/9
service timestamps log uptime switchport mode dynamic desirable
no service password-encryption !
! interface FastEthernet0/10
hostname Switch1 switchport mode dynamic desirable
ip cef !
! interface FastEthernet0/11
ip subnet-zero switchport mode dynamic desirable
spanning-tree extend system-id !
! interface FastEthernet0/12
interface FastEthernet0/1 switchport mode dynamic desirable
switchport mode dynamic desirable !
! interface Vlan 1
interface FastEthernet0/2 ip address 192.168.100.101
switchport mode dynamic desirable 255.255.255.0
! no ip route-cache
interface FastEthernet0/3 !
switchport mode dynamic desirable ip classless
! no ip http server
interface FastEthernet0/4 !
switchport mode dynamic desirable line con 0
! line aux 0
interface FastEthernet0/5 line vty 0 15
switchport mode dynamic desirable login
! password cisco
interface FastEthernet0/6 !
switchport mode dynamic desirable no scheduler allocate
! end
interface FastEthernet0/7
switchport mode dynamic desirable
!

Copyright © 1996–2013 Boson Software, LLC. All rights reserved. NetSim software and documentation are protected by copyright law.

4 Boson NetSim Lab Manual

Вам также может понравиться