Narzędzia użytkownika

Narzędzia witryny


mikrotik-switche-vlany-router

Różnice

Różnice między wybraną wersją a wersją aktualną.

Odnośnik do tego porównania

Poprzednia rewizja po obu stronachPoprzednia wersja
Nowa wersja
Poprzednia wersja
mikrotik-switche-vlany-router [2017/05/09 12:53] kamilmikrotik-switche-vlany-router [2018/07/16 11:47] (aktualna) – edycja zewnętrzna 127.0.0.1
Linia 6: Linia 6:
 {{:mikrotik_vlans.png|}} {{:mikrotik_vlans.png|}}
  
-Do switchy podpinamy się za pomocą adresu MAC (program WinBox -> zakładka Neighbors). Na leży mieć pod ręką kabel do konsoli, na wszelki wypadek. Ja podpinam się pod port eth9 do switchy w celu konfiguracji.+Do switchy podpinamy się za pomocą adresu MAC (program WinBox -> zakładka Neighbors). Należy mieć pod ręką kabel do konsoli, na wszelki wypadek. Ja podpinam się pod port eth9 do switchy w celu konfiguracji.
  
 Na każdym switchu sprawdzamy ustawienia master portu na interfejsach: Na każdym switchu sprawdzamy ustawienia master portu na interfejsach:
Linia 65: Linia 65:
 </file> </file>
  
 +VLAN do zarządzania switchem:
 +<file>
 +/interface vlan
 +add name=vlan99 vlan-id=99 interface=ether1
 +/ip address
 +add address=192.168.101.2/24 interface=vlan99
 +/interface ethernet switch egress-vlan-tag
 +add tagged-ports=ether1,switch1-cpu vlan-id=99
 +/interface ethernet switch vlan
 +add ports=ether1,switch1-cpu vlan-id=99 learn=yes
 +</file>
  
 ===== CRS125-24G-1S-IN ===== ===== CRS125-24G-1S-IN =====
  
 <file> <file>
 +/interface ethernet switch
 +set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports=ether24,ether23,ether22,ether21,ether20,ether19,ether18,ether17,ether16,ether15,ether14,ether13,ether1-master,ether2,ether3,ether4,ether5,ether6,ether7,ether8
 +/interface ethernet switch trunk
 +add member-ports=ether1-master,ether2 name=trunk-1-2
 +/interface ethernet switch egress-vlan-tag
 +add tagged-ports=trunk-1-2 vlan-id=1
 +add tagged-ports=trunk-1-2 vlan-id=2
 +add tagged-ports=trunk-1-2 vlan-id=3
 +add tagged-ports=trunk-1-2 vlan-id=4
 +/interface ethernet switch ingress-vlan-translation
 +add new-customer-vid=1 ports=ether13,ether14
 +add new-customer-vid=2 ports=ether15,ether16
 +add new-customer-vid=3 ports=ether17,ether18,ether19,ether20
 +add new-customer-vid=4 ports=ether21,ether22,ether23,ether24
 +/interface ethernet switch vlan
 +add ports=trunk-1-2,ether13,ether14 vlan-id=1
 +add ports=trunk-1-2,ether15,ether16 vlan-id=2
 +add ports=trunk-1-2,ether17,ether18,ether19,ether20 vlan-id=3
 +add ports=trunk-1-2,ether21,ether22,ether23,ether24 vlan-id=4
 +</file>
  
 +VLAN do zarządzania switchem:
 +<file>
 +/interface vlan
 +add name=vlan99 vlan-id=99 interface=ether1
 +/ip address
 +add address=192.168.101.3/24 interface=vlan99
 +/interface ethernet switch egress-vlan-tag
 +add tagged-ports=ether1,switch1-cpu vlan-id=99
 +/interface ethernet switch vlan
 +add ports=ether1,switch1-cpu vlan-id=99 learn=yes
 +</file>
 +
 +===== ROUTER =====
 +
 +Interfejdy eth2-eth5 nie mogą być zgrupowane przed tworzeniem bondingu.
 +
 +<file>
 +/interface bonding
 +add mode=balance-xor name=bonding1 slaves=ether5,ether2,ether3,ether4 transmit-hash-policy=layer-2-and-3
 +/interface vlan
 +add interface=bonding1 name=vlan1 vlan-id=1
 +add interface=bonding1 name=vlan2 vlan-id=2
 +add interface=bonding1 name=vlan3 vlan-id=3
 +add interface=bonding1 name=vlan4 vlan-id=4
 +/ip address
 +add address=192.168.99.1/24 interface=vlan1 network=192.168.99.0
 +add address=192.168.100.1/24 interface=vlan2 network=192.168.100.0
 +</file>
 +
 +VLAN do zarządzania routerem:
 +<file>
 +/interface vlan
 +add name=vlan99 vlan-id=99 interface=bonding1
 +/ip address
 +add address=192.168.101.1/24 interface=vlan99
 </file> </file>
  
mikrotik-switche-vlany-router.1494327190.txt.gz · ostatnio zmienione: 2018/07/16 11:47 (edycja zewnętrzna)