Assigning Static Ip or Pool of Static Ip's using DHCP



  • How can I assign static Ip or Pool of static Ip's using dhcp to users authenticated through captive portal ?
    Lets say a user auth's on 3 of his devices using same user/pass, I want to assign this user a specific pool of ip addresses wherein the ip addresses will have specific firewall & trafic shaper rules
    I have installed FreeRadius and tried assign static ip through that too but didn't worked
    I want to do it without using any vlans/assigning multiple interfaces
    Any Idea ?


  • Rebel Alliance

    @ahmed20n8 hi,

    Because DHCP process is made before connecting to the captive portal, it is not possible to assign specific IPs to users passing through the captive portal

    Dedicated vlans is normally the correct way to resolve this issue.



  • Alryt Thankyou



  • @ahmed20n8 said in Assigning Static Ip or Pool of Static Ip's using DHCP:

    I have installed FreeRadius and tried assign static ip through that too but didn't worked

    @free4 said in Assigning Static Ip or Pool of Static Ip's using DHCP:

    Because DHCP process is made before connecting to the captive portal, it is not possible to assign specific IPs to users passing through the captive portal

    Why not ?

    .... but assigning a "DHCP Static Mappings" for the IP on the captive portal's DHCP server page is possible.
    This way, the device will always obtain the same IP. That IP should be outside of the DHCP's server portal pool range.
    I just tried it : it works. My device obtained the static DHCP lease == always the same IP.

    I could now apply special "IP" conditional conditions with firewall rules .... didn't tied that.


Log in to reply