You are not logged in.

#1 2020-11-11 04:15:37

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Using USB tethering, I can see my interface, but can't do anything

If I run: '# ls /sys/class/net' I get 'enp0s20u2  lo'
If I run: '# ping archlinux.org' I get 'ping: archlinux.org: Temporary Failure in name resolution.'
If I run: '# Ip link set enp0s20u2 UP' I get 'Error: either "dev" is a duplicate or "UP" is a garbage.'

USB tethering will work in the ISO, but not on my install. I need it to work so I can download my WiFi drivers. Thanks for the help in advance.

Offline

#2 2020-11-11 04:37:38

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: Using USB tethering, I can see my interface, but can't do anything

AirsoftHamster wrote:

... or "UP" is a garbage.'

Don't use capitals here... You could've installed the wireless driver while you were using 'arch-chroot' BTW.

Offline

#3 2020-11-11 05:11:08

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Re: Using USB tethering, I can see my interface, but can't do anything

I couldn't install the drivers throught arch chroot for some reason... But, upon running with lowercase letters, I get 'RNETLINK answers: Operation not permitted'. If run through sudo, I get no output, and pinging archlinux.org results in 'Ping: archlinux.org: Temporary Failure in name resolution'.

Offline

#4 2020-11-11 05:45:40

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: Using USB tethering, I can see my interface, but can't do anything

Did you install the 'linux-firmware'? You know you can install the complete system using pacstrap if you wanted ...
It's strange though, you can't install anything using arch-chroot while you were able to install Arch using the ISO!
Try 'dhcpcd'. if that works than you need to walk through all settings again for there seems to be some fault in you configuration, if so, and don't forget to turn off dhcp again for a static setup!

Offline

#5 2020-11-11 15:35:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,700

Re: Using USB tethering, I can see my interface, but can't do anything

Have you tried just running dhcpcd as root?


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

#6 2020-11-11 17:32:11

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Re: Using USB tethering, I can see my interface, but can't do anything

qinohe wrote:

Did you install the 'linux-firmware'? You know you can install the complete system using pacstrap if you wanted ...

I did install linux-firmware, and just reinstalled it using the arch-chroot from the ISO.

Upon running from root, it says "sending commands to dhcpcd process"

i3bar/i3status says:
2607:fb90:9c2c:7acf:24d9:b506:86ef:34ee | w: down | E: 192.168.42.100 ( ? )

Is there something I need to do to  get dhcpcd to work?

Offline

#7 2020-11-11 18:11:03

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: Using USB tethering, I can see my interface, but can't do anything

dhcpcd should only be enabled/started

Please give output from 'systemctl list-unit-files --state=enabled'

Offline

#8 2020-11-11 18:23:34

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,700

Re: Using USB tethering, I can see my interface, but can't do anything

Upon running from root, it says "sending commands to dhcpcd process"

Did it work after that?


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

#9 2020-11-11 18:34:07

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: Using USB tethering, I can see my interface, but can't do anything

ewaller wrote:

Upon running from root, it says "sending commands to dhcpcd process"

Did it work after that?

You're question is valid for Ethernet has an IP '192.168.42.100' though OP's post suggests? it's still not working??

Offline

#10 2020-11-11 19:06:59

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Re: Using USB tethering, I can see my interface, but can't do anything

UNIT FILE.                   STATE.           VENDOR PRESET
dhcpcd.service.          enabled.        Disabled
getty@.service.          enabled.         enabled
Lightdm.service.        Enabled.        Disabled
remote-fs.target         enabled.        Enabled

4 unit files listed


It did not work after running dhcpcd or ip link set 'enp0s20u2 up

Offline

#11 2020-11-11 19:22:46

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: Using USB tethering, I can see my interface, but can't do anything

In this case only use 'dhcpcd' as root as ewaller said.
First reboot, than run dhcpcd.
If unsuccessful output of 'journalctl -b | grep enp0s20u2' and 'ip a'

Offline

#12 2020-11-11 19:51:11

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Re: Using USB tethering, I can see my interface, but can't do anything

'journalctl -b | grep enp0s20u2':

Nov 11 11:41:40 LinuxBookAir kernel: rndis_host 1-2:1.0 enp0s20u2: renamed from usb0
Nov 11 11:41:40 LinuxBookAir dhcpcd[300]: enp0s20u2: waiting for carrier
Nov 11 11:41:40 LinuxBookAir dhcpcd[300]: enp0s20u2: carrier acquired
Nov 11 11:41:40 LinuxBookAir dhcpcd[300]: enp0s20u2: IAID 30:d0:9d:3c
Nov 11 11:41:40 LinuxBookAir dhcpcd[300]: enp0s20u2: adding address fe80::452d:710d:3d69:ad50
Nov 11 11:41:40 LinuxBookAir dhcpcd[300]: enp0s20u2: IAID 30:d0:9d:3c
Nov 11 11:41:40 LinuxBookAir dhcpcd[300]: enp0s20u2: soliciting an IPv6 router
Nov 11 11:41:42 LinuxBookAir dhcpcd[300]: enp0s20u2: rebinding lease of 192.168.42.214
Nov 11 11:41:42 LinuxBookAir dhcpcd[300]: enp0s20u2: probing address 192.168.42.214/24
Nov 11 11:41:44 LinuxBookAir dhcpcd[300]: enp0s20u2: Router Advertisement from fe80::68c4:96ff:fe7b:de89
Nov 11 11:41:44 LinuxBookAir dhcpcd[300]: enp0s20u2: adding address 2607:fb90:9c3e:c329:954b:5c72:8abe:3c6a/64
Nov 11 11:41:44 LinuxBookAir dhcpcd[300]: enp0s20u2: adding route to 2607:fb90:9c3e:c329::/64
Nov 11 11:41:44 LinuxBookAir dhcpcd[300]: enp0s20u2: adding default route via fe80::68c4:96ff:fe7b:de89
Nov 11 11:41:48 LinuxBookAir dhcpcd[300]: enp0s20u2: leased 192.168.42.214 for 3599 seconds
Nov 11 11:41:48 LinuxBookAir dhcpcd[300]: enp0s20u2: adding route to 192.168.42.0/24
Nov 11 11:41:48 LinuxBookAir dhcpcd[300]: enp0s20u2: adding default route via 192.168.42.129

'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
3: enp0s20u2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 1e:df:30:d0:9d:3c brd ff:ff:ff:ff:ff:ff
    inet 192.168.42.214/24 brd 192.168.42.255 scope global dynamic noprefixroute enp0s20u2
       valid_lft 3598sec preferred_lft 3148sec
    inet6 2607:fb90:9c2a:a825:7199:7b50:32b9:30c8/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 3598sec preferred_lft 3598sec
    inet6 fe80::452d:710d:3d69:ad50/64 scope link
       valid_lft forever preferred_lft forever

Offline

#13 2020-11-11 21:16:27

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: Using USB tethering, I can see my interface, but can't do anything

You can put your dhcp lease time to 1 day or 4 if you run the router in office.
For now, can you turn off ipv6 in your router and run the procedure again?
You may need to release the current dhcpd process 'dhcpcd -k' (see) 'PAGER='less -p ^"     -k, --release"' man dhcpcd'

Can you ping the router?

Offline

#14 2020-11-11 21:28:25

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Re: Using USB tethering, I can see my interface, but can't do anything

I'm using USB tethering so I can't change anything that you would have to change on the router. The laptop I'm installing this on doesn't have an Ethernet port.

Offline

#15 2020-11-11 21:58:31

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: Using USB tethering, I can see my interface, but can't do anything

Right, this would be possible using the ISO though..
Create '/etc/sysctl.d/40-ipv6.conf' and add 'net.ipv6.conf.enp0s20u2.disable_ipv6 = 1'

or add 'ipv6.disable=1' to your kernel line and reboot!

edit; BTW I'm also curious if  '/etc/resolv.conf' holds a valid nameserver?

Last edited by qinohe (2020-11-11 22:05:40)

Offline

#16 2020-11-11 22:38:30

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Re: Using USB tethering, I can see my interface, but can't do anything

/etc/resolve.conf contains:

search domain.name
nameserver 8.8.8.8
nameserver 1.1.1.1
nameserver 1.0.0.1

i3bar now reads: no IPv6 | W: down | E: 192.168.42.214

ping archlinux.org returns 'temporary failure in name resolution'

Offline

#17 2020-11-11 23:20:53

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: Using USB tethering, I can see my interface, but can't do anything

Hmm, what does resolv.conf point to? 'ls -l /etc/resolv.conf'
'ping -c 3 192.168.42.1' && 'ping - c 3 192.168.42.129' ?

My suggestion now would be ; run the ISO, log into your router, disable ipv6, set lease time to 1day/24h and fill in a DNS that is known to work e.g. 8.8.8.8 or/and 8.8.4.4.
After this retest your connection.

edit; if you post longer outputs atleast use code tags around the output! (see) https://bbs.archlinux.org/help.php#bbcode

Last edited by qinohe (2020-11-11 23:25:53)

Offline

#18 2020-11-12 00:07:01

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Re: Using USB tethering, I can see my interface, but can't do anything

ls -l /etc/resolve.conf:
-rw-r--r-- 1 root root 76 Nov 10 14:16 /etc/resolve.conf

ping -c 3 192.168.42.1:
PING 192.168.42.1 (192.168.42.1) 56(84) bytes of data.
From 192.168.42.214 icmp_seq=1 Destination Host Unreachable
From 192.168.42.214 icmp_seq=2 Destination Host Unreachable
From 192.168.42.214 icmp_seq=3 Destination Host Unreachable

ping -c 3 192.168.42.129:
PING 192.168.42.129 (192.168.42.129) 56(84) bytes of data.
64 bytes from 192.168.42.129: icmp_seq=1 ttl=64 time=2.74 ms
64 bytes from 192.168.42.129: icmp_seq=2 ttl=64 time=2.97 ms
64 bytes from 192.168.42.129: icmp_seq=3 ttl=64 time=2.96 ms

On another note, a friend gave me an Ethernet to usb adapter, which when plugged in, will show up in /sys/class/net, but will exhibit the same behavior.

Offline

#19 2020-11-12 02:17:32

AirsoftHamster
Member
Registered: 2020-11-10
Posts: 74

Re: Using USB tethering, I can see my interface, but can't do anything

Good news! If I ping a direct IP say google.com (172.217.6.78) I will get data, so there is a problem with my DNS servers.

EDIT:
Starting to think resolv.conf is the issue. If I list the contents of /etc/, I only see the symbolic link to resolv.conf. when I was changing nameservers, I accidently typed resolve.conf instead of resolv.conf. If I run

 sudo resolvconf -u 

it outputs '/usr/lib/resolvconf/libc: Line 230: /etc/resolv.conf: no such file or directory.

Last edited by AirsoftHamster (2020-11-12 04:17:12)

Offline

#20 2020-11-12 15:43:24

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: Using USB tethering, I can see my interface, but can't do anything

Nice, so use openresolv.. (see)https://wiki.archlinux.org/index.php/Openresolv
Should get you out of the woods;)
If everything works you can also enable ipv6 again. It was to eliminate probable causes.

Offline

Board footer

Powered by FluxBB