Quantcast
Channel: SRX Services Gateway topics
Viewing all articles
Browse latest Browse all 3959

Unique dhcp-attributes on SRX using JDHCP (new daemon) Server

$
0
0

Folks,

 

I have an older SRX that uses the old style DHCP configuration under system->services->dhcp and it works great. I have some static bindings that have a unique DNS server required for my particular use case. For example:

 

        static-binding b0:a7:37:73:ab:48 {
                fixed-address {
                    10.0.0.46;
                }
                host-name remote-basement;
                name-server {
                    4.2.2.2;
                }
                router {
                    10.0.0.1;
                }

 

 

But, my general pool and other static bindings use the more 'global' pool settings.

 

 

dhcp {
            maximum-lease-time 345600;
            default-lease-time 259200;
            domain-name lab.net;
            name-server {
                10.0.0.2;
            }
             pool 10.0.0.0/24 {
address-range low 10.0.0.2 high 10.0.0.254;
name-server {
10.0.0.2;
}
router {
10.0.0.1;
}
server-identifier 10.0.0.1;
}

 

 

 

Now that I'm upgrading to a 300 series with 18.2, how do I do this?

 

[edit access address-assignment pool mainnet]
SRX300# show 
family inet {
    network 10.0.0.0/24;
    range general {
        low 10.0.0.100;
        high 10.0.0.199;
    }
    dhcp-attributes {
        maximum-lease-time 86400;
        domain-name lab.net;
        name-server {
            10.0.0.2;
        }
        router {
            10.0.0.1;
        }
    }
    host alder {
        hardware-address 70:4d:7a:29:6f:f1;
        ip-address 10.0.0.2;
        ! I want a unique DNS server here
    }
}

 

 

 

I want a unique DNS server for this particular static binding, but there does NOT appear to be an option to do this under the host name hierarchy.

 

SRX300# set family inet host alder ?
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
  hardware-address     Hardware address
  ip-address           Reserved address
  |                    Pipe through a command

It appears that I can only set the hardware-address and the ip-address at this level.

 

Any recommendations on how best to accomplish this with the newer DHCP server?

 

Thanks.


Viewing all articles
Browse latest Browse all 3959

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>