Reuse IPs from the pool with leased time expired

IPoE related questions
Post Reply
gondim
Posts: 64
Joined: 04 Mar 2016, 14:44

Reuse IPs from the pool with leased time expired

Post by gondim »

Hi,

I'm doing tests with accel-ppp. Congratulations! Excellent software.
I have a question related to ipoe and ip-pool. Let's suppose I have this setting:

[ipoe]
verbose=5
check-mac-change=0
username=lua:username
lua-file=/etc/accel-ppp.lua
lease-time=600
renew-time=600
max-lease-time=3600
unit-cache=0
proxy-arp=1
gw-ip-address=192.168.0.1/24
interface=re:eth3\.668\.([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-4][0-9][0-9][0-9]),mode=L2,shared=0,start=dhcpv4,ifcfg=1,ipv6=1
vlan-mon=eth3.668,1-4095
vlan-timeout=60
ip-pool=ipoe

[ip-pool]
gw-ip-address=192.168.0.1
attr=Framed-Pool
192.168.0.2/24,name=ipoe

4 clients connected and received the IPs:

192.168.0.2
192.168.0.3
192.168.0.4
192.168.0.5

Let's assume that the client 192.168.0.2 shutdown your router for more than 1 hour and another client connected. This new client should get IP 192.168.0.2, since it would be available through leased time. But what happens is that it receives IP 192.168.0.6.

In a scenario where we have public and private IP pools, it would be interesting that all public IPs were in use before we started using private IPs.

Would this idea be interesting?
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: Reuse IPs from the pool with leased time expired

Post by Dmitry »

hi,
use new feature of git version:
[ipoe]
ip-pool=white
[ip-pool]
192.168.0.0/24,name=gray
1.1.1.0/24,name=white,next=gray
gondim
Posts: 64
Joined: 04 Mar 2016, 14:44

Re: Reuse IPs from the pool with leased time expired

Post by gondim »

Thanx Dmitry!!!

I'll test here and again, congratulations to the excellent software.
Post Reply