dhcpd, iscsi and a raspberry pi
galtsev at kicp.uchicago.edu
Tue Mar 15 23:06:19 UTC 2016
On Tue, March 15, 2016 5:41 pm, Lowell Gilbert wrote:
> Lowell Gilbert <freebsd-questions-local at be-well.ilk.org> writes:
>> I thought dhcpd would use MAC address
Correct: DHCP server uses MAC address to identify clients. DHCP server can
be configured to give some client (identified by MAC address) the same IP
(thus making that client appear with static IP. Windoze world calls this
>> if the client didn't provide
>> anything else. I'll check if I get a chance.
> Confirmed. My dual-boot machine has no special settings in the server's
> dhcp.conf, and gets the same address regardless of which OS it's using.
> It even offers a different hostname on each OS.
If DHCP lease didn't expire, DHCP server will give client the same IP (the
one that is in still valid DHCP lease for this client). This is what most
likely you observe. If DHCP client never goes away from network, chance is
it never will change IP (unless DHCP server is specifically configured to
not give client the same IP when lease is renewed. I forgot details how it
is done, I never do it on my DHCP servers).
Hostname: if you are using "hostname" command it reports system hostname
which is configured internally in system configuration files (which
particular files depends on the system). This name will be reported no
matter which IP the machine gets <rant> - except special cases, like on
macintosh where machine changes it's hostname (known to the machine
internally) depending on network connection. This is rare thing (and
drives same person crazy, programmers who write license daemons often can
not "outsmart" macintosh here). </rant>
I hope this clarifies some things.
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
More information about the freebsd-questions