Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #190324

Re: Mixing and Matching DHCP and static IPs

From Dan Ritter <dsr@randomstring.org>
Newsgroups linux.debian.user
Subject Re: Mixing and Matching DHCP and static IPs
Date 2017-12-26 20:40 +0100
Message-ID <v13eV-7hu-11@gated-at.bofh.it> (permalink)
References <v0E6S-6gg-3@gated-at.bofh.it> <v0E6S-6gg-1@gated-at.bofh.it> <v0Na9-42N-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Dec 25, 2017 at 08:25:52PM -0600, Paul Johnson wrote:
> On Mon, Dec 25, 2017 at 10:49 AM, Marc Auslander <marcslists@gmail.com>
> wrote:
> 
> > The safest way to fix an ip address in a dhcp served network is to tell
> > the dhcp server to associate that address with the mac of the unit.  The
> > address should be outside the dhcp range you set up.  I normall pin down
> > all my connected devices that way, leaving the dhcp assignment for
> > guests etc.  I've never seen a router which didn't support this.
> >
> >
> Or, just tell the DHCP server that you want a specific MAC address to
> always be assigned to a specific IP address.  It doesn't matter if it's in
> or out of the assignment range, then, or whether or not the unit in
> question understands DHCP or is configured manually on it's end; the DHCP
> server will not assign another client to that IP.  Though for ease of
> dealing with static assignments, I personally find it much simpler to do it
> all at the DHCP server end only if the client end speaks DHCP, just in the
> off chance I need to change the network configuration later.


Sample dhcpd config for a static IP assignment:

host thatonemachine {
 hardware ethernet d0:ee:fb:13:5e:a6;
 fixed-address 192.168.0.64;
}

You can read the ethernet MAC address on the machine in question
with 
ip l | grep ether

-dsr-

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Mixing and Matching DHCP and static IPs Marc Auslander <marcslists@gmail.com> - 2017-12-25 17:50 +0100
  Re: Mixing and Matching DHCP and static IPs Sven Hartge <sven@svenhartge.de> - 2017-12-25 18:00 +0100
    Re: Mixing and Matching DHCP and static IPs Mark Fletcher <mark27q1@gmail.com> - 2017-12-26 02:00 +0100
  Re: Mixing and Matching DHCP and static IPs Mark Fletcher <mark27q1@gmail.com> - 2017-12-26 02:00 +0100
  Re: Mixing and Matching DHCP and static IPs Paul Johnson <baloo@ursamundi.org> - 2017-12-26 03:30 +0100
    Re: Mixing and Matching DHCP and static IPs Dan Ritter <dsr@randomstring.org> - 2017-12-26 20:40 +0100
      Re: Mixing and Matching DHCP and static IPs Mark Fletcher <mark27q1@gmail.com> - 2017-12-27 12:40 +0100

csiph-web