Różnice między wybraną wersją a wersją aktualną.
| Poprzednia rewizja po obu stronachPoprzednia wersjaNowa wersja | Poprzednia wersja | ||
| mikrotik-switche-vlany-router [2017/05/09 12:57] – kamil | mikrotik-switche-vlany-router [2025/01/11 18:58] (aktualna) – edycja zewnętrzna 127.0.0.1 | ||
|---|---|---|---|
| Linia 6: | Linia 6: | ||
| {{: | {{: | ||
| - | Do switchy podpinamy się za pomocą adresu MAC (program WinBox -> zakładka Neighbors). | + | Do switchy podpinamy się za pomocą adresu MAC (program WinBox -> zakładka Neighbors). |
| Na każdym switchu sprawdzamy ustawienia master portu na interfejsach: | Na każdym switchu sprawdzamy ustawienia master portu na interfejsach: | ||
| Linia 65: | Linia 65: | ||
| </ | </ | ||
| + | VLAN do zarządzania switchem: | ||
| + | < | ||
| + | /interface vlan | ||
| + | add name=vlan99 vlan-id=99 interface=ether1 | ||
| + | /ip address | ||
| + | add address=192.168.101.2/ | ||
| + | /interface ethernet switch egress-vlan-tag | ||
| + | add tagged-ports=ether1, | ||
| + | /interface ethernet switch vlan | ||
| + | add ports=ether1, | ||
| + | </ | ||
| ===== CRS125-24G-1S-IN ===== | ===== CRS125-24G-1S-IN ===== | ||
| Linia 71: | Linia 82: | ||
| /interface ethernet switch | /interface ethernet switch | ||
| set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports=ether24, | set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports=ether24, | ||
| + | /interface ethernet switch trunk | ||
| + | add member-ports=ether1-master, | ||
| + | /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, | ||
| + | add new-customer-vid=2 ports=ether15, | ||
| + | add new-customer-vid=3 ports=ether17, | ||
| + | add new-customer-vid=4 ports=ether21, | ||
| + | /interface ethernet switch vlan | ||
| + | add ports=trunk-1-2, | ||
| + | add ports=trunk-1-2, | ||
| + | add ports=trunk-1-2, | ||
| + | add ports=trunk-1-2, | ||
| + | </ | ||
| + | VLAN do zarządzania switchem: | ||
| + | < | ||
| + | /interface vlan | ||
| + | add name=vlan99 vlan-id=99 interface=ether1 | ||
| + | /ip address | ||
| + | add address=192.168.101.3/ | ||
| + | /interface ethernet switch egress-vlan-tag | ||
| + | add tagged-ports=ether1, | ||
| + | /interface ethernet switch vlan | ||
| + | add ports=ether1, | ||
| + | </ | ||
| + | |||
| + | ===== ROUTER ===== | ||
| + | |||
| + | Interfejdy eth2-eth5 nie mogą być zgrupowane przed tworzeniem bondingu. | ||
| + | |||
| + | < | ||
| + | /interface bonding | ||
| + | add mode=balance-xor name=bonding1 slaves=ether5, | ||
| + | /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/ | ||
| + | add address=192.168.100.1/ | ||
| + | </ | ||
| + | |||
| + | VLAN do zarządzania routerem: | ||
| + | < | ||
| + | /interface vlan | ||
| + | add name=vlan99 vlan-id=99 interface=bonding1 | ||
| + | /ip address | ||
| + | add address=192.168.101.1/ | ||
| </ | </ | ||