PPPoE Server Assigns 3 IP-Pools Randomly

hi,
i just want to know, its possible or not?
i have 3 IP pools (pool-1 192.168.1.0 - pool-2 192.168.2.0 - pool-3 192.168.3.0)
pppoe server assigns IP-Pools randomly to my clients, 33% clints to each pool

if it is possible, can you please tell me how?
Thanks

setup your RADIUS to assign IP Pools randomly to authorization requests, if you can. PPPoE Server will assign IP address from the pool in RADIUS Access-Accept response

p.s. you may use Scheduler to change IP Pool in PPP profile every second :smiley: :smiley: :smiley: am I pervert? %-)

Thanks Chupaka,
if i use Scheduler to change IP Pool in PPP profile, then 33% of each pool is not possible
and also i dont want to use RADIUS for IP Pools
do you have different way to use IP Pools in PPPoE?

Thanks

if i use Scheduler to change IP Pool in PPP profile, then 33% of each pool is not possible

Why not? If the number of clients is small, then I may agree, but I can’t see why you’d want to implement something like this for a small number of clients. With a large number of clients and three pools, on average and over a period of time you would have 33% of clients in each pool and therefore this seems like the best solution to me.

Nick.

Thanks NAB,
can you please tell me witch Scheduler srcipt you think good for this?

Thanks

can you please tell me witch Scheduler srcipt you think good for this?

There isn’t one - you’ll have to write it yourself.

I have a bit of time spare this evening, so I’ll see if I can cobble together an example for you.

Nick.

Thanks

Thanks

The following assumes that three pools are available - dhcp_pool1…3. Tested and works fine.

Script:

/system script add name=changepool policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff source="# 'testpro\
    file' is the name of the profile which contains the remote-address\r\
    \n# we want to access/change.\r\
    \n#\r\
    \n# Get the current one\r\
    \n:local curpool [/ppp profile get testprofile remote-address];\r\
    \n#\r\
    \n# And then change it.\r\
    \n:if (\$curpool=\"dhcp_pool1\") do={/ppp profile set\
    \_testprofile remote-address=\"dhcp_pool2\"};\r\
    \n:if (\$curpool=\"dhcp_pool2\") do={/ppp profile set testprofile remote-a\
    ddress=\"dhcp_pool3\"};\r\
    \n:if (\$curpool=\"dhcp_pool3\") do={/ppp profile set testprofile remote-a\
    ddress=\"dhcp_pool1\"};\r\
    \n"

Schedule:

add comment="" disabled=no interval=10s name=changepool on-event=changepool \
    policy=test start-date=jan/01/1970 start-time=00:00:00

Nick.

Hi,
Thanks NAB,
i try your Script: is working fine
but near 60% to 70%, not 100%

And after your script, established connections (some time: pool-1 200 clints pool-2 215 or pool-3 just 90) or i can’t disconnect clients for reassign new IP-Pool

it is possible? 33% on each pool, can you please tell me how

Thanks

you can write a script to count active users in each pool and then set profile to use pool with less users

Thanks Chupaka,
But normally all Mikrotik Users can’t write script by themself, may be just some Mikrotik users can’t write by themself like me
and who users can’t write by themself they need help from who can write or Mikrotik support team.
So, can you please write that type of script for me?

Thanks

Help… :frowning: …Help
Any Idia? :bulb:
Any thing? :question:
just wait for a Genius who can resolve this problem!

Hi,
Any Genius Person is there who can help me? :exclamation:
or, am I one Genius person who wants help to others?

Hi,
Nobody wants to help me?

:frowning:

even if I want - I do not have such kind of setup to make appropriate testing =(

maybe you should write to [Scripting] section of the forum?

Hi
Scripting guru help me

Hi,

There are a number of people on this forum (including myself) who would be willing to do this work for a fee.

Cheers,

Nick.