Send dhcp-users mailing list submissions to
        dhcp-users@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        dhcp-users-requ...@lists.isc.org

You can reach the person managing the list at
        dhcp-users-ow...@lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. Re: isc dhclient not appling alias to interface
      (paranoid.schizophrenic.2)
   2. Re: isc dhclient not appling alias to interface (Mike)
   3. DHCP server to handle hostname. (dur...@mgtsciences.com)
   4. Re: DHCP server to handle hostname. (Rick Dicaire)


----------------------------------------------------------------------

Message: 1
Date: Thu, 22 Sep 2016 08:41:01 -0500
From: "paranoid.schizophrenic.2" <paranoid.schizophreni...@gmail.com>
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Subject: Re: isc dhclient not appling alias to interface
Message-ID:
        <caakjryb6bu8a2st1sgfnxyj7z+dd23fp4ocr1bmdakp15am...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Not to ask stupid questions, but are you sure that you are actually
executing the right program? It actually takes a bit of work to get
the isc-dhcp-client package to work.

OpenBSD's network start up script (netstart) actually invokes
'dhclient' which is selected based on the PATH.. In my configuration
/sbin is listed before /usr/local/sbin. This means that Theo's version
is automatically selected and the the isc-dhcp-client package version.

If you have handled that little issue, is ir possible that you
actually have both versions running? You can get some very interesting
and unpredictable results by having two separate dhclients attempting
to manage a single interface.

Regards,
The Paranoid Schizophrenic

On 9/21/16, Theodore Wynnychenko <t...@uchicago.edu> wrote:
> Hello
> I am looking at replacing the base dhclient in OpenBSD with the
> isc-dhcp-client
> available in OpenBSD's packages.
>
> The primary reason for this is to take advantage of having an alias ip
> address
> assigned to the interface.
>
> But, I can't seem to figure out how to get this done.
>
> I don't know why, but I can't get the isc-dhcp-client to assign an alias to
> the
> interface, despite the documentation that states it should.
>
> This is being run on OpenBSD current.
>
> The isc dhclient available is 4.3.4
>
> # /usr/local/sbin/dhclient --version
> isc-dhclient-4.3.4
>
>
> I have created an /etc/isc-dhclient.conf file:
> ---
> timeout 60;
> retry 60;
> reboot 10;
> select-timeout 5;
> initial-interval 2;
> script "/usr/local/sbin/dhclient-script";
>
> supersede domain-name "domain.com";
> supersede domain-name-servers d.n.s.1,d.n.s.2;
>
> request subnet-mask, broadcast-address, time-offset, routers;
>
> alias {
>   interface "em0";
>   fixed-address fi.xed.ip.addr;
>   option subnet-mask 255.255.255.0;
> }
> ---
>
> But, after killing the running dhclient process (included with OpenBSD's
> base
> installation), removing the leases at /var/db/dhclient.leases* and starting
> isc-dhcp-client with:
>
> # /usr/local/sbin/dhclient -cf /etc/isc-dhclient.conf em0
>
> The isc client is able to get an offer from the dhcp server:
>
> Sep 21 16:18:05 xxx dhclient: DHCPDISCOVER on em0 to 255.255.255.255 port
> 67
> interval 2
> Sep 21 16:18:05 xxx dhclient: DHCPOFFER from xx.xxx.xx.x
> Sep 21 16:18:10 xxx dhclient: DHCPREQUEST on em0 to 255.255.255.255 port 67
> Sep 21 16:18:10 xxx dhclient: DHCPACK from xx.xxx.xx.x
> Sep 21 16:18:10 xxx dhclient: bound to xx.xxx.xx.xxx -- renewal in 111100
> seconds.
>
> However, the alias does _not_ get assigned to the interface.  The only
> address
> is the dynamically assigned one.
>
> According to the dhclient.conf man page, "the dhcp client can be set up to
> configure an IP alias using the alias declaration."
>
> I understand this to mean that the alias declaration above should result in
> the
> interface being configured with both the dynamically assigned ip address,
> and
> the fi.xed.ip.addr given in the alias declaration of my isc-dhclient.conf
> file.
>
> But this is not happening.  I can find no guidance on what I am doing wrong,
> and
> why the isc-dhcp-client is not assigning the alias.
>
> Thanks for any advice.
>
> Ted
>
>


-- 


paranoid sysadmin


------------------------------

Message: 2
Date: Thu, 22 Sep 2016 13:37:34 -0400
From: Mike <the.li...@mgm51.com>
To: dhcp-users@lists.isc.org
Subject: Re: isc dhclient not appling alias to interface
Message-ID: <9c5f2c3d-648d-d95f-ab94-33838a5f0...@mgm51.com>
Content-Type: text/plain; charset=windows-1252

On 9/22/2016 9:41 AM, paranoid.schizophrenic.2 wrote:
> Not to ask stupid questions, but are you sure that you are actually
> executing the right program? It actually takes a bit of work to get
> the isc-dhcp-client package to work.
> 
> OpenBSD's network start up script (netstart) actually invokes
> 'dhclient' which is selected based on the PATH.. In my configuration
> /sbin is listed before /usr/local/sbin. This means that Theo's version
> is automatically selected and the the isc-dhcp-client package version.
> 
> If you have handled that little issue, is ir possible that you
> actually have both versions running? You can get some very interesting
> and unpredictable results by having two separate dhclients attempting
> to manage a single interface.
>[snip]

fwiw, here is how I use the isc-dhclient in my OpenBSD install.

Here is the hostname.em0 file:

!/usr/local/sbin/dhclient -4 --no-pid -cf
/usr/local/etc/dhcp/dhclient4.conf -lf /var/db/dhcp/dhclient4.leases.wan
\$if


Note that it is one line that was folded by the email client.


------------------------------

Message: 3
Date: Thu, 22 Sep 2016 11:48:58 -0600
From: dur...@mgtsciences.com
To: dhcp-users@lists.isc.org
Subject: DHCP server to handle hostname.
Message-ID:
        
<of3e83a596.ffffdcdd-on87258036.005ff7f0-87258036.0061d...@mgtsciences.com>
        
Content-Type: text/plain; charset="us-ascii"

I have some embedded devices with minimal OS.  I am not sure the DHCP 
client has compiled ability to send hostname.  I have seen this used while 
searching for help on this subject.

host e2rb_004 {
        option host-name "e2rb_004";
        ddns-hostname "e2rb_004";
        hardware ethernet 00:10:60:31:b2:a0;
        fixed-address 172.23.93.38;
}


This does not add the hostname in DNS.  My configuration does work as a 
normal DDNS.  Any machine which sends it's hostname when requesting an IP 
*does* get added into DNS records.  What I would like to do is to handle 
those embedded devices which do *not* send hostname.

Here is the DHCPD options.


=== dhcpd.conf ===
authoritative;

ddns-update-style interim;
ddns-updates on;
ddns-domainname "mydomain.com";
ddns-rev-domainname "in-addr.arpa.";
update-static-leases on;
ignore client-updates;
one-lease-per-client true;

# WPAD definition
option wpad code 252 = text;

key MSI_DHCPD_UPDATER {
    algorithm hmac-md5;
    secret "mysecret";
};

zone mydomain.com. {
    primary 127.0.0.1;
    key MSI_DHCPD_UPDATER;
}

zone 93.23.172.in-addr.arpa. {
    primary 127.0.0.1;
    key MSI_DHCPD_UPDATER;
}

subnet 172.23.93.0 netmask 255.255.255.0 {
    option routers          172.23.93.1;
    option wpad "\n\000";
    option subnet-mask      255.255.255.0;
    option domain-name      "mydomain.com";
    option domain-name-servers  172.23.93.3,172.23.93.9,198.59.115.2;
    option time-offset      -25200; # Mountain Standard Time
    range dynamic-bootp 172.23.93.95 172.23.93.249;
    default-lease-time 57600;
    max-lease-time 57600;
    min-lease-time 57600;
    ddns-domainname "mydomain.com";
}


Any advice is appreciated.  Thank you.



Durwin F. De La Rue
Management Sciences, Inc.
6022 Constitution Ave. NE
Albuquerque, NM  87110
Phone (505) 255-8611


This email message and any attachments are for the sole use of the 
intended recipient(s) and may contain proprietary and/or confidential 
information which may be privileged or otherwise protected from 
disclosure. Any unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipient(s), please contact the 
sender by reply email and destroy the original message and any copies of 
the message as well as any attachments to the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20160922/c4f21219/attachment-0001.html>

------------------------------

Message: 4
Date: Thu, 22 Sep 2016 14:22:55 -0400
From: Rick Dicaire <kri...@gmail.com>
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Subject: Re: DHCP server to handle hostname.
Message-ID:
        <ca+cc--c78a-c9ttb0zwsrqpye5m6gpx2lwvmxovowqzpmou...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Here's something I use when hosts don't send a hostname.
In global options:

ddns-hostname = pick (option fqdn.hostname, option host-name, concat
("ddns-", binary-to-ascii (10, 8, "-", leased-address)));
option host-name = config-option server.ddns-hostname;

Resulting ddns hostname is ddns-xxx-xxx-xxx-xxx.domain_name

Edit to suit.

On Thu, Sep 22, 2016 at 1:48 PM, <dur...@mgtsciences.com> wrote:

> I have some embedded devices with minimal OS.  I am not sure the DHCP
> client has compiled ability to send hostname.  I have seen this used while
> searching for help on this subject.
>
> host e2rb_004 {
>         option host-name "e2rb_004";
>         ddns-hostname "e2rb_004";
>         hardware ethernet 00:10:60:31:b2:a0;
>         fixed-address 172.23.93.38;
> }
>
>
> This does not add the hostname in DNS.  My configuration does work as a
> normal DDNS.  Any machine which sends it's hostname when requesting an IP
> *does* get added into DNS records.  What I would like to do is to handle
> those embedded devices which do *not* send hostname.
>
> Here is the DHCPD options.
>
>
> === dhcpd.conf ===
> authoritative;
>
> ddns-update-style interim;
> ddns-updates on;
> ddns-domainname "mydomain.com";
> ddns-rev-domainname "in-addr.arpa.";
> update-static-leases on;
> ignore client-updates;
> one-lease-per-client true;
>
> # WPAD definition
> option wpad code 252 = text;
>
> key MSI_DHCPD_UPDATER {
>     algorithm hmac-md5;
>     secret "mysecret";
> };
>
> zone mydomain.com. {
>     primary 127.0.0.1;
>     key MSI_DHCPD_UPDATER;
> }
>
> zone 93.23.172.in-addr.arpa. {
>     primary 127.0.0.1;
>     key MSI_DHCPD_UPDATER;
> }
>
> subnet 172.23.93.0 netmask 255.255.255.0 {
>     option routers          172.23.93.1;
>     option wpad "\n\000";
>     option subnet-mask      255.255.255.0;
>     option domain-name      "mydomain.com";
>     option domain-name-servers  172.23.93.3,172.23.93.9,198.59.115.2;
>     option time-offset      -25200; # Mountain Standard Time
>     range dynamic-bootp 172.23.93.95 172.23.93.249;
>     default-lease-time 57600;
>     max-lease-time 57600;
>     min-lease-time 57600;
>     ddns-domainname "mydomain.com";
> }
>
>
> Any advice is appreciated.  Thank you.
>
>
>
> Durwin F. De La Rue
> Management Sciences, Inc.
> 6022 Constitution Ave. NE
> Albuquerque, NM  87110
> Phone (505) 255-8611
>
>
> This email message and any attachments are for the sole use of the
> intended recipient(s) and may contain proprietary and/or confidential
> information which may be privileged or otherwise protected from disclosure.
> Any unauthorized review, use, disclosure or distribution is prohibited. If
> you are not the intended recipient(s), please contact the sender by reply
> email and destroy the original message and any copies of the message as
> well as any attachments to the original message.
> _______________________________________________
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>



-- 
aRDy Music and Rick Dicaire present:
http://www.ardynet.com
http://www.ardynet.com:9000/ardymusic.ogg.m3u
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20160922/d5cf236f/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users

------------------------------

End of dhcp-users Digest, Vol 95, Issue 12
******************************************

Reply via email to