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 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?
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.
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"
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 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?