Základní nastavení pro toto cvičení =================================== 1) Zapojit 2) Vyresetovat konfiguraci 3) Nastavit Identity 4) Nastavit IP adresu na PC Příprava bridge (Konfigurace bridge + přidat porty ether2,9,10) =============== Bridge -> Bridge -> Add => Name=bridge Bridge -> Ports -> Add => Interface=ether2, Bridge=bridge Bridge -> Ports -> Add => Interface=ether9, Bridge=bridge Bridge -> Ports -> Add => Interface=ether10, Bridge=bridge Hw. Offload =========== Bridge -> Ports -> Status (zkontrolovat Hw. Oflload) Switch -> Switch -> prozkoumat rozdělení portů mezi switch a další HW funkce (Port Mirroring, Port Isolation, VLAN, Rule) Nastavení VLAN na Cisco ======================= Switch(config)#vlan 10 Switch(config)#vlan 20 Switch(config)#vlan 30 Switch(config)#int range fa0/1-2 , gi0/1-2 Switch(config-if-range)#switchport mode trunk Nastavení VLAN na MikroTik ========================== Bridge -> VLANs -> Add => Bridge=bridge, VLAN IDs=10, Tagged=bridge,ether9,ether10, Untagged=ether2 Bridge -> VLANs -> Add => Bridge=bridge, VLAN IDs=20, Tagged=bridge,ether9,ether10 Bridge -> VLANs -> Add => Bridge=bridge, VLAN IDs=30, Tagged=bridge,ether9,ether10 Bridge -> Ports -> Edit => Interface=ether2, PVID=10 - nastavit VLAN dle obrázku topologie Nastavení SVI na MikroTik ========================= Interfaces -> VLAN -> Add => name=int vlan 10, VLAN ID=10, Interface=bridge Interfaces -> VLAN -> Add => name=int vlan 20, VLAN ID=20, Interface=bridge Interfaces -> VLAN -> Add => name=int vlan 30, VLAN ID=30, Interface=bridge IP -> Addresses -> Add => Address=192.168.10.25/24, Interface=int vlan 10 IP -> Addresses -> Add => Address=192.168.20.25/24, Interface=int vlan 20 IP -> Addresses -> Add => Address=192.168.30.25/24, Interface=int vlan 30 - nastavit IP adresy dle obrázku topologie Zapnutí VLAN na MikroTik ======================== Bridge -> Bridge -> Edit bridge => VLAN Filtering=yes Test komunikace přes VLAN ========================= - nastavit si výchozí bránu na svůj MikroTik - vyzkoušet ping/tracert mezi PC Nastavení STP na Cisco (protokol MST) ===================================== Switch(config)#spanning-tree mode mst Switch(config)#spanning-tree mst configuration Switch(config-mst)#instance 1 vlan 1,10,20,30 Nastavení STP na MikroTik (protokol MST) ======================================== Bridge -> Bridge -> Edit bridge => STP -> Protocol Mode=MSTP, Priority=4000 - prioritu nastavit jen na vybraném switchi Bridge -> MSTIs -> Add => Bridge=bridge, Identifier=1, VLAN Mapping=1,10,20,30, Priority=4000 - prioritu nastavit jen na vybraném switchi Kontrola stavu STP ================== Bridge -> Bridge -> Show bridge -> Status Bridge -> Ports -> Show -> Status Switch#show spanning-tree Konfigurace EtherChannel na Cisco ================================= Switch(config)#int range Gi0/1-2 Switch(config-if-range)#channel-group 1 mode active Odebrání původní konfigurace rozhraní na MikroTik ================================================= Bridge -> VLANs -> Edit => Bridge=bridge, VLAN IDs=10, Tagged=bridge, Untagged=ether2 Bridge -> VLANs -> Edit => Bridge=bridge, VLAN IDs=20, Tagged=bridge Bridge -> VLANs -> Edit => Bridge=bridge, VLAN IDs=30, Tagged=bridge Bridge -> Ports -> Remove => Interface=ether9, Bridge=bridge Bridge -> Ports -> Remove => Interface=ether10, Bridge=bridge Konfigurace EtherChannel na MikroTik ==================================== Interfaces -> Bonding -> Add => Name=bonding, Slaves=ether9,ether10, Mode=802.3ad Bridge -> Ports -> Add => Interface=bonding, Bridge=bridge Bridge -> VLANs -> Edit => Bridge=bridge, VLAN IDs=10, Tagged=bridge,bonding Untagged=ether2 Bridge -> VLANs -> Edit => Bridge=bridge, VLAN IDs=20, Tagged=bridg,bonding Bridge -> VLANs -> Edit => Bridge=bridge, VLAN IDs=30, Tagged=bridge,bonding Kontrola stavu EtherChannel =========================== Interfaces -> Bonding -> Show bonding -> Status Switch#show etherchannel summary