TrabalhosGratuitos.com - Trabalhos, Monografias, Artigos, Exames, Resumos de livros, Dissertações
Pesquisar

Guia Para Configuração De Roteadores Cisco

Trabalho Escolar: Guia Para Configuração De Roteadores Cisco. Pesquise 861.000+ trabalhos acadêmicos

Por:   •  27/4/2014  •  660 Palavras (3 Páginas)  •  922 Visualizações

Página 1 de 3

Comandos Básicos Cisco - Switches

Seguem-se alguns comandos básicos, úteis na configuração de um switch Cisco:

Desligar as portas 11 e 12:

conf t

int FastEthernet 0/11

shutdown

exit

int FastEthernet 0/12

shutdown

exit

exit

A VLAN "1" está criada por omissão. Para criar uma VLAN "2":

conf t

vlan 2

name NOME_DA_VLAN

state active

Associar a VLAN 1 à porta 1:

interface FastEthernet 0/1

description PORTA_1

switchport mode access

switchport access vlan 1

Associar a VLAN 1 untagged e VLAN 2 tagged à porta 1:

interface FastEthernet 0/1

description PORTA_1

switchport trunk native vlan 1

switchport trunk allowed vlan 1,5

switchport mode trunk

Se a porta anterior desempenhar a função de gateway, acrescentar:

no ip address

Para que a porta anterior só permita o tráfego de determinados endereços MAC:

switchport port-security

switchport port-security violation protect

switchport port-security mac-address 0012.3456.7890

Desbloquear porta desactivada pelo port-security:

conf t

interface FastEthernet 0/1

shutdown

no shutdown

end

Limpar a tabela de MACs:

clear mac-address-table dynamic interface FastEthernet 0/1

Outros comandos:

show vlan brief

show mac address-table static interface FastEthernet 0/1

show port-security

show port-security address

show port-security interface FastEthernet 0/1

Comandos Básicos de Switches Cisco

Configurando um nome

Switch>enable

Switch#configure terminal

Switch(config)#hostname ti-redes

ti-redes#

Configurando senha enable

Switch>enable

Switch#configure terminal

Switch(config)#enable password ti-redes

Configurando senha enable secret

Router>enable

Router#configure terminal

Router(config)#enable secret ti-redes

Configurando senha da console

Router>enable

Router#configure terminal

Router(config)#line console 0

Router(config-line)#password ti-redes

Configurando acesso telnet para 05 usuários-

Switch>enable

Switch#configure terminal

Switch(config)#line vty 0 4

Switch(config-line)#login

Switch(config-line)#password ti-redes

Configurando o endereço IP do switch-

Switch>enable

Switch#configure terminal

Switch(config)#interface vlan 1

Switch(config-if)#ip address 1.0.0.1 255.255.255.0

Switch(config-if)#no shutdown

Configurando o gateway do switch

Switch>enable

Switch#configure terminal

Switch(config)#ip default-gateway 1.0.0.2

Configurando vlan no switch

Switch>enable

Switch#configure terminal

Switch(config)#vlan 10

Switch(config-vlan)#name dep-administrativo

Switch(config-vlan)#exit

Switch(config)#

Switch(config)#interface fastEthernet 0/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 10

Switch(config-if)#exit

Switch(config)#exit

Switch#sh vlan

Configurando trunk no switch

Switch>enable

Switch#configure terminal

Switch(config)#interface fastEthernet 0/1

Switch(config-if)#switchport mode trunk

Comandos de verificação e diagnóstico-

Switch#show ?

(O comando show ? fornece uma lista dos comandos show disponíveis)

Switch#show arp

(Exibe a tabela ARP do roteador)

Switch#sh interfaces

(Verifica detalhadamente as configurações das interfaces)

Switch #sh ip interface brief

(Verifica as configurações das interfaces)

Switch#show mac-address-table dynamic

(Verifica a tabela de endereçamento MAC)

Switch#show vlan

(Exibe as vlans configuradas)

Switch #sh running-config

(Verifica as configirações ativas na RAM)

Switch#sh startup-config

(Verifica as configurações da NVRAM)

Switch#sh flash:

(Verifica os arquivos de sistema operacional da Flash)

Switch#copy running-config startup-config

(Salva as configurações ativas na RAM para a NVRAM)

Ler mais: http://www.ti-redes.com/switching/configura%C3%A7%C3%B5es%20basicas/comandos-basicos-de-switches-cisco/

CCNA basic switch configuration commands sheet

Command descriptions

switch>? The ? works here the same as in a router Used to get the list of all available commands

switch>enable User mode, same as a router

switch# Privileged mode

switch#disable Leaves privileged mode

switch>exit Leaves user mode

switch#show version Displays information about software and hardware.

switch#show flash: Displays information about flash memory (will work only for the 2900/2950 series).

switch#show mac-address-table Displays the current MAC address forwarding table

.

switch#show running-config Displays the current configuration in DRAM.

switch#show startup-config Displays the current configuration in NVRAM.

switch#show vlan Displays the current VLAN configuration.

switch#show interfaces Displays the interface configuration and status of line: up/up, up/down, admin down.

switch#show interface vlan1 Displays setting of virtual interface VLAN 1, the default VLAN on the switch.

To Reset Switch Configuration

Switch#delete flash:vlan.dat Removes the VLAN database from flash memory.

Delete filename [vlan.dat]? Press Enter

Delete flash:vlan.dat? [confirm] Press Enter

Switch#erase startup-config Erases the file from NVRAM.

Switch#reload Restarts the switch.

To Set Host Names

Switch#configure terminal Moves to global configuration mode

Switch(config)#hostname Switch1 Creates a locally significant host name of the switch. This is the same command as the router.

Switch1(config)#

To Set Passwords

Switch(config)#enable password vinita Sets the enable password to vinita

Switch(config)#enable secret nikki Sets the encrypted secret password to nikki

Switch(config)#line console 0 Enters line console mode

Switch(config-line)#login Enables password checking

Switch(config-line)#password vinita Sets the password to vinita

Switch(config-line)#exit Exits line console mode

Switch(config-line)#line vty 0 4 Enters line vty mode for all five virtual ports

Switch(config-line)#login Enables password checking

Switch(config-line)#password vinita Sets the password to vinita

Switch(config-line)#exit Exits line vty mode

Switch(config)#

To Set IP Addresses and Default Gateways

Switch(config)#interface vlan1 Enters the virtual interface for VLAN 1, the default VLAN on the switch

Switch(config-if)#ip address 192.168.0.10 255.255.255.0 Sets the IP address and netmask to allow for remote access to the switch

Switch(config-if)#exit

Switch(config)#ip default-gateway 192.168.0.5 Allows IP information an exit past the local network

To Set Interface Descriptions

Switch(config)#interface fastethernet 0/1 Enters interface configuration mode

Switch(config-if)#description Finance VLAN Adds a description of the interface

To Set Duplex Operation

Switch(config)#interface fastethernet 0/1 Moves to interface configuration mode

Switch(config-if)#duplex full Forces full-duplex operation

Switch(config-if)#duplex auto Enables auto-duplex config

Switch(config-if)#duplex half Forces half-duplex operation

To Set Operation Speed

Switch(config)#interface fastethernet 0/1

Switch(config-if)#speed 10 Forces 10-Mbps operation

Switch(config-if)#speed 100 Forces 100-Mbps operation

Switch(config-if)#speed auto Enables autospeed configuration

MAC Address Table

switch#show mac address-table Displays current MAC address forwarding table

switch#clear mac address-table Deletes all entries from current MAC address forwarding table

switch#clear mac address-table dynamic Deletes only dynamic entries from table

...

Baixar como  txt (7.3 Kb)  
Continuar por mais 2 páginas »