Junos OS

Expand all | Collapse all

SRX320 and DHCP static binding

  • 1.  SRX320 and DHCP static binding

    Posted 03-19-2020 17:36

    Hi all,

     

    We have an SRX320 with JunOS 18.2R3-S2, and we need to create a DHCP static binding with overrided parameters (DNS and domain name should be differ from pool settings).

    In old JunOS, I would do it like:

     

                static-binding 00:aa:bb:cc:01:aa {
                    fixed-address {
                        192.168.0.10;
                    }
                    domain-name company.net;
                    name-server {
                        192.168.0.1;
                        192.168.0.2;
                    }

    But how to do it with Address Pools on the modern JunOS version?

     



  • 2.  RE: SRX320 and DHCP static binding

     
    Posted 03-19-2020 18:13

    Hi Uhu,

     

    First, refer https://kb.juniper.net/KB34617 for information on how DHCP is configured on the updated Junos codes.

     

    You will find static binding configuration at 'host'

    root@juniper# set access address-assignment pool b family inet ?
    Mar 20 02:16:02
    Possible completions:
    <[Enter]> Execute this command
    + apply-groups Groups from which to inherit configuration data
    + apply-groups-except Don't inherit configuration data from these groups
    > dhcp-attributes DHCP options and match criteria
    > excluded-address Excluded Addresses
    > excluded-range Excluded address range
    > host Hostname for static reservations                     <<<<here 
    network Network address
    > range Address range
    > xauth-attributes Configure xauth attributes
    | Pipe through a command

     

    This should allow you to bind a hardware address to an ip.

     

    Let us know if there are questions.

    Cheers

    Pooja

    Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!



  • 3.  RE: SRX320 and DHCP static binding

    Posted 03-20-2020 01:47

    Hi Pooja,

     

    I know how to bind a hardware address to an ip on the updated Junos. This ist not my question.

     

    My question is: how to override DHCP pool settings for binded address? E.g. set different domain name and DNS for this particular address. Above I have written an example how I used to do it on the old Junos. How to do the same on the new Junos?

     

    Thank you.

     

     



  • 4.  RE: SRX320 and DHCP static binding

     
    Posted 03-20-2020 12:01

    Uhu,

     

    My apologies,  I interpreted your question incorrectly.

     

    Let me check this and get back to you.

     

    Cheers

    Pooja



  • 5.  RE: SRX320 and DHCP static binding

    Posted 03-25-2020 14:07

    Iv'e been looking for a way to do this too to no avail...



  • 6.  RE: SRX320 and DHCP static binding

    Posted 05-12-2020 08:43

    Does this mean that only the old DHCP daemon supports individual host dhcp attributes?  I just converted my config to jDHCP but I am afraid I will have to convert it back now.

     

    --BobG



  • 7.  RE: SRX320 and DHCP static binding

    Posted 05-26-2020 02:57

    Hi,

     

    Any updates here?