ippool: implemented next pool support

News of development process
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

ippool: implemented next pool support

Post by Dmitry »

Code: Select all

commit a57c152927844cb511d48a9de529149d4db97f51
Author: Dmitry Kozlov <xeb@mail.ru>
Date:   Thu Dec 14 17:34:59 2017 +0300

    ippool: implemented next pool support
    
    config changes:
    [ip-pool]
    x.x.x.x/mask,name=pool1
    y.y.y.y/mask,name=pool2,next=pool1
Реализована возможность указать следующий пул при исчерпании адресов.
Следующий пул должен быть объявлен в конфиге раньше чем идёт на него ссылка.
nik247
Posts: 108
Joined: 11 Oct 2014, 15:57

Re: ippool: implemented next pool support

Post by nik247 »

Отлично. Спасибо.
Но есть пару вопросов:
1) если начались уже выдаваться IP с pool2, и произошло освобождение в pool1, то с какого пула будет выдача?
2) как будет отрабатываться "next pool" при установке shuffle=1?
3) поддерживается ли "reload"?
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: ippool: implemented next pool support

Post by Dmitry »

1. корневой пул всегда приоритетный, если в нём нет, то переход в next
2. shuffle никак не влияет, он действует внутри пула
3. релоада пока нет, там надо всё переделывать
nik247
Posts: 108
Joined: 11 Oct 2014, 15:57

Re: ippool: implemented next pool support

Post by nik247 »

Спасибо за развернутый ответ.
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: ippool: implemented next pool support

Post by jalee »

Hi Dmitry,
what is version can support this function? I used version "92af4b9535a8d9eee6800157a72fc87572b54df9" is not working.
Thanks,


inet@250-50-client:/etc$ accel-cmd -V
accel-cmd 92af4b9535a8d9eee6800157a72fc87572b54df9

[pppoe]
verbose=1
called-sid=mac
ip-pool=pppoe1
vlan-mon=eth1.1,1-4095
vlan-name=%I.%N
interface=re:eth1\.

[ip-pool]
gw-ip-address=100.64.255.255
attr=Framed-Pool
192.168.0.0/24,name=pppoe1
192.170.0.0/24,name=pppoe2,next=pppoe3
192.169.3.1-255,name=pppoe3,next=pppoe4
192.171.0.0/16,name=pppoe4,nex=pppoe1
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: ippool: implemented next pool support

Post by Dmitry »

commit a57c152927844cb511d48a9de529149d4db97f51 on master branch

one remark: next pool must be defined before being referenced
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: ippool: implemented next pool support

Post by jalee »

Got it,
How can I download this version?

Thanks,
dimka88
Posts: 866
Joined: 13 Oct 2014, 05:51
Contact:

Re: ippool: implemented next pool support

Post by dimka88 »

Get master brunch from sourceforge

Code: Select all

git clone https://git.code.sf.net/p/accel-ppp/code accel-ppp-code
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: ippool: implemented next pool support

Post by jalee »

Thanks!
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: ippool: implemented next pool support

Post by jalee »

Hi All,
I used this version testing next pool function for pppoe subscriber, but can't dial up over 256, can you help check.
Thanks,

BR,

hinet@250-50-client:~$ accel-cmd -V
accel-cmd 2e06c8c9278ab283907f3bb9d1fa28c5edb5f1e4

[pppoe]
verbose=1
called-sid=mac
ip-pool=pppoe1
vlan-mon=eth1.1,1-1000
vlan-name=%I.%N
interface=re:eth1\.

[ip-pool]
gw-ip-address=100.64.255.255
attr=Framed-Pool
192.168.0.0/24,name=pppoe1
192.170.0.0/24,name=pppoe2
192.169.3.1-255,name=pppoe3
192.171.0.0/16,name=pppoe4,next=pppoe1
Post Reply