Escolar Documentos
Profissional Documentos
Cultura Documentos
Switch#show running-config
Switch#show startup-config
Switch#show vlan
Switch#dir flash:
Examinar o Arquivo de Configurao de Inicializao
Switch#show startup-config
Switch#wr
Sair do Switch
Switch#exit
Switch#delete flash:vlan.dat
Switch#erase startup-config
Switch#reload
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Fatec
Fatec(config)#
Definir as Senhas de Acesso
Fatec#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Fatec(config)#line console 0
Fatec(config-line)#password cisco
Fatec(config-line)#login
Fatec(config-line)#line vty 0 15
Fatec(config-line)#password cisco
Fatec(config-line)#login
Fatec(config-line)#exit
Fatec(config)#
Fatec#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Fatec(config)#enable password cisco
Fatec(config)#enable secret class
Fatec(config)#exit
Fatec#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Fatec(config)#interface fastEthernet 0/1
Fatec(config-if)#speed 10
Fatec(config-if)#duplex full
Fatec(config-if)#exit
Fatec(config)#interface fastEthernet 0/2
Fatec(config-if)#speed 100
Fatec(config-if)#duplex full
Fatec(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Fatec#
Fatec#configure terminal
Fatec(config)#interface vlan 1
Fatec(config-if)#ip address 192.168.1.2 255.255.255.0
Fatec(config-if)#exit
Fatec(config)#
Defina o Default Gateway do Switch e da VLAN Default de Gerenciamento para
192.168.1.1
Fatec#configure terminal
Fatec(config)#ip default-gateway 192.168.1.1
Fatec(config)#exit
Fatec(config)#
Fatec#configure terminal
Fatec(config)#interface vlan 1
Fatec(config-if)#no shutdown
%LINK-5-CHANGED: Interface Vlan1, changed state to up
Fatec(config-if)#
Fatec#show mac-address-table
Switch#show mac-address-table ?
dynamic dynamic entry type
interfaces interface entry type
static static entry type
<cr>
Fatec#configure terminal
Fatec(config)#mac-address-table static 0030.a385.e668 vlan 1 interface fastEthernet 0/4
Verifivar as Entradas da Tabela de Endereos MAC
Fatec#show mac-address-table
Mac Address Table
-------------------------------------------
Fatec#show mac-address-table
Mac Address Table
-------------------------------------------
Fatec#configure terminal
Fatec(config)#interface fastEthernet 0/4
Fatec(config-if)#switchport port-security ?
mac-address Secure mac address
maximum Max secure addresses
violation Security violation mode
<cr>
Fatec#configure terminal
Fatec(config)#interface fastEthernet 0/4
Fatec(config-if)#switchport port-security mac-address sticky
Fatec(config-if)#^Z
Limitar o Nmero de Hosts em Cada Porta
Fatec#configure terminal
Fatec(config)#interface fastEthernet 0/4
Fatec(config-if)#switchport port-security maximum 1
Configurar a Porta de Modo que se Desative por Ocasio de uma Violao de Segurana
Fatec#configure terminal
Fatec(config)#interface fastEthernet 0/4
Fatec(config-if)#switchport port-security violation shutdown
Fatec#clear mac-address-table
Fatec#show mac-address-table dynamic
Fatec#show mac-address-table
Verificar VLANs
Switch_A#show vlan