[j-nsp] JUNOS 8.5 dhcp server confusion

Dan Evans pzdevans at gmail.com
Tue May 13 14:00:29 EDT 2008


Joe,

Check out the interface restrictions at the bottom of this link to the 8.5
documentation:

http://www.juniper.net/techpubs/software/jseries/junos85/jseries85-admin-guide/jN1606C.html




On 5/13/08, Joe Abley <jabley at ca.afilias.info> wrote:
>
> Hi all,
>
> I came across an oddity the other day that might ring bells for
> someone here. I'm having trouble with the dhcp server, and in
> particular getting static bindings (fixed assignment of IP addresses
> for particular client MACs) to work. This is not an Afilias exercise,
> so don't read too much into the from address I'm using.
>
> Router is a J2320 running 8.5R3.4. Config looks like the snippet below.
>
> What happens when the client with MAC 00:50:56:01:01:64 requests a
> lease is that a dynamic binding from the dynamic pool is formed, and
> the client is not given the A.B.C.164 address. I've tried the config
> below with and without the address-range phrase in the pool stanza,
> and the result is the same.
>
> When I was testing last night, I saw the following kind of output
> recorded on the router (not pasted; this is constructed from memory):
>
> jabley at router> show system services dhcp binding
> IP address       Hardware address   Type     Lease expires at
> A.B.C.164        00:50:56:01:01:64  static   never
> A.B.C.166        00:50:56:01:01:64  dynamic  <timestamp>
> jabley at router>
>
> which seemed very odd. What use is a static binding if the server will
> happily make up a dynamic binding for the same MAC?
>
> I find the documentation for the JUNOS DHCP server to be quite vague.
> Does anybody else have a working DHCP config, ideally on 8.5, that
> includes static bindings and works?
>
>
> Joe
>
> system {
>         dhcp {
>             maximum-lease-time 7200;
>             default-lease-time 3600;
>             name-server {
>                 A.B.C.135;
>                 A.B.C.141;
>             }
>             traceoptions {
>                 file jdhcpd.log size 10m files 10;
>             }
>             pool A.B.C.160/29 {
>                 address-range low A.B.C.164 high A.B.C.166;
>                 router {
>                     A.B.C.161;
>                 }
>             }
>             static-binding 00:50:56:01:01:64 {
>                 fixed-address {
>                     A.B.C.164;
>                 }
>             }
>         }
>     }
>
> }
> interfaces {
>     ge-0/0/3 {
>         vlan-tagging;
>         unit 100 {
>             vlan-id 100;
>             family inet {
>                 address A.B.C.162/29 {
>                     vrrp-group 100 {
>                         virtual-address A.B.C.161;
>                     }
>                 }
>             }
>         }
>     }
> }
>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp
>


More information about the juniper-nsp mailing list