Escolar Documentos
Profissional Documentos
Cultura Documentos
########################################################################
!Restore to factory-defaults
!toate liniile sunt comentate
!########################################################################
!erase startup-config
!delete flash:vlan.dat
!reload
!########################################################################
!Template configuratie de baza switch
!########################################################################
enable
configure terminal
hostname SWITCH5
ip domain-name infoacademy.net
!inainte de comanda verifica daca ai ssh2 ==> show version si cauta linia urmatoare
!System image file is "flash:c2960-lanbasek9-mz.150-2.SE8.bin"
!ip ssh version 2
line vty 0 15
login local
!transport input ssh
exit
ip default-gateway 192.168.137.1
![no] ip domain-lookup
!ip name server <IP-server-DNS>
exit
!########################################################################
! Verificare configuratie
!########################################################################
!show ip interface brief
show ip int bri | i up
!=> Adresa IP, Status = UP, Protocol = UP
!show ip redirects
show ip redirects | i gateway
!=> Adresa IP default-gateway
show ip ssh
!=> SSH is enabled
show running-config | include username
!=> username definit pe router