Ethernet doesn’t work after fresh install
I’ve installed arch linux with windows using dual boot.
The internet works perfectly in windows, But not in arch.
When I try to ping google.com i get:
ping: google.com: Temporary failure in name resolution
However, When I start ‘systemd-resolved.service’ And then try to ping google.com I get:
ping: google.com: Name or service not known
/etc/hostname contains:
foro
/etc/hosts contain:
# Static table lookup for hostnames.
#See hosts(5) for details.
127.0.0.1 localhost
::1 localhost
192.168.0.1 foro.localdomain foro
and /etc/resolv.conf contains:
nameserver 8.8.8.8
And the command ip addr outputs:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp7s0: <BROADCAST>,MULTICAST> mtu 1500 qdisc noop state UNKNOWN group default qlen 1000
link/ether 04:d9:f5:60:c3:0d brd ff:ff:ff:ff:ff:ff
What’s wrong?
Edited 14 Nov 2020. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 1 · 67% up
- Kind
- Text
- ID
- ju2qa5
23 comments
Deleted before we saved it.
What is prefix_len
Deleted before we saved it.
Deleted before we saved it.
Maybe try installing
dhcpcdandif you haven't yet.
Wiki links for reference:
I'll try that
Notice that if you are new to Linux in general, perhaps installing Network Manager (specially if you are using a full desktop environment like KDE Plasma or GNOME), as u/MadShaver suggests, and configuring it could be simpler/more familiar.
In my case, I use a tiling window manager and I manage my wireless connection with
dhchpdandiwctlfrom theiwdpackage.Deleted before we saved it.
your comment save me
the previous solution posted here is very good too, but being a linux novice, I thought that I should try your fix first cause it seemed easier
I only had to restart after enabling that service thanks a lot!
Well that's solved my problem
Deleted before we saved it.
Given that OP problem is with connecting via Ethernet and given
then I assumed they just needed a DHCP client to get going and recommended what I use (and also added wiki links for a more general case).
But you're totally correct with respect to asking for more information from OP about how they installed/configured the system. Maybe I jumped the gun given my experience with forgetting to install
dhcpcdand having to manually download it, etc., etc.Are you using networkd as well? I see you’re using resolved.
Sounds like you may have forgotten to install NetworkManager. If you chroot back into the installation and install NetworkManager, you should fix the problem.
Deleted before we saved it.
Deleted before we saved it.