Hello All,
I need help on setup a DHCP sever in Mikrotik with Pool IP and Nating, whenever any laptop connect to my network via wire, it get DHCP from my Router, but not allow to surf Internet, Until I allow or authenticate him.
/ip address add interface=lan address=192.168.1.1/24
/ip pool add name=lan addresses=192.168.1.128-192.168.1.254
/ip dhcp-server network add address=192.168.1.0/24 gateway=192.168.1.1 dns-server=8.8.8.8 netmask=24
/ip dhcp-server add name=lan interface=lan address-pool=lan
/ip firewall address-list add address=192.168.1.25 list=user
/ip firewall filter add chain=forward action=drop src-address-list!=user in-interface=lan
/ip firewall filter add chain=input action=drop src-address-list!=user in-interface=lan
Hi Brossler,Hello,
You are likely forgeting something. Dont worry, it happened to me all the time when I was beginer. Check if you set up these things:
If all of those points are set and yet, it is not working, post export of settings and I will try to help you.
- Is IP address set for interface, where DHCP server is running? (/ip address)
Is address pool created? (/ip pool)
Is address pool set for DHCP server? (/ip dhcp-server set 0 address-pool=name of the pool)
Is network set up in DHCP Networks (/ip dhcp-server network)
Also, you could try clicking "DHCP Setup" button and it will walk you through all the settings by asking you what interface, address range etc. you want your DHCP server run on.