Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- show startup-config -Konfiguracje początkową przełącznika
- show running-config -konfigurację bieżącą za pomocą komendy
- copy running-config startup-config - zapis konfiguracji bieżącej
- exec-timeout <minuty> <sekundy> -określić czas automatycznego wylogowania
- show ip ssh oraz show ssh możemy skontrolować stan serwera.
- show mac address-table
- show vtp status
- Zadanie 1 erase startup-config reload
- erase startup-config -wyczyść konfigurację startową delete vlan.dat reload
- show vlan brief, show flash --sprawdź baze danych ipconfig /all
- Krok3 S1 no ip domain-lookup
- hostname S1 -nazwa
- enable secret class --szyfrowanie hasło do trybu uprzewilejowanego
- line con 0, password cisco, login, logging synchr --hasło dostępu do konsoli
- line vty 0 15, password cisco, login, logging synchr --hasło dostępu przez telnet
- service password-enycryption -szyfrowanie hasło banner motd #, Nieuatoryzowany dostep zabroniony! # --baner motd
- VLAN routing pomiędzy VLAN-ami Krok1
- Krok2 S3
- vlan 14, name Ksiegowosc, vlan 24, name Badania, vlan 34, name Zarzadzanie --baza vlan
- int vlan 34, ip address 192.168.34.3 255.255.255.0, -- ip do zarządzania
- ip default-gateway 192.168.34.1 -- adres bazy dmyślnej
- 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
- int range f0/1-2,f0/4-17,f0/19-24, shutdow, -- wyłącz wszystkie nieużywane porty
- ip domain-name CCNAlab.com
- username admin privilege 15 secret sshadmin
- line vty 0 15
- transport input ssh --
- login local -- włączenie SSH na switchu
- exit --
- crypto key generate rsa modulos 2014
- show ip ssh
- ip ssh time-out 75
- ip ssh authentication-retires 2
- interface range f0/1-4
- shutdown wyłączenie interface
- show ip http server status --informacje o serwerze ssh
- no ip http server --wyłączanie serwera http
- VLAN TRUNK
- config t
- switchport trunk encapsulation dot1q
- switchport mode trunk
- skasuj konfiguracje sartowe na ruterach – erase startup-config
- uruchom ponownie ruter – reload
- skasuj konfiguracje startowe oraz stare sieci vlan na switach – erase … uruchom ponownie switch – reload
- sprawdz czy baza vlan została usunieta z pamięci flash –
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement