I have one DHCP server serving 192.168.1.1-192.168.1.252. “Internet” is on eth1.
Router acts as PPPoE Client to VDSL2 modem.
There is also TP-LINK 1043ND - it gets it’s IP from 2011UiAS-2HnD. It’s mainly for serving WiFi for restaurant clients and TP-LINK has it’s own DHCP server.
I don’t want TP-LINK to act as DHCP server - I wan’t mikrotik to give out all IPs.
So, I want to create VLAN (for my restaurant clients) on eth1, lets say with second DHCP server - 192.168.10.1-192.168.10.100. VLAN must be separated network.
How does my clients laptops choose which DHCP server to get an address from - the right one?
To clarify:
Client connects to WiFi which is beeing served by TP-LINK. TP-LINK don’t have DHCP server (acts as switch?) so it asks Mikrotik for IP. IP must be from VLAN DHCP server.
The clients typically will “choose” the DHCP server that responds the fastest, so there is no real way of controlling that client side, you really only want one DHCP server running on any layer2 segment of a network.
If you want the TPLink to act more like an access point, turn off the DHCP server on it, and connect one of the LAN ports into the rest of the network. The wireless interface is usually bridged with the Ethernet ports on home routers. The better solution though would be to get a device that is designed to be a stand alone access point. I have run into many situations with cheap routers factory defaulting themselves and all of the sudden getting 2 DHCP servers on the network.
It’s not the problem for me to set up TP-LINK as access point. I just want Mikrotik to give out IPs and separate restaurant clients from office employees - that’s all actually. I wanted to do that with VLAN. So it’s even doable?
It depends on the hardware you have really. The TP-Link likely does not support VLANs and multiple SSIDs, and the switches (if any) between the MikroTik and the TP-Link would also need to support them.