fredex
Posts: 20
Joined: Mon Apr 10, 2017 1:39 am

configuring new Buster on 3B. no wired network. how to configure wired network on buster?

Sat Oct 12, 2019 7:23 pm

I'm creating a new SD for an existing Pi 3B, starting from scratch with Buster Lite. When it comes up I can find no way to configure WIRED networking.

The configuration utility offers only wireless configuration.

using the (obsolete, I know) ifconfig command I see that eth0 has no IPV4 address. if I do "ifconfig eth0 up" it comes up with some weird address that I certainly never configured. My home LAN is 192.168.2.X, but it comes up with 169.x.x.x.

BTW, I want a static configuration, 192.168.2.2, and have commented out (in /etc/hosts) all the IPV6 and also the line equating the hostname with 127.0.0.1, and then if I do:

ifconfig eth0 down
then ifconfig eth0 address 192.168.2.2 netmask 255.255.255.0 up

I get some error message: address hostname lookup failure

I know that static IP on wired network works on Bust er on my other 3B (upgraded from previous release), and it also worked on this one, but not in my new installation.

Anyone point out what I'm missed? (I don't recall it being this hard for previous installations)...

Thanks in advance!

epoch1970
Posts: 3804
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: configuring new Buster on 3B. no wired network. how to configure wired network on buster?

Sat Oct 12, 2019 7:36 pm

Undo what you did (or reinstall), then read file /etc/dhcpcd.conf.
There are examples for static IP configuration in that file. Or search the forums.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Andyroo

Re: configuring new Buster on 3B. no wired network. how to configure wired network on buster?

Sat Oct 12, 2019 7:37 pm

You do not need to configure Ethernet for it to come up but to set a static IP the simplest way is to edit dhcpcd.conf like:

Code: Select all

interface eth0
static ip_address=192.168.1.11/24
static routers=192.168.1.254
static domain_name_servers=192.168.1.2
Edited to correct layout.
Last edited by Andyroo on Sat Oct 12, 2019 8:39 pm, edited 2 times in total.

User avatar
B.Goode
Posts: 8906
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: configuring new Buster on 3B. no wired network. how to configure wired network on buster?

Sat Oct 12, 2019 7:50 pm

( Contribution overtaken by events. Deleted. )
Last edited by B.Goode on Sat Oct 12, 2019 8:46 pm, edited 1 time in total.


fredex
Posts: 20
Joined: Mon Apr 10, 2017 1:39 am

Re: configuring new Buster on 3B. no wired network. how to configure wired network on buster?

Sat Oct 12, 2019 9:08 pm

thanks all!

I've edited that file so that it contains this block (without changing anything else in it):

interface eth0
static ip_address=192.168.2.2
static routers=192.168.2.1
static domain_name_servers=192.168.2.2
static domain_search=fcshome.stoneham.ma.us
noipv6

but looking at the same file on the old SD card, it doesn't contain any of that stuff (well it does, but it's all commented)


but its /etc/hosts contains:
127.0.0.1 localhost rasppi rasppi.fcshome.stoneham.ma.us
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

192.168.2.2 rasppi
127.0.1.1 rasppi

[later...]

so I commented out the changes in /etc/dhcpcd.conf and made the /etc/hosts look like the above, reboot and voila!

Still wierd, because my OTHER rasppi (192.168.2.3) DOES have those changes in /etc/dhcpcd.conf. Go figure.

Thanks for all your guidance, guys!

Fred

W. H. Heydt
Posts: 11018
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: configuring new Buster on 3B. no wired network. how to configure wired network on buster?

Sun Oct 13, 2019 5:09 am

fredex wrote:
Sat Oct 12, 2019 9:08 pm
but looking at the same file on the old SD card, it doesn't contain any of that stuff (well it does, but it's all commented)
Without specifically checking...that file is almost certainly owned by root. Prefix your editor command with "sudo" to edit it. E.g. sudo vi /etc/dhcpcd.conf

Return to “Troubleshooting”