๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #561

Re: How to disable the dhcp of my machine

#561
From: David Wright
Date: Tue, 17 Nov 2026 01:00
66 lines
7257 bytes
On Sun 15 Nov 2026 at 17:23:28 (+0000), Joe wrote:
> On Sun, 15 Nov 2026 17:07:45 -0000 (UTC) CGS wrote:
> > On 2024-10-13, <tomas@tuxteam.de> <tomas@tuxteam.de> wrote:
> > >
> > >
> > > You /can/ tell the DHCP server (possibly running on "the router")
> > > to always assign the same IP to a given client (whatever a "gien
> > > client" is in this context -- identified by the MAC or other
> > > means).  
> > 
> > Static IP.
> 
> No, it's a DHCP reservation. It behaves like a static IP, but allows
> the DHCP server to provide other information, such as the domain name,
> extra routes and other stuff. It also allows the workstation to be a
> standard DHCP client, so if it is a laptop it can be connected to some
> other network and pick up information automatically from there, with no
> manual intervention. More versatile, but more things to fail. 
> > 
> > > But the OP wants, as far as I understand, a *static* IP. Then, no
> > > DHCP is involved at all (and no router or any other external
> > > piece).  
> > 
> > I'm not following.
> > 
> An actual static IP is handcoded into the client machine, and does not
> accept any information from a DHCP server. Less to fail, less versatile.
> If the network router has to change its IP address, all the client
> machines with static addressing have to be reconfigured, that would
> happen automatically with DHCP. 
> 
> Which is easier or more convenient depends on the number of computers
> in the network and how they are used.

It might be interesting to know why the OP wanted static addresses.
I want /stable/ and memorable hostnames and addresses on my home
network for communicating with them by name, considering that
I have no DNS service on the network.

My method is to set up my "edge" router (next to the modem) as
the DHCP server, assigning names and addresses for all the devices
on my network, PCs, TV boxes, mobiles, printers, and the other two
routers.ยน The latter are dumb bridges for ethernet and wifi (all
with the same SSID). Using DHCP-assigned names and addresses is
easier than finding out how to set them on every non-computer device,
and prevents the risk of two devices having the same address.

From the edge router's list of IP assignments, I generate a master
list of all our devices in /etc/hosts format, distributed to the
PCs. I run a simple script to alter the appropriate line in the
master list and send/install the resulting file onto each PC's
/etc/hosts; eg it changes:
  192.168.1.17    argo.corp       argo
to:
  127.0.1.1       argo.corp       argo    # 192.168.1.17
for argo. With no argument, the script installs /etc/hosts locally;
with a hostname argument, it sends it over to that host.

When I travel, there's no conflict between my home configuration
files and whatever network configuration is negotiated between the
laptop and the wifi service provided.

ยน all assigned by MAC.

Cheers,
David.
Technical Details
Message-ID: <O0fId-cm7p-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O0fId-cm7p-3@gated-at.bofh.it> <JwVho-1dMF-7@gated-at.bofh.it> <Jx0K5-1gWY-3@gated-at.bofh.it> <Jx2Vz-1iuT-5@gated-at.bofh.it> <NZLTP-c4Wt-1@gated-at.bofh.it> <NZMdc-c58b-17@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: David Wright <deblis@lionunicorn.co.uk>
Newsgroups: linux.debian.user
Subject: Re: How to disable the dhcp of my machine
Date: Tue, 17 Nov 2026 02:00:01 +0100
Message-ID: <O0fId-cm7p-1@gated-at.bofh.it>
References: <O0fId-cm7p-3@gated-at.bofh.it> <JwVho-1dMF-7@gated-at.bofh.it> <Jx0K5-1gWY-3@gated-at.bofh.it> <Jx2Vz-1iuT-5@gated-at.bofh.it> <NZLTP-c4Wt-1@gated-at.bofh.it> <NZMdc-c58b-17@gated-at.bofh.it>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Tue Nov 17 00:59:19 2026
Old-Return-Path: <nobody@lionunicorn.co.uk>
X-Amavis-Spam-Status: No, score=-2.099 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001]
 autolearn=ham autolearn_force=no
X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .lionunicorn. - helo: .barb.banana.relay.mailchannels. - helo-domain: .mailchannels.)  FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0 FROM_NBDY_ANON=1.17; rate: -2.33
X-Sender-ID: thundermail|x-authsender|david@lionunicorn.co.uk
X-Sender-ID: thundermail|x-authsender|david@lionunicorn.co.uk
X-Mc-Relay: Junk
X-Mailchannels-Senderid: thundermail|x-authsender|david@lionunicorn.co.uk
X-Mailchannels-Auth-ID: thundermail
X-Exultant-Decisive: 28917af46c0f641d_1794877143898_1387457536
X-Mc-Loop-Signature: 1794877143898:3177957667
X-Mc-Ingress-Time: 1794877143898
Authentication-Results: cloud225.thundercloud.uk;
        spf=pass (sender IP is 24.255.218.34) smtp.mailfrom=nobody@lionunicorn.co.uk smtp.helo=argo.corp
Received-Spf: pass (cloud225.thundercloud.uk: connection is authenticated)
Reply-To: debian-user@lists.debian.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-Ppp-Message-ID: 
 <179487714147.759146.16723345665951550044@cloud225.thundercloud.uk>
X-Ppp-Vhost: lionunicorn.co.uk
X-Rspamd-Queue-ID: 4jT5w54gKgzGnsg
X-Rspamd-Server: mailclean11
X-Rspamd-Action: no action
X-Spamd-Result: default: False [2.60 / 999.00];
	REPLYTO_EQ_TO_ADDR(2.00)[];
	ENVFROM_SERVICE_ACCT(1.00)[];
	DMARC_POLICY_ALLOW_WITH_FAILURES(-0.50)[];
	FORGED_SENDER(0.30)[deblis@lionunicorn.co.uk,nobody@lionunicorn.co.uk];
	ONCE_RECEIVED(0.20)[];
	R_DKIM_ALIGNED(-0.10)[strict];
	REPLYTO_MX_GOOD(-0.10)[bendel.debian.org];
	MIME_GOOD(-0.10)[text/plain];
	MX_GOOD(-0.10)[mail.lionunicorn.co.uk];
	UWH_IDENTITY(0.00)[1|447a71941d5fb84b|t=175|r=0|m=postfix|n=18|h=pppm:1:16/1+pppv:1:17/0|f=nv];
	FREEMAIL_ENVRCPT(0.00)[hotmail.co.uk];
	R_DKIM_ALLOW(0.00)[lionunicorn.co.uk:s=default];
	DMARC_POLICY_ALLOW(0.00)[lionunicorn.co.uk,none];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	MIME_TRACE(0.00)[0:+];
	RCPT_COUNT_ONE(0.00)[1];
	REPLYTO_DOM_NEQ_FROM_DOM(0.00)[];
	DKIM_TRACE(0.00)[lionunicorn.co.uk:+];
	ARC_NA(0.00)[];
	R_SPF_SOFTFAIL(0.00)[~all];
	FROM_NEQ_ENVFROM(0.00)[deblis@lionunicorn.co.uk,nobody@lionunicorn.co.uk];
	FROM_HAS_DN(0.00)[];
	RCVD_TLS_ALL(0.00)[];
	TO_DN_NONE(0.00)[];
	ASN(0.00)[asn:34931, ipnet:149.255.56.0/22, country:GB];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	MISSING_XM_UA(0.00)[];
	RCVD_COUNT_ONE(0.00)[1];
	HAS_REPLYTO(0.00)[debian-user@lists.debian.org]
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832949
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/avum0dxS1Xt9cBWH@argo.corp
Approved: robomod@news.nic.it
Lines: 66
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 16 Nov 2026 18:58:57 -0600
X-Original-Message-ID: <avum0dxS1Xt9cBWH@argo.corp>
X-Original-References: 
 <CAGiORHc27XDDCCtEDTa_Bwrm3_TXuTHKrAhZa59Ypw4nhUm2uw@mail.gmail.com>
 <9c578d4-2094-8b2d-1caa-9799de4c27b0@rogerprice.org>
 <ZwuQM957Nl+6LMuo@tuxteam.de>
 <slrn11fjpn1.1al.etphonehomefrance@einstein.home.arpa>
 <20261115172328.11a7d205@jrenewsid.jretrading.com>