Advertisement
worms005

sieci

Jan 13th, 2019
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. show startup-config -Konfiguracje początkową przełącznika
  2. show running-config -konfigurację bieżącą za pomocą komendy
  3. copy running-config startup-config - zapis konfiguracji bieżącej
  4. exec-timeout <minuty> <sekundy> -określić czas automatycznego wylogowania
  5. show ip ssh oraz show ssh możemy skontrolować stan serwera.
  6. show mac address-table
  7. show vtp status
  8.  
  9. Zadanie 1 erase startup-config reload
  10. erase startup-config -wyczyść konfigurację startową delete vlan.dat reload
  11. show vlan brief, show flash --sprawdź baze danych ipconfig /all
  12.  
  13.  
  14. Krok3 S1 no ip domain-lookup
  15. hostname S1 -nazwa
  16. enable secret class --szyfrowanie hasło do trybu uprzewilejowanego
  17. line con 0, password cisco, login, logging synchr --hasło dostępu do konsoli
  18. line vty 0 15, password cisco, login, logging synchr --hasło dostępu przez telnet
  19. service password-enycryption -szyfrowanie hasło banner motd #, Nieuatoryzowany dostep zabroniony! # --baner motd
  20.  
  21. VLAN routing pomiędzy VLAN-ami Krok1
  22.  
  23. Krok2 S3
  24. vlan 14, name Ksiegowosc, vlan 24, name Badania, vlan 34, name Zarzadzanie --baza vlan
  25. int vlan 34, ip address 192.168.34.3 255.255.255.0, -- ip do zarządzania
  26. ip default-gateway 192.168.34.1 -- adres bazy dmyślnej
  27. int f0/3, switchport mode trunk, switchport trunk native vlan 1 -- trunking na interfejsie int f0/5, switchport mode trunk, switchport trunk native vlan 1 -- trunking na interfejsie int range f0/1-2,f0/4,f0/6-24 , switchport mode access, -- skonfiguruj interfejsy jako dostępowe acces int f0/18, switchport access vlan 24 --przypisz int f0/6 do vlan31
  28. int range f0/1-2,f0/4-17,f0/19-24, shutdow, -- wyłącz wszystkie nieużywane porty
  29.  
  30.  
  31. ip domain-name CCNAlab.com
  32. username admin privilege 15 secret sshadmin
  33. line vty 0 15
  34. transport input ssh --
  35. login local -- włączenie SSH na switchu
  36. exit --
  37. crypto key generate rsa modulos 2014
  38. show ip ssh
  39. ip ssh time-out 75
  40. ip ssh authentication-retires 2
  41.  
  42. interface range f0/1-4
  43. shutdown wyłączenie interface
  44.  
  45. show ip http server status --informacje o serwerze ssh
  46. no ip http server --wyłączanie serwera http
  47.  
  48.  
  49. VLAN TRUNK
  50.  
  51. config t
  52. switchport trunk encapsulation dot1q
  53. switchport mode trunk
  54.  
  55.  
  56. skasuj konfiguracje sartowe na ruterach – erase startup-config
  57. uruchom ponownie ruter – reload
  58. skasuj konfiguracje startowe oraz stare sieci vlan na switach – erase … uruchom ponownie switch – reload
  59. sprawdz czy baza vlan została usunieta z pamięci flash –
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement