SRX

Expand all | Collapse all

SRX 240H - Getting ip addresses only from DHCP (binding static) - others not

Jump to Best Answer
  • 1.  SRX 240H - Getting ip addresses only from DHCP (binding static) - others not

    Posted 27 days ago

    Hi, I'm newby and I'm learning all the time 🙂 I have the SRX 240H. Is it possible to somehow set DHPC - to provide ONLY addresses entered in Static Bindings.
    Scenario - there are Access Points (WIFI) on one of the VLANs and I would like only the addresses entered into the static bindings to be downloaded from DHCP - and that no one who is not entered there would receive the address and access to the Internet (not knowing in RADIUS).
    Can you give me a hint?



  • 2.  Re: SRX 240H - Getting ip addresses only from DHCP (binding static) - others not
    Best Answer

     
    Posted 27 days ago

    If you restrict your range to only the addresses you manually specify then you will have achieved your desired result.

     

    access {
        address-assignment {
            pool wireless-pool {
                family inet {
                    network 10.0.0.0/28;
                    range wireless {
                        low 10.0.0.5;
                        high 10.0.0.10;
                    }
                    dhcp-attributes {
                        router {
                            10.0.0.1;
                        }
                    }
                    host host1 {
                        hardware-address 12:34:56:78:90:00;
                        ip-address 10.0.0.5;
                    }
                    host host2 {
                        hardware-address 12:34:56:78:90:01;
                        ip-address 10.0.0.6;
                    }
                    host host3 {
                        hardware-address 12:34:56:78:90:03;
                        ip-address 10.0.0.7;
                    }
                    host host4 {
                        hardware-address 12:34:56:78:90:04;
                        ip-address 10.0.0.8;
                    }
                    host host5 {
                        hardware-address 12:34:56:78:90:05;
                        ip-address 10.0.0.9;
                    }
                    host host6 {
                        hardware-address 12:34:56:78:90:06;
                        ip-address 10.0.0.10;
                    }
                }
            }
        }
    }