Skip to content

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.

1 points11 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
1 · 67% up
Kind
Text
ID
ju2qa5

Author

16
posts
59
comments
4
media
View profile

23 comments

Maybe try installing dhcpcd and

sudo systemctl enable --now dhcpcd.service

if you haven't yet.


Wiki links for reference:

2 points

I'll try that

1 points

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 dhchpd and iwctl from the iwd package.

2 points
unknown author

Deleted before we saved it.

1 points

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!

1 points
unknown author3 hidden

Deleted before we saved it.

0 points

In future you might want to make sure they haven't installed/configured a different network management suite to avoid conflicts.

Given that OP problem is with connecting via Ethernet and given

ping: google.com: Name or service not known

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 dhcpcd and having to manually download it, etc., etc.

0 points

Sounds like you may have forgotten to install NetworkManager. If you chroot back into the installation and install NetworkManager, you should fix the problem.

1 points
unknown author

Deleted before we saved it.

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.