SIECI: ------------------------------------------- DHCP: erase startap-config -czyszczenie configa delete vlan.dat - usuwanie valnow reload - reboot ip dhcp excludet-adress x.x.x.x x.x.x.x - tych ignoruje ip dhcp pool (nazwa_poli) network x.x.x.x -ip x.x.x.x - maska defult-ruter brama dns-server x.x.x.x - dns domain-name XXXXXXXXXXXXX - nazwa domeny do show ip dhcp binding - pokazuje macki do clear ip dhcp binding x.x.x.x - usuwa mac -------------------------------------------- VLAN: do show vlan - pokazuje vlany do show interface trunk - pokazuje trunki swichport mode acces swichport mode trunk swichport acces vlan X swichport trunk allowed valn x,y,z -------------------------------------------- SSH: hostname s1 enable secret haslo ip domain-name ghpinc.pl username user secret haslo interface vlan 1 ip address 10.0.0.2 255.255.255.0 no shutdown exit crypto key generate rsa ip ssh version 2 line vty 0 15 transport input ssh login local ------------------------------------------- CHANNEL-GROUP int range fa0/1-2 channel-group 1 mode active int port-channel (x) CREATE TRUNK DODATKOWE: show int port-channel show etherchannel summary show etherchannel port-channel show int etherchannel ------------------------------------------- spanning tree int cos spanning-tree portfast - szykie polaczenie (dla hostow) spanning-tree bpduguard enable topy: spanning-tree VLAN 1 root primary spanning-tree VLAN 1 priority 24576 (+ vlan) spanning-tree VLAN 1 root secondary span cost Z ------------------------------------------- STATIC ROUTING int jakis tam port ip add (jakis adres + maska) exit ip route (adres sieci docelowej) + (maska sieci docelowej) + (adres nastepnego skoku) ip route 0.0.0.0 0.0.0.0 (adres skoku) ------------------------------------------- RIP router rip version 2 no auto-summary netwark [ip1] netwark [ip2] default-information originate show ip rip database show ip route ------------------------------------------- Ospf router ospf 1 router-id 1.1.1.1 network X.X.X.X netmask X.X.X.X area 0 passive-interface gig/fa default-int onjoin auto-cost reference-bandwidth ------------------------------------------- LEKCJA Programowania -------------------------------------------