You are not logged in.

#1 2022-02-18 01:39:57

buzuddha
Member
Registered: 2020-10-02
Posts: 72

[SOLVED] dig + resolvectl query work, no ping with ethernet connection

This ain't my first rodeo, but this one is making me rethink my linux knowhow. This one has been much more difficult than previous computers.

I'm on archlinux-2022.01.01-x86_64.iso live trying to turn a headless ubuntu server into an arch one. I can't connect to the internet...sort of.

I have an ethernet device set to up, and it has an IP

I can dig 8.8.8.8.

I can query via resolvectl and resolvectl looks correct.

I can ping on my lan but not outside.

dhcpcd.service is dead but activating it doesn't help.

The only thing I've done to alter this system is boot with 'nomodeset' as my system needed a GPU to boot. I put a geforce 710 in it and almost no linux distros boot without safemode graphics/nomodeset.

Bonus if you can help me get the console to look correct on a 4k output.

If anyone can help i'd be very grateful! Cheers!

Last edited by buzuddha (2022-03-02 00:49:46)

Offline

#2 2022-02-18 06:38:57

sbmomeni
Member
Registered: 2013-07-26
Posts: 29

Re: [SOLVED] dig + resolvectl query work, no ping with ethernet connection

Is gateway routing correct?
Any firewall or transparent proxy in the path?
Check output of the

ip r
traceroute 8.8.8.8

And also look at the actually sent/received packets using the tcpdump -n host 8.8.8.8

Offline

#3 2022-02-21 18:15:29

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: [SOLVED] dig + resolvectl query work, no ping with ethernet connection

Thanks for the reply. Took me a minute to get things going.
The gateway is correct (192.168.192.1)
I haven't set any firewalls so I doubt there is one. The same device works with ubuntu (which I'm trying to drop), so it's not something on the router end of things (I think).

ip r:

default via 192.168.192.1 dev eno1 proto dhcp src 192.168.192.151 metric 100
8.8.8.8 via 192.168.192.1 dev eno1 proto dhcp src 192.168.192.151 metric 100
192.168.192.0/24 dev eno1 proto kernel scope link src 192.168.192.151 metric 100
192.168.192.1 dev eno1 proto kernel scope link src 192.168.192.151 metric 100

traceroute isn't installed on the live distro. I tried to download it from here. But pacman -U traceroute...tar.gz gives a "no metadata" warning. A quick google says this is probably source code, but not exactly sure what command to run here. (makepkg -si I can't do as root in the live environment)

tcpdump -n host 8.8.8.8:

listening on eno1, link-type EN10MB (Ethernet), snapshot length 262144 bytes
^C to cancel as nothing is happening
0 packets captured
0 packets received by filter
0 packets dropped by kernel

Last edited by buzuddha (2022-02-21 18:50:13)

Offline

#4 2022-02-21 21:56:38

seth
Member
Registered: 2012-09-03
Posts: 51,508

Re: [SOLVED] dig + resolvectl query work, no ping with ethernet connection

https://archlinux.org/packages/core/x86_64/traceroute/
"tracepath" is part of iputils and will do the job.
Why are there explicit routes to 8.8.8.8 and 192.168.192.1?
What configures your network?

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

I doubt there is one.

Don't doubt, look.

iptables -nvL
nft list tables

Or is this the installation iso live system?

altname enp4s0

Try to pass "net.ifnames=0" to the kernel parameters, https://wiki.archlinux.org/title/Networ … face_names

Offline

#5 2022-02-23 21:32:39

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: [SOLVED] dig + resolvectl query work, no ping with ethernet connection

Hi Seth,

Thanks for your reply.
I don't know why there are explicit routes to 8.8.8.8, this is a live system. Likewise for 192.168.192.1. I haven't set these in arch

tracepath 8.8.8.8
 1?: [LOCALHOST]                      pmtu 1500
 1:  RT-AX92U-4FA0                                         1.327ms 
 1:  RT-AX92U-4FA0                                         0.697ms 
 2:  96.120.107.65                                        12.028ms 
 3:  24.124.177.241                                       10.887ms 
 4:  96.110.6.53                                          14.682ms 
 5:  be-31411-cs01.ashburn.va.ibone.comcast.net           15.772ms 
 6:  be-2401-pe01.ashburn.va.ibone.comcast.net            14.256ms 
 7:  no reply

I guess systemd is configuring the network? Unsure I understand enough about networks to answer. I have a router it creates the LAN.

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
choose-mirror.service                    | multi-user.target.wants
cloud-config.service                     | cloud-init.target.wants
cloud-final.service                      | cloud-init.target.wants
cloud-init-local.service                 | cloud-init.target.wants
cloud-init.service                       | cloud-init.target.wants
dbus-org.freedesktop.ModemManager1.service | system
dbus-org.freedesktop.network1.service    | system
dbus-org.freedesktop.resolve1.service    | system
dirmngr.socket                           | sockets.target.wants
getty@tty1.service                       | getty.target.wants
gpg-agent-browser.socket                 | sockets.target.wants
gpg-agent-extra.socket                   | sockets.target.wants
gpg-agent.socket                         | sockets.target.wants
gpg-agent-ssh.socket                     | sockets.target.wants
iwd.service                              | multi-user.target.wants
livecd-alsa-unmuter.service              | sound.target.wants
livecd-talk.service                      | multi-user.target.wants
ModemManager.service                     | multi-user.target.wants
p11-kit-server.socket                    | sockets.target.wants
pacman-init.service                      | multi-user.target.wants
qemu-guest-agent.service                 | multi-user.target.wants
reflector.service                        | multi-user.target.wants
remote-fs.target                         | multi-user.target.wants
sshd.service                             | multi-user.target.wants
systemd-networkd.service                 | multi-user.target.wants
systemd-networkd.socket                  | sockets.target.wants
systemd-networkd-wait-online.service     | network-online.target.wants
systemd-resolved.service                 | multi-user.target.wants
vboxservice.service                      | multi-user.target.wants

Doesn't appear to have firewalls

iptables -nvl
Chain INPUT (policy ACCEPT 37 packets, 15619 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 1 packets, 40 bytes)
 pkts bytes target     prot opt in     out     source               destination         

looks like nft isn't on the live distro

nft list tables
zsh: correct 'nft' to 'net' [nyae]

passing net.ifnames=0 changes to eth0

ip link show
2: eth0: blah blah blah
altname eno1
altname enp4s0

interestingly now I can sync with pacman - installed nftables => nft list tables gets no output.

This is an iso live system. I'm just trying to install arch. I've reflashed the iso this just in case I had somehow modified the iso and it remains unable to ping anything. Weirdly I can still install stuff, so maybe I don't need to worry about it? Not sure what changed though, as previously pacman wouldn't/couldn't download anything.

Last edited by buzuddha (2022-02-23 21:41:38)

Offline

#6 2022-02-24 08:15:03

seth
Member
Registered: 2012-09-03
Posts: 51,508

Re: [SOLVED] dig + resolvectl query work, no ping with ethernet connection

This is an iso live system. I'm just trying to install arch.

passing net.ifnames=0 changes to eth0 … interestingly now I can sync with pacman

IOW disabling "predictable" interface names makes the network on the install iso work? Reliably?
In that case you can just roll with that  - it's a fragile, pointless and couterproductive non-feature that you also want to disable on the installed system, https://wiki.archlinux.org/title/Networ … face_names

Offline

#7 2022-03-02 00:49:02

buzuddha
Member
Registered: 2020-10-02
Posts: 72

Re: [SOLVED] dig + resolvectl query work, no ping with ethernet connection

Ok will do. Thanks Seth. I'll try to get this up and rolling. I appreciate your input here. Marking "solved".

Offline

Board footer

Powered by FluxBB