Hello,
I am trying to connect my mikrotik router to a ubiquiti AP, that has 2 wlans that I have defined as vlan100 and vlan200.
On the mikrotik router I have defined the vlan100 at the port ether2 and vlan200 at port ether3 with dhcp.
*Now I have an issue, I wanna make it so that port ether4 is where I connect the ubiquiti AP, so in theory I will need both vlans there (I think). Something I am not sure I setup right, since I donno how to test it.
This is the setup I have created:
Ether1
/interface set ether1 name="ether1-gateway";
/ip dhcp-client add interface=ether1-gateway disabled=no comment="default configuration";
/interface bridge add name=bridge-local disabled=no auto-mac=yes protocol-mode=rstp;
/ip address add address=192.168.88.1/24 interface=bridge-local comment="default configuration";
/ip pool add name="default-dhcp" ranges=192.168.88.10-192.168.88.254;
/ip dhcp-server add name=default address-pool="default-dhcp" interface=bridge-local lease-time=10m disabled=no;
/ip dhcp-server network add address=192.168.88.0/24 gateway=192.168.88.1 comment="default configuration";
/ip dns set allow-remote-requests=yes
/ip dns static add name=router address=192.168.88.1
/ip dns static add name=Google1 address=8.8.8.8
/ip dns static add name=Google2 address=8.8.4.4
/ip firewall nat add chain=srcnat out-interface=ether1-gateway action=masquerade comment="default configuration"
/ip neighbor discovery set [find name="ether1-gateway"] discover=no
Vlan100 and Vlan200 on ether2 and ether3:
/interface vlan add name=vlan100 interface=ether2 vlan-id=100
/interface vlan add name=vlan200 interface=ether3 vlan-id=200
/interface bridge add name=br-vlan100 disabled=no auto-mac=yes protocol-mode=rstp;
/interface bridge add name=br-vlan200 disabled=no auto-mac=yes protocol-mode=rstp;
/interface bridge port add bridge=br-vlan100 interface=ether2
/interface bridge port add bridge=br-vlan100 interface=vlan100
/interface bridge port add bridge=br-vlan200 interface=ether3
/interface bridge port add bridge=br-vlan200 interface=vlan200
/ip dhcp-client add interface=ether2 disabled=no comment="vlan100 configuration";
/ip dhcp-client add interface=ether3 disabled=no comment="vlan200 configuration";
/ip address add address=192.168.100.1/24 interface=br-vlan100 comment="vlan100 configuration";
/ip address add address=172.178.200.1/24 interface=br-vlan200 comment="vlan200 configuration";
/ip pool add name="vlan100-dhcp" ranges=192.168.100.1-192.168.100.254;
/ip pool add name="vlan200-dhcp" ranges=172.178.200.1-172.178.200.254;
/ip dhcp-server add name=dhcpVlan100 address-pool="vlan100-dhcp" interface=br-vlan100 lease-time=10m disabled=no;
/ip dhcp-server add name=dhcpVlan200 address-pool="vlan200-dhcp" interface=br-vlan200 lease-time=10m disabled=no;
/ip dhcp-server network add address=192.168.100.0/24 gateway=192.168.100.1 comment="vlan100 configuration";
/ip dhcp-server network add address=172.178.200.0/24 gateway=172.178.200.1 comment="vlan200 configuration";
Right now my issue is to find a way for vlan100 and vlan200 to be in ether4 aswell, and still have them in ether2 and ether3.