(HELP) I WANT TO CONFIGURE ETHER1 PORT AS DHCP CLIENT

I am running an untangle as my server and using Mikrotik hotspot for my wireless biller, but the problem am having now is hto to configure one of the mikrotik ports as DHCP client to be collecting from the untangle server and then giving out to hotspot clients. though i have tried searching for how i can integrate hotspot into the untangle server without using the mikrotik router but to no avail, so i have no other option left than to look for how to configure one of the mikrotik ports as DHCP client to the untangle server.
please i am a newbie, help me out.

thanks.
Collins.

http://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Relay

thanks for your reply i really appreciate, like i said earlier on, i am a complete novice in this and it wont be easy for me to understand the above manual just like that.

The manual contains an example setup that walks through the entire configuration - just replace your interface names and IP addresses.

i can only access my router via winbox, dont know anything in coding for now thats why i am finding it difficult.

thanks for your concern and reply so far.

There’s a “New Terminal” button in Winbox that brings up a CLI.
Also, the commands translate pretty much 1:1

/ip pool add name=Local1-Pool ranges=192.168.1.11-192.168.1.100

Click on the IP menu, click on the Pool option. Click the “+” button to add a pool, set the “Name” field to “Local1-Pool”, set the “Ranges” field to “192.168.1.11-192.168.1.100”.

i am really nervous to do something i dont even uderstand, below is the image display of my router when i logged in, the IP address of the linux server (DHCP server) is 192.168.2.0-192.168.2.255, please can you tell me where to go in the winbox and inout this in my ether1 port and also make it work with the laptop( hotspot) as illustrated. please make it a little bit simpler for me.

thanks so much.

OK.

Click on that “New Terminal” button and run the following commands, and post the output here:

/interface print
/ip address print
/ip dhcp-server export
/ip dhcp-relay export

And post a little bit about how the ‘Untangle’ server connects to the RouterBOARD, and how the DHCP server there is set up.

i am very very grateful for your kind support.
the images below shows the output of the above commands you instructed i should run.
as for the untangle sever, it’s a server that has two network cards, one is connected to the internet modem (Idirect modem) and the second is connected to the switch, so the untangle is getting internet from the internet modem and giving back to the switch where by the clients get connected(ip address 192.168.2.1) through the switch . so what i want is to configure the mikrotik ether1 port as dhcp client to also connect to that switch and give back to the wifi clients through the laptop (hotspot) port. hope i was able to clerify my self better. sorry for my poor english.

thanks so much. i really appreciate.

Are you expecting clients behind the ‘laptop’ interface to get IP addresses in the range of 192.168.2.0/24? Because that won’t work, that network already has a gateway (the Untangle Server). You can have the Untangle Server hand out DHCP addressing for 192.168.1.0/24 even though that network isn’t on that server, as long as the DHCP service on the server supports that (which I don’t know that it does, or how to configure that) - that’s what I was assuming you are talking about.

Are you expecting clients behind the ‘laptop’ interface to get IP addresses in the range of 192.168.2.0/24?

no no no! laptop clients (hotspot port) on the laptop has already been configured to be giving out IP 192.168.1.1 which is ok by me but my proble is to use ether 1 port as dhcp client to bring in internet where by the laptop clients on the hotspot can browse (ether 1 port will be something like access point) if i am right.

But you already have a public IP address on the WAN interface. Can’t your Hotspot clients get on the Internet through that?

To set up a DHCP client, click on the IP menu, then DHCP client, click “+”, select ether1 from the interface drown down and check “Use default route” and “Use DNS”.

But you already have a public IP address on the WAN interface. Can’t your Hotspot clients get on the Internet through that?

that was when miktrotik was serving as my server now am using untangle server but still needs the mikrtotik hotspot biller for my wifi .
see the image below, so if i do it like that, the hotspot clients can login and browse the internet without any other special configuration?

i am planning to go for three day training (workshop) on mikrotik by november which will help me to know the basics and understand how mikrotik works before i will come back to use it again as my server.

That should work.

ok, i post my output when i try it out.
i pray it works out for me.

thanks for your kind support.

i tried it,it picked IP automatically including DNS of the untangle and was able to login to the hotspot through wifi but could not open webpage. what could be the course?

add masquerade rule for out-interface=ether1 in Firewall → NAT

please how do i add the rule from here?

what is ‘wan’ interface?

thanks for your concern, waiting for your reply.