[Vlan] Internal Mikrotik router to Internet Mikrotik Router

I have two flats in my house that I provide internet too. I have recently started using Vlans to seperate and manage the traffic. I have a wireless access point that can tag packets with a VLAN ID and have successfully got the internet connected mikrotik to hand out DHCP to that flat.

The second flat has a mikrotik connected to the internet mikrotik via its ether1 port. I want it to connect via VLAN to the internet connected Mikrotik. I have setup the VLAN exactly the same way on the internet connected router obviously with a different ID.

What I did on the flat router was:

  1. Create vlan on interface ether1
  2. Create DHCP client on vlan ( the client mikrotik successfuly gets an IP from the internet connected router in the correct VLAN)
  3. Disable the DHCP on ether1 as no longer required?

I then lose connection to that router and cant ping either IP address.
After a minute or so I can see both IP Addresses again. I can then connect. Then the DHCP client on ether1 returns???

How can I set it up so that the client router ONLY uses the Vlan.

Thanks

Hey. What you mean you disabled dhcp on ether1? You disabled dhcp client on a managment vlan after 2nd flat’s router receive IP address?

I am most probably doing the wrong things here.

Basically I want the router in the flat to be a wireless access point. The main mikrotik must hand out DHCP and do all the routing. The only thing I want the second mikrotik to do is to tag the packets with VLAN ID 50 so that each client on the second router gets an IP Address from the VLAN on the main router.

Can anyone help with that? Thanks guys

I've managed to solve this myself.

Here is how I did it:

  1. Reset the configuartion with no default configuration
  2. Create VLAN on interface ether1
  3. Bridge VLAN, all ether ports and wlan, BUT NOT ETHER 1
  4. Enable DHCP client on ether1 if you would like to have a management IP to get access.
  5. Configure WLAN for wireless clients

Job Done. All clients on second mikrotik get VLAN ip's from the main router.

Here is the export of the config

nov/06/2019 07:53:14 by RouterOS 6.45.7

software id = 0PCA-QY93

model = RouterBOARD 941-2nD

serial number = ********

/interface bridge
add name=bridge1
/interface ethernet
set [ find default-name=ether1 ] comment="For Management ONLY - No internet"
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no mode=ap-bridge
ssid=********
/interface vlan
add comment="Internet Access" interface=ether1 name=vlan1 vlan-id=40
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk eap-methods="" mode=
dynamic-keys supplicant-identity=MikroTik wpa2-pre-shared-key=********
/interface bridge port
add bridge=bridge1 interface=vlan1
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=wlan1
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=bridge1
add dhcp-options=hostname,clientid disabled=no interface=ether1
/system clock
set time-zone-name=Africa/Johannesburg
/system identity
set name=Vlan-Ra