ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Comando Basicos De Un Switch


Enviado por   •  12 de Marzo de 2014  •  5.467 Palabras (22 Páginas)  •  430 Visitas

Página 1 de 22

Comandos Básicos de Switch Catalyst 2950

Lab 6.14: Connecting to the 2950 Switch and Setting Passwords

This lab will have you connect to a 2950 switch, enter global configuration mode and then set the passwords.

1. Open up a 2950 switch from the RouterSim Network Visualizer screen.

2. Press enter to connect to the console

Switch>

3. For the usermode of the switch, you can use the help screen just like a router.

Switch>?

Exec commands:

<1-99> Session number to resume

access-enable Create a temporary Access-List entry

clear Reset functions

connect Open a terminal connection

disable Turn off privileged commands

disconnect Disconnect an existing network connection

enable Turn on privileged commands

exit Exit from the EXEC

help Description of the interactive help system

lock Lock the terminal

login Log in as a particular user

logout Exit from the EXEC

name-connection Name an existing network connection

ping Send echo messages

rcommand Run command on remote switch

resume Resume an active network connection

show Show running system information

systat Display information about terminal lines

telnet Open a telnet connection

terminal Set terminal line parameters

traceroute Trace route to destination

tunnel Open a tunnel connection

--More--

4. The first thing that you should configure on a switch is the passwords. You don’t want unauthorized users connecting to the switch. You can set both the user mode and privileged mode passwords, just like a router. Enter enable mode by using the enable command and then enter global configuration mode by using the config t command. The switch following output shows an example of how to get into enable mode, and then into global configuration mode.

Switch>enable

Switch#config t

Enter configuration commands, one per line. End with CTRL/Z

Switch(config)#

5. Once you are in global configuration mode, you can set the user mode and enable mode passwords by using the enable password and enable secret command. The switches output below shows the configuration of both the user mode and enable mode passwords.

Switch(config)#enable password ?

0 Specifies an UNENCRYPTED password will follow

7 Specifies a HIDDEN password will follow

LINE The UNENCRYPTED (cleartext) 'enable' password

level Set exec level password

Switch(config)#enable password todd

Switch(config)#enable secret cisco

Switch(config)

6. Remember, if you set your enable secret, the enable password is superceded and not used, just like in a router.

7. In addition to the enable password and enable secret, the 2950 allows you to set a console and telnet password as well using the line commands, just like in a router.

Switch(config)line ?

<0-16> First Line number

console Primary terminal line

vty Virtual terminal

Switch(config)#line console 0

Switch(config-line)# password console

Switch(config-line)#login

Switch(config-line)#line vty ?

% Unrecognized command

8. Remember that just like in a router, you cannot get help for a line command from within line configuration mode. Type exit to go back one step.

Switch(config-line)#exit

Switch(config)#line vty ?

<0-15> First Line number

Switch(config)#line vty 0 15

Switch(config-line)# password telnet

Switch(config-line)#login

Switch(config-line)#cntrl+z

Switch#

9. You can use show running-config (show run for short) to see the current configuration on the switch.

Current configuration : 997 bytes

!

version 12.1

no service pad

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname Switch

!

enable secret 5 $1$yNgO$9uU0Z6NG1ib4vlt05bmMW1

enable password todd

!

ip subnet-zero

!

spanning-tree extend system-id

!

!

interface FastEthernet0/1

no ip address

!

interface FastEthernet0/2

no ip address

--More--

Notice the enable mode password is not encrypted by default, but the enable secret is. This is the same password configuration technique that you will find on a router.

Lab 6.15: Setting the Hostname on a 2950 Switch

The hostnames on a switch, as well as on a router, is only locally significant. This means that it doesn’t have any function on the network or used for name resolution whatsoever. However, it is helpful to set a hostname on a switch so that you can identify the switch when connecting to it. A good rule of thumb is to name the switch after the location it is serving.

1. The 2950 switch command to set the hostname is exactly like any router: you use the hostname command. Remember, it is one word. From global configuration mode, type the command hostname hostname.

Switch>enable

Enter password: ****

Switch#config t

Enter configuration commands, one per line. End with CTRL/Z

Switch(config)#hostname Todd2950A

Todd2950A(config)#exit

Todd2950A#

Notice that as soon as I pressed enter, the hostname of the switch appeared. Remember that from global configuration mode, which you enter by using the config t command, it changes the running-config. Any changes you make in this mode take effect immediately.

Lab 6.16: Configuring IP Address Information on a 2950 Switch

You do not have to set any IP configuration on the switch to make it work. You can just plug in devices and they should start working, just like they would on a hub. The reason you would set the IP address information on the switch is so you can either manage the switch via Telnet or other management software, or you wanted to configure

...

Descargar como (para miembros actualizados) txt (29 Kb)
Leer 21 páginas más »
Disponible sólo en Clubensayos.com