Community discussions

MikroTik App
 
User avatar
promind
Member Candidate
Member Candidate
Topic Author
Posts: 153
Joined: Thu Feb 23, 2006 11:26 am
Location: Rousse, Bulgaria
Contact:

PPPoE FreeRadius+ IPPOOL problem

Thu Mar 27, 2008 12:58 pm

Hello,
I've recently noticed that ip pools are not being cleared after disconnect and ips stay reserved/I don't know why?!?!?/. So...everytime a user connects next ip is being chosen/not the free one/.Basicly that leads to filling the pools and mikrotik is choosing it's own pools/everytime I have to clear the ippool cache manually/.
Is that a known problem or I'm the first one with such question?
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1768
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: PPPoE FreeRadius+ IPPOOL problem

Thu Mar 27, 2008 2:37 pm

Work as designed!

first pool will give out all addresses (254,253,252,....4,3,2)
Then when it run out of addressees it will check for all free addressees
and the will make a next run only trough free addresses


I think this is the right way to do it - it would be much more expensive to check your pool each time.

If you don't like it you can use many pools and next-pool option. then It will jump to the next pool only when previous pool will be full
 
User avatar
promind
Member Candidate
Member Candidate
Topic Author
Posts: 153
Joined: Thu Feb 23, 2006 11:26 am
Location: Rousse, Bulgaria
Contact:

Re: PPPoE FreeRadius+ IPPOOL problem

Thu Mar 27, 2008 4:05 pm

Work as designed!

first pool will give out all addresses (254,253,252,....4,3,2)
Then when it run out of addressees it will check for all free addressees
and the will make a next run only trough free addresses


I think this is the right way to do it - it would be much more expensive to check your pool each time.

If you don't like it you can use many pools and next-pool option. then It will jump to the next pool only when previous pool will be full
Hi,
I'm not talking about manually made ippools inside mikrotik.
I'm providing ospf to all my routers and I have made ippools using freeradius.
MikroTik router should select ips from my sql database and free the addresses after user disconnect/but it doesn't/.
rlm_ippool_tool -av rzpool1.ippool rzpool1.ipindex
NAS:XXX.XXX.XXX.XXX port:0xa0b - ipaddr:10.3.30.90 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0xa24 - ipaddr:10.3.30.61 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0xa1f - ipaddr:10.3.30.134 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0xa28 - ipaddr:10.3.30.55 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0xa10 - ipaddr:10.3.30.250 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0xa19 - ipaddr:10.3.30.113 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0x9e4 - ipaddr:10.3.30.221 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0xa29 - ipaddr:10.3.30.175 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0x32 - ipaddr:10.3.30.59 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0xa1a - ipaddr:10.3.30.246 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0xa0a - ipaddr:10.3.30.102 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0xa1c - ipaddr:10.3.30.8 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0xa2c - ipaddr:10.3.30.187 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0x9f7 - ipaddr:10.3.30.245 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0x36 - ipaddr:10.3.30.48 active:1 cli:0 num:1
NAS:XXX.XXX.XXX.XXX port:0xa27 - ipaddr:10.3.30.66 active:1 cli:0 num:1

[/quote]
Only 5 of these are currently in use the others remain ghosts.
Just to import that I don't have that problem on other linux/bsd powered devices.
 
gacopl
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Sun Jul 29, 2007 5:11 pm
Location: Poland

Re: PPPoE FreeRadius+ IPPOOL problem

Thu Mar 27, 2008 7:59 pm

I hope that you are just doing stupid mistake cause i am about to implement dynamic ips through radius as well ;)

Do you have interim update interval set? maybe that is the problem.

Cheers
Michal

Who is online

Users browsing this forum: deadmaus911 and 22 guests