Please help with dhcp

I got myself a MikroTik RB9412nD hAP lite SOHO 2GHz WiFi Router today, I had to get this as I need to better manage bandwidth on my home network because I work from home.

I have gone through many dhcp tutorials now and have reached that point where I am deciding to place the router at the bottom of the pool, can someone please lead me to a full fledged UI tutorial that will allow me to run dhcp on my wlan interface.

I have managed to get it to create a dhcp server that is not invalid now the dhcp server refuses to lease ip addresses.

Seriously why does this have to be so complicated. :frowning:

Typically, you’d want the wireless to be bridged to the wired LAN, and so the same dhcp service that’s there by default should “just work”

Mikrotik DHCP server works using 3 components:
IP > DHCP-server > DHCP tab
IP > DHCP-server > Networks tab
IP > Pools

The server is where things like lease times, static leases, and which interface to listen on are all configured.
The netoworks tab is where the information that goes into the DHCP messages is configured - DHCP options, dns server address, domain name, default GW, etc.
The IP pool is where the router keeps track of which individual addresses are leased / available for lease. It’s here where you would reduce the size of the range in order to leave some addresses available for static-configured hosts.

If you already have the IP address configured on your LAN interface, you can wipe all of the DHCP server settings, Networks settings, and IP pools, and then redo it from scratch by clicking the “DHCP Setup” button, and answer a couple of easy questions. It will automatically set things up properly for you.

I finally got everything going, it now leases ip addresses yay! However no internet comes through.

The router needs to have the correct default gateway, and you need to have NAT masquerading enabled on traffic going out the WAN interface.

A default configuration of a Mikrotik router has all of this already, but if you’re starting from a blank configuration, then you need to make sure these are there.

If using DHCP client on the WAN interface, in the dhcp-client configuration, there’s a dropdown “add default route” - set this to yes.
If using PPPoE client on the WAN interface, there is a checkbox “Add default route” which should be checked.
If using static IP address assignment on the WAN, then you need to statically define the default GW in the IP > Routes menu.
The default GW is a route whose destination is 0.0.0.0/0 - if such a route already exists, then modify it and make sure that the gateway=x.x.x.x value is correct for the settings specified by your ISP. If there is no such route, then add one.

Finally, in the IP > Firewall > NAT screen, there should usually just be one rule:
chain=srcnat
out-interface=WAN (whatever your wan interface is - use the pppoe interface if pppoe, otherwise use the physical ethernet interface)
action=masquerade

If this is how you’re already set up, then the problem is most likely in the configuration of your firewall filter rules.
Make sure that nothing is dropping packets going to the Internet, and that packets from the internet are accepted and/or fasttracked if the connection state=established,related