On 4/10/23 13:30, Greg Wooledge wrote:
On Mon, Apr 10, 2023 at 12:05:06PM -0400, gene heskett wrote:
Thanks for the vote of confidence Greg, but I'd like to point out that the
help offered is only valid for systems with a working dhcpd.
You tell me I'm wrong, but you don't tell how to do it right w/o dragging in
dhcpd. My way doesn't need that. But you've made it your lifes work to not
understand how my way Just Works.
How To Set Up A Debian Computer With Static IP Addressing And Hosts File:
1) Install Debian. Select "Standard". Do not select a Desktop Environment.
2) Find the name of your ethernet interface, either using "ip link" or
by reading /etc/network/interfaces. For purposes of this document,
let's say it's "en0".
3) Bring your ethernet interface down: ifdown en0
This will kill the DHCP client daemon.
4) Edit the /etc/network/interfaces file, and change
iface en0 inet dhcp
to
iface en0 inet static
and then add the "address" and "gateway" lines underneath that.
While you're in there, make sure you have "auto en0" too.
5) Bring your interface up: ifup en0
6) Verify that it works, by pinging your gateway, and then pinging an
outside IP address (e.g. ping 8.8.8.8).
7) Edit your /etc/resolv.conf file correctly for your network.
This means adding a "nameserver" line that points to your DNS resolver.
Do not add lines that are not documented in resolv.conf(5).
Specifically, do not add lines that mimic /etc/nsswitch.cong behavior
in this file, because they do not work.
8) Verify that DNS works (e.g. ping www.debian.org).
9) Edit your /etc/hosts file to contain the IP addresses and names of
other hosts on your internal network.
10) Verify that your internet network name resolution works
(e.g. ping coyote).
There you go. That's the whole thing. That's what we've tried to tell
you to do, for the last 5 to 10 years.
I promise you, Gene, "search hosts, nameserver" is NOT a working line in
an /etc/resolv.conf file. It never has been. It never will be.
.
Up to the resolv.conf, that is exactly what I do. But that change to
resolv.conf adding the search line has been required since red hat 5.0
in 1998. until bullseye. Just last week I found it is not needed in an
armbian bullseye install.
Now, if I could figure out why printers, shared om this bullseye machine
work perfectly when accessed by a buster machine, but cannot be seen by
any other bullseye machine here, debian or armbian. My logs show an auth
failure but all are DefaultAthorization Basic. And turning on debugging
doesn't tell me anything more useful. Like why... I've managed to get 1
armbian machine trying to connect, but my logs are huge cuz it tries
every 11 seconds
Take care & sty well, Greg
Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>