Hello my friend, me continuing with learning VLANs and saying THANK YOU too all my friends teaching me (you included)
What is my idea/config, and this post is for correcting me, because is working, I think with little troubles (duplicated packets and sometime the dhcp giving wrong ip address).
What is the config I want.
Main router/DHCP server: RB2011.
Two LANS. 192.168.10.x (my network) and 192.168.12.x (friends network).
This equipment has 192.168.10.1 and 192.168.12.1
The link (trunk I think so) is on eth9 between rb2011 and rb493 (next equipment)
On eth10 a RB493 connected to the 2011 using eth1.
In the 493 and need in eth2, 3, 4, 5, 6, 7, 8 and 9 must be on DHCP server 2 ( 192.168.12.x from the RB2011) (all my friend are connected by wire to this equipment) and the wlan must be part of 192.168.10.x (is my wireless device).
I did some configuration and I will explain here.
Please, any advice, correction is welcome…
RB2011 interested config.
/interface bridge
add admin-mac=00:0C:42:BC:80:2B auto-mac=no fast-forward=no igmp-snooping=yes name=bridge-local protocol-mode=none
/interface ethernet
set [ find default-name=ether1 ] comment="WAN Port FTTH" loop-protect=on name=ether1-gateway
set [ find default-name=ether2 ] comment=Homero name=ether2-master-local
set [ find default-name=ether3 ] comment="VoIP Habitacion Morado" name=ether3-slave-local
set [ find default-name=ether4 ] advertise=10M-half,10M-full,100M-half,100M-full comment="Backup computer" loop-protect=on name=ether4-slave-local
set [ find default-name=ether5 ] comment=Libre name=ether5-slave-local
set [ find default-name=ether6 ] comment="PLC / Sony Vaio" name=ether6-master-local
set [ find default-name=ether7 ] comment=Canal+ name=ether7-slave-local
set [ find default-name=ether8 ] comment="PS3 / Homero cuando esta en hab" name=ether8-slave-local
set [ find default-name=ether9 ] comment="Clientes Red 12. Switch" loop-protect=on name=ether9-slave-local
set [ find default-name=ether10 ] comment="Cableado al techo" name=ether10-slave-local poe-out=off
set [ find default-name=sfp1 ] disabled=yes
/interface vlan
add interface=ether9-slave-local name=vlan-300-eth9 use-service-tag=yes vlan-id=300
/interface ethernet switch port
set 7 default-vlan-id=100
set 8 default-vlan-id=100
set 9 default-vlan-id=100 vlan-header=add-if-missing
set 10 default-vlan-id=100
/interface bridge port
add bridge=bridge-local interface=ether6-master-local pvid=100
add bridge=bridge-local hw=no interface=sfp1 pvid=100
add bridge=bridge-airbnb interface=airbnb
add bridge=bridge-local interface=wlan1 pvid=100
add bridge=bridge-local interface=amer-sup
add bridge=bridge-local interface=ether2-master-local pvid=100
add bridge=bridge-local interface=ether3-slave-local pvid=100
add bridge=bridge-local interface=ether4-slave-local pvid=100
add bridge=bridge-local interface=ether5-slave-local pvid=100
add bridge=bridge-local interface=ether7-slave-local pvid=100
add bridge=bridge-local interface=ether8-slave-local pvid=100
add bridge=bridge-local hw=no interface=ether9-slave-local pvid=100
add bridge=bridge-local interface=ether10-slave-local pvid=100
add bridge=bridge-local disabled=yes interface=vlan-100-eth9
/interface bridge vlan
add bridge=bridge-local tagged=vlan-100-eth9 untagged="bridge-local,ether2-master-local,ether3-slave-local,ether4-slave-local,ether5-slave-local,et\
her6-master-local,ether7-slave-local,ether8-slave-local,ether10-slave-local,wlan1,ether9-slave-local" vlan-ids=100
/ip dhcp-server
add address-pool=Dhcp1 disabled=no interface=bridge-local lease-time=4h name=server-local
add address-pool=dhcp2 disabled=no interface=vlan-300-eth9 lease-time=8h name=server-clientes
Now the RB493
/interface bridge
add admin-mac=D4:CA:6D:40:1A:68 auto-mac=no fast-forward=no name=bridge-clientes protocol-mode=none
add fast-forward=no name=bridge-local protocol-mode=none
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no distance=indoors frequency=2442 mode=ap-bridge name=wireless-01-24 \
ssid=amertrade vlan-id=100 wps-mode=disabled
/interface ethernet
set [ find default-name=ether1 ] comment="Link a MAIN Mikrotik"
set [ find default-name=ether2 ] comment="Elio A14" name=ether2-master
set [ find default-name=ether3 ] comment="Groove AP (ex-teletronics)" name=ether3-slave
set [ find default-name=ether4 ] comment="Artem + A33 + A32 + A26" name=ether4-slave
set [ find default-name=ether5 ] comment="Ubiquiti 2 AP" name=ether5-slave
set [ find default-name=ether6 ] comment=Danado name=ether6-slave
set [ find default-name=ether7 ] comment=Rebeca name=ether7-slave
set [ find default-name=ether8 ] comment=Suomi name=ether8-slave
set [ find default-name=ether9 ] name=ether9-slave
/interface vlan
add interface=ether1 name=vlan-100-eth1 use-service-tag=yes vlan-id=100
add interface=ether3-slave name=vlan-100-eth3 use-service-tag=yes vlan-id=100
add interface=ether1 name=vlan-300-eth1 use-service-tag=yes vlan-id=300
add disabled=yes interface=ether5-slave name=vlan-300-eth5 use-service-tag=yes vlan-id=300
/interface bridge port
add bridge=bridge-local interface=ether1
add bridge=bridge-clientes interface=ether2-master pvid=300
add bridge=bridge-local interface=wireless-01-24 pvid=100
add bridge=bridge-clientes interface=ether3-slave pvid=300
add bridge=bridge-clientes interface=ether4-slave pvid=300
add bridge=bridge-local interface=ether5-slave pvid=300
add bridge=bridge-clientes interface=ether6-slave pvid=300
add bridge=bridge-clientes interface=ether7-slave pvid=300
add bridge=bridge-clientes interface=ether8-slave pvid=300
add bridge=bridge-clientes interface=ether9-slave pvid=300
add bridge=bridge-clientes ingress-filtering=yes interface=vlan-300-eth1 pvid=300
add bridge=bridge-local interface=vlan-100-eth3 pvid=300
add bridge=bridge-local disabled=yes interface=vlan-100-eth1 pvid=100
/interface bridge vlan
add bridge=bridge-clientes tagged=vlan-300-eth1,ether1 untagged=\
bridge-clientes,ether2-master,ether4-slave,ether5-slave,ether7-slave,ether8-slave vlan-ids=300
add bridge=bridge-local tagged=vlan-100-eth1,vlan-100-eth3,ether1 untagged=bridge-local,wireless-01-24 vlan-ids=100
PD eth4 and eth5 are wireless equipment, other history, doesn’t matter now…
Please, look the config and any advice will be appreciated …
Thank you