MikroTik Tutorial 12 - Creating Multiple DHCP Servers
Vložit
- čas přidán 11. 03. 2017
- Learn MikroTik RouterOs Tutorial Series (english)
The DHCP (Dynamic Host Configuration Protocol) is used for the easy distribution of IP addresses in a network. The MikroTik RouterOS implementation includes both server and client parts and is compliant with RFC 2131.
The router supports an individual server for each Ethernet-like interface. The MikroTik RouterOS DHCP server supports the basic functions of giving each requesting client an IP address/netmask lease, default gateway, domain name, DNS-server(s) and WINS-server(s) (for Windows clients) information (set up in the DHCP networks submenu)
In order for the DHCP server to work, IP pools must also be configured (do not include the DHCP server's own IP address into the pool range) and the DHCP networks.
You will need any one of these Mikrotik routerboard router for this tutorial:
Mikrotik RouterBoard RB951Ui-2nD hAP
Mikrotik RB3011UIAS-RM
Mikrotik Routerboard RB2011UiAS-2HnD-IN
Mikrotik RB750Gr2
Mikrotik hEX RB750Gr3
MikroTik RB2011iLS-IN
MikroTik Cloud Router CRS109-8G-1S-2HnD-IN
hAP lite
hAP
hAP ac lite tower
hAP ac
mAP lite
mAP
wAP
RB951Ui-2HnD
RB951G-2HnD
RB2011UiAS-2HnD-IN
Mikrotik RB941-2nD-TC
Music
Dub Eastern by Kevin MacLeod is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/...)
Source: incompetech.com/music/royalty-...
Artist: incompetech.com/
Mandeville by Kevin MacLeod is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/...)
Source: incompetech.com/music/royalty-...
Artist: incompetech.com/ - Věda a technologie
I was having issues with my clients getting DHCP addreseses. I watched this video and it pointed me in the right direction. It was such a big help. Thanks and keep up the good work :).
thank you 6 years later and still helpful!
Excellent video! Thank you so so much for sharing! This video helped me have different subnets in my lan.
Learning the tutorial from the Philippines, Thanks.
Thanks for your videos, very helpful.
Saved me a lot of time - many thanks from Bornholm, DK
Glad it helped!
This worked great with the exception of once I got a lease from the new pool I was unable to connect to the router with Winbox. I flushed DNS, released the IP and renewed, I couldn't figure out how to connect to the router with the new gateway address.
Great work!!! saved my ass just now. Thanks a lot MAN!
Easy to understand thank you sir
Great tutorial!
Well done and the video is helpful. I would like to ask if each dhcp client will be able to ping each other in different pool?
thanks, bro your the best
This was invaluable. Thanks.
I have been able to put the WiFi [DHCP] router on a separate WAN [DHCP-derived] address, totally separating the WiFi router from the domain network (the house Mikrotik 1100 does not serve DHCP addressing on it's "regular" LAN ports, as addressing is (and must be) handled by our [older] Windows SBS server).
However, I subsequently noticed that I can no longer connect to Winbox from PCs connected to the new DHCP port. (Nor can I connect through a browser to the gateway IP address.)
Which is not a deal-breaker, but is there a way to connect back to Winbox from the 2nd DHCP address pool?
Hello, I want to know, if I have created several subnets, can the codes created on any dhcp server work on all the access points?
When you create the second network address at 4:07, you address it with a 24 bit mask. Then at 4:20 you add a 24 bit mask again. Is this really necessary? It seems you can't add a mask when setting a dhcp network.
thank you sir
4 hour of hell then I found your video - THANKS!!!
You are welcome
you are deserve to have many subcriber .. :)
can you please show me how to route internet to these two dhcp servers you created
can i assign 2 ip ranges like the one is 172.16.15.254 and 172.17.15.254 and the bridge?
Thanks sir very informative. I have a question though, is it okay to use the same DHCP server for different bridges?. Bridges 1 and 2 using one DHCP server?
Thanks is advanz!
Thankyou for more learn about microtik.
Sir i have a query, please help me in my office network dhcp server running in firewall and we just placed a microtik rb1100ahx4 for network bandwidth managment.
Over office have 4 local area network we just control the 4 local area network bandwith and we dont make a seperate dhcp server in microtik.
If possible we just define the path in microtik of existing dhcp server?
So what is the confuigration we can apply in this scenerio?
Please help thankyou
I have created a new dhcp server called mybridge but still the 4th port is still connecting to bridge2
Great tutorials, however a very important part about using multiple DHCP servers is NAT and getting internet access to these separate networks. you have no tutorials on NAT. PLEASE do a second part to follow this video. I cannot figure out how in all the available setting to get internet access to my fully functional in every other way secondary network.
Hello sir i like your tutorials a lot. It seems like i have a problem with one port. I have followed the instructions but it seems no result for me. My 4th port it bridged to the hotspot network. I want to unbridge for me to shape the speed but it seems like when i unbridge the port, the connection it lost. Please help me. I did this tutorial all day but no luck. I wonder what seems to be the problem. Thanks a lot. Regards
hello sir really like your videos need to learn more please do video on advance configuration like routings........
+mohan lal das Noted, will do.
Thanks alot
Thank you very much
You are welcome
Very usefull
Question: Address List 192.168.5.0 Interface Ethernet 2 (Should we change to Bridge 1?)
How can I make the two subnets talk?
thanks for the video very helpful, but a quick question, why i can't access my mikrotik after these configurations?
I don't know, reset and try again
Hi, I couldn't figure out why my dhcp was invalid... I needed to create a bridge. Thanks for your video, thumb up!
good day sir, can we increase the dhcp ip like I have host of 500 plus user default is only 254.
thanks man, thumbs up
Thank you too
Hi,
Can we used in two router same DHCP,
After connecting to ISP, like we received dhcp from ISP but in both dchp server we have 192..168.1.2/24
How to make OTP login for the hotspot
Can i ask a question. If I do 2 different ip pools, is it possible to have different ports with different ip pools ? This is because I only have one MIKROTIK RB941-2nD hAP Lite Classic and I want to established connection between two places but with different ip subnet ?
yes, you can configure a separate dhcp server for each port
i have problem connect to internet using 2nd dhcp. My device already get IP, but i't cannot connect to internet. Anyone can help ?
Hello, I have configure my microtik to only allow specific MAC address with their ips to the network. However I have some computers that have two ip addresses i.e 192.168.1.211 and 192.168.20.30. They are unable to connect. Is there a way to assign two ip addresses to a specific MAC address so that they can access the network?
No, 1 IP --> 1 MAC
Good job
Thanks
With that configuration, Can a PC in network 192.168.5 see or ping to another PC in network 192.168.6 ?
Because I'd like to prevent total comunication between the two networks. Thanks in advance for your answer
By default it should be able to see or ping from network 5 to network 6.. What u have to do is create 2 Filter Rules
IP->Firewall->Filter Rules-> Add + ( Rule A: Chain forward, src address 192.168.5.0/*, dst address 192.168.6.0/* action=drop && Rule B: Chain forward, src address 192.168.6.0/*, dst address 192.168.5.0/* action=drop). Thats how i did it !!
@@stelioskourtis8700 thanks
Dont forget create NAT rule for new subnet, and masquarede it
This really helped me, i dont know why he forgot to explain this to get the other subnet connect to internet, but i guess he has a lot on his mind.
Thanks
I've tried this but the second pool is unable to access internet. Am using v7.6, so much newer firmware than at the time of this video. I have a separate WiFi AP, which shows an IP address on my phone from Pool2, but no internet access.
Can someone pint my in the right direction?
DHCP Relay tutorial please
hi, followed the tutorial and successfully created a bridge with dhcp server, and connect using ip given on that server, unfortunately my access with my winbox got loss. originally my assigned ip to mikrotik router is 192.168.5.1 and my pc ip is 192.168.6.99. with bridge dhcp server of 192.168.6.1. thanks
I created 2nd address and pool like in this video. Is super and i understand how to.... One big problem i have. There is no net on 2nd network. Please, can somebody help me? Thank you.
You need to set up NAT rule and masquerade it
Hello, My 2nd bridge works fine but no internet :-(
mine neither
@@blackbarry45 create a NAT rule and masquerade it
how does all ports get internet
The ip address that is assign to the user will have a default gateway in it.
Please tell me what is the purpose of creating more DHCP servers in a routeur Mikrotik?
This will enable you to have multiple networks on your router. Example, WiFi user could be on 192.168.1.0/24 and LAN users on 10.0.0.0/24
Do you have an topic of this ?
+john Lohan no, but I have covered parts of it in different videos. Since you mention it I will be doing a dedicated video on it.
Ok thank you in advance but is that each hotspot will be specific to connection mode? Let's say if the different people wifi or Ethernet will have a single page of hotspot quite specific that will be presented to them according to the terminal by which they will connect ???
That will work only if you are running multiple hotspots.
Now I understood that what a briege is?
A Bridge is a VLAN. and Vlan's ip is the Getway IP for DHCP pool.
Thanks
A Bridge is not a VLAN, although it behaves like one.
couldn't add New DHCP Server - can not run on slave inerface :( ?!
remove Bridge first then create DHCP on target port.