Dunno exactly what Im doing wrong, but let me say something,
My hotspot setup is quiet simple. The hotspot interface has an address pool with public addresses. The DHCP server has an address pool with private adresses. But I dont get the following:
a- When a client has a valid ip config, but not belongs to the hotspot private network (e.g: client config = 169.254.123.123 hotspot network = 192.168.10.0/24), I can see 169.254 and the “to address” from the hotspot hosts with a public IP. Seems to be correct. If this client do authenticate, everything goes right.
b- When a client has a valid ip config and belongs to the hotspot private network (e.g: client config = 192.168.10.4 hotspot network = 192.168.10.0/24), I can see on both “address” and “to address” with the same private IP. Seems to be correct too. If this client do authenticate and receive a radius attribute framed-pool equal to that public ip pool, everything goes right. But, why this client does not grab a public IP from the pool if the radius attribute is removed?
c- When a client has a valid public ip config and belongs to the hotspot public network (e.g: client config = 189.9.9.9 hotspot public network = 189.9.9.0/25), I can see on both “address” and “to address” with the same public IP. Seems to be correct too. If this client do authenticate, everything goes right.
This behavior suggest that the DHCP server should give public adresses instead private ones, even if there is no active hotspot users. Then authenticated users just keep using it. The same as disabling the universal client (hotspot address pool=none), but with a waste of public IP resources.
Then the (b) behavior seems to be the better one. Only authenticated users grab a public IP from the pool by receiving the radius attribute “framed-pool”. What I dont get is why (a) behavior does not happen if I remove this radius attribute? I mean, that radius attribute is strict required if you want to save public IP resources? Otherwise, Without the radius attribute, client hosts will use public IP addresses even without authentication?
Please, give me some light. I cant see its idea clearly. I was thinking that only active (authenticated) hotspot users could have a public IP address, like on pppoe servers.
Thanks
Ozelo