Community discussions

MikroTik App
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Fri Jul 23, 2010 3:54 pm

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.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Fri Jul 23, 2010 4:15 pm

 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Fri Jul 23, 2010 5:03 pm

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.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Fri Jul 23, 2010 5:15 pm

The manual contains an example setup that walks through the entire configuration - just replace your interface names and IP addresses.
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Fri Jul 23, 2010 6:43 pm

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.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Fri Jul 23, 2010 6:50 pm

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".
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Fri Jul 23, 2010 7:53 pm

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.
Image

thanks so much.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Fri Jul 23, 2010 8:08 pm

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.
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Fri Jul 23, 2010 8:57 pm

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.

Image

Image

Image

Image

thanks so much. i really appreciate.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Fri Jul 23, 2010 9:20 pm

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.
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Fri Jul 23, 2010 9:33 pm

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.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Fri Jul 23, 2010 9:39 pm

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".
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Fri Jul 23, 2010 9:45 pm

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?

Image

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.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Fri Jul 23, 2010 9:51 pm

That should work.
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Fri Jul 23, 2010 9:59 pm

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

thanks for your kind support.
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Sat Jul 24, 2010 12:31 pm

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?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

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

Sat Jul 24, 2010 1:37 pm

add masquerade rule for out-interface=ether1 in Firewall -> NAT
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Sat Jul 24, 2010 2:29 pm

please how do i add the rule from here?

Image
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

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

Sat Jul 24, 2010 2:39 pm

what is 'wan' interface?
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Sat Jul 24, 2010 2:48 pm

Image

thanks for your concern, waiting for your reply.
Last edited by routik on Sun Apr 10, 2011 12:41 am, edited 3 times in total.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

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

Sat Jul 24, 2010 2:53 pm

so do you receive Internet via 'wan' or 'ether1'?

you have masquerade rule only for 'wan' interface (it has comment "Added by webbox"). probably you need the same rule for 'ether1'
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Sat Jul 24, 2010 3:01 pm

so do you receive Internet via 'wan' or 'ether1'?
formerly is via wan but now i want it to be from ehter1.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

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

Sat Jul 24, 2010 3:09 pm

then you also need to change your default route
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Sat Jul 24, 2010 3:22 pm

ok! how will i do it?
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Sat Jul 24, 2010 5:43 pm

I'm hooked please i need you guys help to finish what i have started.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Sat Jul 24, 2010 8:55 pm

Go to IP > Firewall > NAT, find the rule that has an action of 'masquerade', double click it, find the tab that has a drop down for Out-Interface. It will be set to 'wan', set it to 'ether1' instead. OK to save.

Go to IP > Routes and delete everything you see, then reboot the RouterBOARD.

Attend training as soon as you can.
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Sat Jul 24, 2010 9:45 pm

thanks so much for coming in to rescue me
this is the image of the route, so i should delete everything here?

Image



then incase i want to revert back to its formal, i can easily create them back on my own again?



thanks.
Last edited by routik on Sun Apr 10, 2011 12:44 am, edited 1 time in total.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Sat Jul 24, 2010 10:20 pm

Since I can now see that, double click on the route with a destination of 0.0.0.0 and instead of 216.226.64.245 put in the internal IP address of the Untangle server (presumably 192.168.2.1).
 
User avatar
routik
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Wed Oct 14, 2009 5:40 pm
Location: Abuja-Nigeria
Contact:

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

Tue Jul 27, 2010 8:52 pm

Since I can now see that, double click on the route with a destination of 0.0.0.0 and instead of 216.226.64.245 put in the internal IP address of the Untangle server (presumably 192.168.2.1).
thanks so much it worked exactly the way you instructed. you made my week.


thank you so much.

Who is online

Users browsing this forum: araqiel, Bing [Bot], Josephny and 81 guests