Understanding how ip-pool works

PPPoE related questions
Post Reply
wegnix
Posts: 4
Joined: 03 Oct 2017, 16:13

Understanding how ip-pool works

Post by wegnix »

Hi
I'd like to know more about how ip-pool works.
For exemple, I have a pool 100.64.0.0/24 in this pool there are just 10 ips remaining, but there is a client that its connection is flapping, so when this client connect again the accel-ppp delivers a new IP and not the previous one.
When this client gets the last ip address of the pool (100.64.0.255), what's happen? The client will get any available IP address of the pool, or it'll get the message "no free IPv4 address"?

Exemple of the situation
The IPs remaining
100.64.0.246
100.64.0.247
100.64.0.248
100.64.0.249
100.64.0.250
100.64.0.251
100.64.0.252
100.64.0.253
100.64.0.254
100.64.0.255


Every time the client connect it gets a new IP, my doubt is, when the client gets the last ip (100.64.0.255), what's happen? It will take the next available (100.64.0.246) or it will get the message error "no free IPv4 address"?
The scenario above is for pppoe type

Thanks in advance!
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: Understanding how ip-pool works

Post by Dmitry »

The client will get any available IP address of the pool
vaibhav
Posts: 3
Joined: 05 Jul 2018, 09:52

Re: Understanding how ip-pool works

Post by vaibhav »

Dmitry wrote: 05 Jul 2018, 03:47 The client will get any available IP address of the pool
Hi @Dmitry can you please explain how the 'gw' and 'gw-ip-address' options work in ip-pool section.
With below IP pool config
[ip-pool]
gw=30.0.0.0/24
#gw-ip-address=30.0.0.1
10.0.0.0/24

I am getting logs :
[2018-07-05 15:03:33]: debug: ppp0: ipcp_layer_start
[2018-07-05 15:03:33]: info: ppp0: send [IPCP ConfReq id=1 <addr 0.0.0.0>]

Any Idea why the config is not working and its sending addr as 0.0.0.0?
If I use gw-ip-address instead of gw, it works.

Thanks in advance.
Post Reply