Junos
Highlighted
Junos

SRX320 and DHCP static binding

‎03-19-2020 05:36 PM

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?

 

6 REPLIES 6
Highlighted
Junos

Re: SRX320 and DHCP static binding

‎03-19-2020 06:12 PM

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!!!

Highlighted
Junos

Re: SRX320 and DHCP static binding

‎03-20-2020 01:47 AM

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.

 

 

Highlighted
Junos

Re: SRX320 and DHCP static binding

‎03-20-2020 12:00 PM

Uhu,

 

My apologies,  I interpreted your question incorrectly.

 

Let me check this and get back to you.

 

Cheers

Pooja

Highlighted
Junos

Re: SRX320 and DHCP static binding

‎03-25-2020 02:06 PM

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

Highlighted
Junos

Re: SRX320 and DHCP static binding

‎05-12-2020 08:43 AM

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

Highlighted
Junos

Re: SRX320 and DHCP static binding

‎05-26-2020 02:56 AM

Hi,

 

Any updates here?

Feedback