You are not logged in.
When I connected to wifi, KDE says that I am connected and I can get access to the internet
When I connected to Ethernet, KDE says that I am connected but I cannot get access to the internet, I cannot go to any website!
$ lspci -v
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (13) I219-V (rev 20)
Subsystem: Lenovo Device 22d1
Flags: bus master, fast devsel, latency 0, IRQ 157, IOMMU group 13
Memory at bce00000 (32-bit, non-prefetchable) [size=128K]
Capabilities: <access denied>
Kernel driver in use: e1000e
Kernel modules: e1000e$ sudo dmesg | grep e1000e
[ 1.904755] e1000e: Intel(R) PRO/1000 Network Driver
[ 1.904759] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.905292] e1000e 0000:00:1f.6: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
[ 2.353868] e1000e 0000:00:1f.6 0000:00:1f.6 (uninitialized): registered PHC clock
[ 2.433575] e1000e 0000:00:1f.6 eth0: (PCI Express:2.5GT/s:Width x1) 38:f3:ab:4c:6e:f5
[ 2.433584] e1000e 0000:00:1f.6 eth0: Intel(R) PRO/1000 Network Connection
[ 2.433772] e1000e 0000:00:1f.6 eth0: MAC: 14, PHY: 12, PBA No: FFFFFF-0FF
[ 2.568601] e1000e 0000:00:1f.6 enp0s31f6: renamed from eth0Does this means that the ethernet is not loaded?
Last edited by Firestar (2022-09-28 13:46:26)
Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.
Offline
What are the output of ip addr and of resolvectl ?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
$ ip addr
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: wwp0s20f0u2i1: <BROADCAST,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether e6:37:35:a7:38:04 brd ff:ff:ff:ff:ff:ff
4: wlp9s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 7e:43:7e:b9:7c:f8 brd ff:ff:ff:ff:ff:ff permaddr 1c:99:57:c6:bc:ea
5: enp0s13f0u2u4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:e0:4c:78:32:00 brd ff:ff:ff:ff:ff:ff
inet 10.129.223.43/19 brd 10.129.223.255 scope global dynamic noprefixroute enp0s13f0u2u4
valid_lft 3009sec preferred_lft 3009sec
inet6 fe80::898d:74a9:879:7f96/64 scope link noprefixroute
valid_lft forever preferred_lft forever
6: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 38:f3:ab:4c:6e:f5 brd ff:ff:ff:ff:ff:ff
$ resolvectl
Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found.Last edited by Firestar (2022-09-28 01:35:50)
Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.
Offline
You have 2 ethernet adapters, and you're connecting a different one than the one in the first post.
You appear to be getting an IP. How are you configuring the network?
Offline
I installed archlinux as guided in archwiki and no customizations, just installed networkmanager
$ cat /etc/hosts
# Static table lookup for hostnames.
# See hosts(5) for details.
127.0.0.1 localhost
::1 localhost
127.0.1.1 ThinkPadI found that there are `USB Ethernet` and `PCI Ethernet` here, and `PCI Ethernet` says:
Could not activate connection: Connection 'PKU-Ethernet' is not available on device enp0s31f6 because device has no carrier
The one which cannot connect to any website is `USB Ethernet`
Last edited by Firestar (2022-09-28 05:17:52)
Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.
Offline
I tried delete all ethernet connections from KDE systemsettings and plugin the ethernet cable, this is the output:
$ ip addr
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: wwp0s20f0u2i1: <BROADCAST,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether e6:37:35:a7:38:04 brd ff:ff:ff:ff:ff:ff
4: wlp9s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 1c:99:57:c6:bc:ea brd ff:ff:ff:ff:ff:ff
inet 10.2.32.215/19 brd 10.2.63.255 scope global dynamic noprefixroute wlp9s0
valid_lft 1932sec preferred_lft 1932sec
inet6 2001:da8:201:3042:35fe:b7fe:39f5:5b73/64 scope global dynamic noprefixroute
valid_lft 2592001sec preferred_lft 604801sec
inet6 fe80::89b7:e449:f09d:7330/64 scope link noprefixroute
valid_lft forever preferred_lft forever
6: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 38:f3:ab:4c:6e:f5 brd ff:ff:ff:ff:ff:ff
9: enp0s13f0u2u4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:e0:4c:78:32:00 brd ff:ff:ff:ff:ff:ffWrite programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.
Offline
6: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 38:f3:ab:4c:6e:f5 brd ff:ff:ff:ff:ff:ff
9: enp0s13f0u2u4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:e0:4c:78:32:00 brd ff:ff:ff:ff:ff:ffThere's a rj45 cable in the usb dongle, but not in the built-in WiFi nic.
The one which cannot connect to any website is `USB Ethernet`
Restore your network profile so that you're back at the situation in #3
Then post the outputs of
ip a # just to be sure
ip r
cat /etc/resolv.conf
ping -c1 _gateway
ping -c1 8.8.8.8
ping -c1 google.com
dig google.com
dig @8.8.8.8 google.comOffline
I test it on windows so that I can confirm the network is OK, only that I am not connected to it.
Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.
Offline
This is tested when I have no wifi connections and only with an ethernet that cannot go to any website
$ ip addr
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: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 38:f3:ab:4c:6e:f5 brd ff:ff:ff:ff:ff:ff
3: enp0s13f0u2u4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:e0:4c:78:32:00 brd ff:ff:ff:ff:ff:ff
inet 10.129.223.43/19 brd 10.129.223.255 scope global dynamic noprefixroute enp0s13f0u2u4
valid_lft 2962sec preferred_lft 2962sec
inet6 240c:c001:1:2761:138a:7651:e53c:202/64 scope global dynamic noprefixroute
valid_lft 259126sec preferred_lft 172726sec
inet6 240c:c001:1:255a:c89e:3b4:98a0:c16/64 scope global dynamic noprefixroute
valid_lft 259175sec preferred_lft 172775sec
inet6 fe80::8cd:7f7f:56:8a68/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: wlp9s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether a2:62:f6:6a:ae:76 brd ff:ff:ff:ff:ff:ff permaddr 1c:99:57:c6:bc:ea
5: wwp0s20f0u2i1: <BROADCAST,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether e6:37:35:a7:38:04 brd ff:ff:ff:ff:ff:ff$ ip a
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: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 38:f3:ab:4c:6e:f5 brd ff:ff:ff:ff:ff:ff
3: enp0s13f0u2u4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:e0:4c:78:32:00 brd ff:ff:ff:ff:ff:ff
inet 10.129.223.43/19 brd 10.129.223.255 scope global dynamic noprefixroute enp0s13f0u2u4
valid_lft 3521sec preferred_lft 3521sec
inet6 240c:c001:1:2761:138a:7651:e53c:202/64 scope global dynamic noprefixroute
valid_lft 259156sec preferred_lft 172756sec
inet6 240c:c001:1:255a:c89e:3b4:98a0:c16/64 scope global dynamic noprefixroute
valid_lft 259120sec preferred_lft 172720sec
inet6 fe80::8cd:7f7f:56:8a68/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: wlp9s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 66:bd:e2:c9:b9:b7 brd ff:ff:ff:ff:ff:ff permaddr 1c:99:57:c6:bc:ea
5: wwp0s20f0u2i1: <BROADCAST,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether e6:37:35:a7:38:04 brd ff:ff:ff:ff:ff:ff
[bash @ ThinkPad ~] (15:29:40)
$ ip r
default via 10.129.192.1 dev enp0s13f0u2u4 proto dhcp src 10.129.223.43 metric 100
10.129.192.0/19 dev enp0s13f0u2u4 proto kernel scope link src 10.129.223.43 metric 100
[bash @ ThinkPad ~] (15:29:44)
$ cat /etc/resolv.conf
# v2rayA DNS hijack
nameserver 127.2.0.17
nameserver 119.29.29.29
[bash @ ThinkPad ~] (15:29:51)
$ ping -c1 _gateway
PING _gateway (10.129.192.1) 56(84) bytes of data.
64 bytes from _gateway (10.129.192.1): icmp_seq=1 ttl=255 time=0.504 ms
--- _gateway ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.504/0.504/0.504/0.000 ms
[bash @ ThinkPad ~] (15:29:58)
$ ping -c1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=112 time=50.9 ms
--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 50.885/50.885/50.885/0.000 ms
[bash @ ThinkPad ~] (15:30:05)
$ ping -c1 archlinux.org
PING archlinux.org(archlinux.org (2a01:4f9:c010:6b1f::1)) 56 data bytes
--- archlinux.org ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0msI have no `dig` `drill` or `domain` command
Last edited by Firestar (2022-09-28 07:40:50)
Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.
Offline
bind and ldns packages, however you can ping IPv4's but whatever
# v2rayA DNS hijack
nameserver 127.2.0.17
nameserver 119.29.29.29is resolves you an IPv6 for archlinux.org (i kida asked for google.com…) and you don't seem to have any route there.
So the problem is your resolver, apparently "v2rayA DNS hijack"
Offline
I am in China which cannot access to google.com
even with v2ray, it says:
```
$ ping -c1 google.com
PING google.com (59.24.3.174) 56(84) bytes of data.
--- google.com ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
```
on the other hand, why I can connect through wifi? I can connect any website via wifi and ping to archlinux.org but not 8.8.8.8
Last edited by Firestar (2022-09-28 07:50:03)
Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.
Offline
even with v2ray, it says:
No, *because* of v2ray
I am in China which cannot access to google.com
$ ping -c1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=112 time=50.9 ms
8.8.8.8 is googles DNS server…
Try to alter the resolv.conf
nameserver 1.1.1.1
nameserver 8.8.8.8
nameserver 9.9.9.9(cloudflare, google and quad9)
on the other hand, why I can connect through wifi?
I've no idea because we've not seen the wifi conneciton, but it's obvious that this is a DNS issue only.
Offline
looks like firestar responded in the other thread, see https://bbs.archlinux.org/viewtopic.php … 3#p2059533
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
The wifi situation there lacks the resolver config, but
I changed dns and it worked, I am asking v2raya how to not hijack as `sudo chattr +i /etc/resolv.conf` does not work
I'm not familiar w/ the tool, but it would seem that it configures itself as DNS server, likely for a reason.
- Why do you use v2raya itfp?
- If you want to use it, what's the output of "nmap 127.2.0.17"?
- what's the output of "dig @127.2.0.17 archlinux.org" and "dig @119.29.29.29 archlinux.org" (the latter one just times out here)
- Since it principally configures IPv4 nameservers, what if you just disable the https://wiki.archlinux.org/title/IPv6#Disable_IPv6 stack?
Offline
I changed dns and it worked
this is wifi
[bash @ ThinkPad ~] (16:11:13)
$ ip a
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: wlp9s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 1c:99:57:c6:bc:ea brd ff:ff:ff:ff:ff:ff
inet 10.2.32.215/19 brd 10.2.63.255 scope global dynamic noprefixroute wlp9s0
valid_lft 2766sec preferred_lft 2766sec
inet6 2001:da8:201:3042:35fe:b7fe:39f5:5b73/64 scope global dynamic noprefixroute
valid_lft 2591999sec preferred_lft 604799sec
inet6 fe80::89b7:e449:f09d:7330/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 38:f3:ab:4c:6e:f5 brd ff:ff:ff:ff:ff:ff
4: enp0s13f0u2u4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:e0:4c:78:32:00 brd ff:ff:ff:ff:ff:ff
5: wwp0s20f0u2i1: <BROADCAST,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether e6:37:35:a7:38:04 brd ff:ff:ff:ff:ff:ff
[bash @ ThinkPad ~] (16:11:20)
$ ip r
default via 10.2.32.1 dev wlp9s0 proto dhcp src 10.2.32.215 metric 600
10.2.32.0/19 dev wlp9s0 proto kernel scope link src 10.2.32.215 metric 600Last edited by Firestar (2022-09-28 13:46:04)
Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.
Offline
OK I solve it by this:
1. turn off the dns hijack of v2raya (turn off "prevent dns spoofing"), this will allow me to set it manually, like 8.8.8.8 or my school network DNS
2. `sudo chattr +i /etc/resolv.conf`
PS: it takes a very long time (like 1min) to set up dns by networkmanager when I connect to ethernet which may be the cause, so I locked the dns file
Last edited by Firestar (2022-09-28 13:36:26)
Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.
Offline