Community discussions

MikroTik App
ajaywi
newbie
Topic Author
Posts: 47
加入: Wed Nov 25, 2009 7:31 pm

Hotspot giving out IPS to devices behind router

Sat Oct 16, 2010 6:13 pm

some of my customers use a router in there home. The mikrotik is giving out IP addresses to devices behind there router. How do i stop it so that Hotspots dhcp only gives to there router. and then there router would handle internal devices?
Top
fewi
Forum Guru
Forum Guru
Posts: 7717
加入: Tue Aug 11, 2009 3:19 am

Re: Hotspot giving out IPS to devices behind router

Sat Oct 16, 2010 6:34 pm

Set up their router to NAT traffic on its interface facing your Hotspot. At that point the Hotspot only sees the IP address of the router, and the router - being a layer 3 hop - will already be using only its own MAC address. At that point the Hotspot will only see the router, and all devices behind it will be hidden away.
It is impossible that you're giving DHCP to devices behind a router unless that router is configured as a DHCP relay agent and your DHCP server is specifically configured to serve the different network behind that router. If clients behind that device are receiving DHCP addresses on the same subnet then that device isn't a router, it is a switch. In that case your solution is to introduce routers, and not switches. Maybe you are confusing the universal NAT feature with DHCP? How are you determining that your router is handing out DHCP leases to devices behind client routers?

Also, why are you using a Hotspot for what appears to be permanent customers? Wouldn't PPPoE be a much better fit?
Top
ajaywi
newbie
Topic Author
Posts: 47
加入: Wed Nov 25, 2009 7:31 pm

Re: Hotspot giving out IPS to devices behind router

Sat Oct 16, 2010 6:46 pm

originally setup as Hotspot cause i was able to "figure out" how to set speeds haha
Can PPPoE do bandwidth throttling as good as hotspot?

Also was easy way for my employees to add a customers Radio MAC to list then select the speed they were paying for.

My only issue is now, I have alot of customers that need different Gateways and Im having to build Mangle for each user that needs a different Gateway then the default one. PPPoE make this any easier?

AND TO THIS QUESTION:
How are you determining that your router is handing out DHCP leases to devices behind client routers?

The Hotspot Active list is showing the customers RADIO MAC 2+ times with different IPs, I check and each IP is for a computer on the otherside of there router.
Top
fewi
Forum Guru
Forum Guru
Posts: 7717
加入: Tue Aug 11, 2009 3:19 am

Re: Hotspot giving out IPS to devices behind router

Sat Oct 16, 2010 6:54 pm

Yes, PPPoE should work better for you. The wiki has the manual - read up on it and try it out.
That isn't DHCP, that's universal NAT. The customer routers aren't set to NAT on their WAN interfaces if you can see inside IPs. This isn't something you solve on your Hotspot router, it needs to be solved on their router.
You can set the address pool on the Hotspot to 'none' to turn off universal NAT.
Top
ajaywi
newbie
Topic Author
Posts: 47
加入: Wed Nov 25, 2009 7:31 pm

Re: Hotspot giving out IPS to devices behind router

Sat Oct 16, 2010 7:06 pm

If I turn off Addres Pool in the Hotspot. Will the MT router still give out an IP for the customers radio and router?

Setup:

MT Router ----> Ubiquiti wireless <---> Ubiquiti Customer Radio <----> Cus Router <---> cus computer(s)

I need MT to give out IPs to both ubiquiti Customer radio and Cus Router.

(in the list of IP's givin out, im not seeing the customers computer MAC. Its showing the Ubiquiti radios IP for as many IPs that got taken from customer connected devices)
Top
fewi
Forum Guru
Forum Guru
Posts: 7717
加入: Tue Aug 11, 2009 3:19 am

Re: Hotspot giving out IPS to devices behind router

Sat Oct 16, 2010 7:11 pm

Again, universal NAT has nothing to do with DHCP handing out leases.
Top
xxiii
Member Candidate
Member Candidate
Posts: 234
加入: Wed May 31, 2006 12:55 am

Re: Hotspot giving out IPS to devices behind router

Mon Oct 18, 2010 10:37 pm

To your earlier question, yes PPPoE (in Mikrotik routers) can do rate limits.

PPPoE可能帮助不同的网关的情形n, but thats a complicated discussion. General Hint though, create as many IP pools as gateways, and using sufficient radius server, assign each customer to be allocated from appropriate pool for that customer, and create mangle rules that apply to the pools (rather than the customers).
Top
johnsonnetwork
刚刚加入了
Posts: 13
加入: Mon Jul 25, 2011 7:29 am

Re: Hotspot giving out IPS to devices behind router

Thu Dec 22, 2011 4:27 am

ajaywi

Did you ever get this fixed? I am seeing the same thing. but I am seeing the same mac trying to pull more then one IP.
Top
changeip
Forum Guru
Forum Guru
Posts: 3828
加入: Fri May 28, 2004 5:22 pm

Re: Hotspot giving out IPS to devices behind router

Thu Dec 22, 2011 6:48 am

使用模式或圣ation-wds mode? you need station-wds.
Top
tombee79
Member Candidate
Member Candidate
Posts: 246
加入: Sun May 09, 2010 2:28 am

Re: Hotspot giving out IPS to devices behind router

Thu Jan 05, 2012 1:29 am

Check if you hotspot allows to have two or three or more ips per MAC.
Top

Who is online

Users browsing this forum:Ahrefs [Bot],Bing [Bot],Google [Bot],ICTShift,joypatelonly,Laxity,Semrush [Bot],Techsystemand 40 guests