Community discussions

MikroTik App
 
oeyre
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Wed May 27, 2009 12:48 pm

How to stop PPPoE sessions being assigned same IP from pool?

Wed May 27, 2009 1:21 pm

Hello,

I am running some 10-20 RouterBOARD as PPPoE LNS and am occasionally coming up against the following problem. Most of our users do not have a static IP so they are given an IP from a pool created on the MikroTik when they log in to PPPoE.

It would seem that RouterOS default behaviour is to keep handing out the same IP to the same user as evidenced here: http://www.mikrotik.com/documentation/m ... PPool.html (Note that whenever possible, the same ip address is given out to each client).

Every once in a while this causes problems however for example when a user is handed out an IP at the top or bottom of a /24 subnet (ie x.x.x.0 or x.x.x.255) and tries to access something on a server/router that isnt aware of classless subnetting.

On our Cisco based LNS the solution is easy, just disconnect and reconnect PPPoE and they will get a completely different IP. However on RouterOS the solution takes much longer to implement.

Is there an option that we can set which will make RouterOS hand out a different IP from the pool every time?
 
oeyre
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Wed May 27, 2009 12:48 pm

Re: How to stop PPPoE sessions being assigned same IP from pool?

Mon Jun 01, 2009 2:21 pm

Does anybody know of a solution to this problem?
 
oeyre
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Wed May 27, 2009 12:48 pm

Re: How to stop PPPoE sessions being assigned same IP from pool?

Thu Jun 11, 2009 4:41 pm

Bump
 
oeyre
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Wed May 27, 2009 12:48 pm

Re: How to stop PPPoE sessions being assigned same IP from p

Mon May 10, 2010 8:42 am

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

Re: How to stop PPPoE sessions being assigned same IP from p

Mon May 10, 2010 2:06 pm

so why not just exclude x.x.x.0 and x.x.x.255 from the pool?
 
oeyre
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Wed May 27, 2009 12:48 pm

Re: How to stop PPPoE sessions being assigned same IP from p

Wed May 19, 2010 10:13 am

so why not just exclude x.x.x.0 and x.x.x.255 from the pool?
Well partly because I am lazy but also because if I am throwing rather large pools (ie /22 or larger) at my LNS it starts to become unmanageable to simply exclude the boundary addresses.
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: How to stop PPPoE sessions being assigned same IP from p

Wed May 19, 2010 10:50 am

Hi,

you can make pools like:

192.168.1.2/22-192.168.254/22
192... etc..

Or if you prefer, asign static leases to all this .0 and .255 IPs to a fake MAC, then.. anyone would get this IPs from DHCP, because this IPs are from fake MACs..

Thanks,
 
oeyre
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Wed May 27, 2009 12:48 pm

Re: How to stop PPPoE sessions being assigned same IP from p

Fri Jun 04, 2010 1:58 am

Hi,

you can make pools like:
You must have missed the part where I said I was lazy ;)

Who is online

Users browsing this forum: Bing [Bot] and 212 guests