- 1,028
- 763
My previous Raspberry Pi boards were able to tether to a mobile phone and access the shared internet connection without having to do anything special except enabling USB tethering on the phone after connecting the cable.
Now on the Pi 5, this doesn't happen seamlessly. So I tried the instructions given here.
There was one minor difference from the article: after plugging in the cable, iwconfig is supposed to show a new item called usb0 (or usb1 etc), according to the article. In my case, the new item was called "wwan0".
Anyway, I followed the next step which was
After this, a new network interface appeared in the ifconfig output.
At this point I was able to ping 8.8.8.8 through the tethered phone. I was also able to ping servers whose IP I found using the WiFi connection. However, ping (and the web browser) could not resolve DNS through the tethered connection.
How can I set this connection to use say 8.8.8.8 as its DNS server? (or to use the phone's IP, which I found using nmap, which presumabley offers DNS)? Or alternatively, is there an entirely different and better way to set the whole thing up?
Now on the Pi 5, this doesn't happen seamlessly. So I tried the instructions given here.
There was one minor difference from the article: after plugging in the cable, iwconfig is supposed to show a new item called usb0 (or usb1 etc), according to the article. In my case, the new item was called "wwan0".
Anyway, I followed the next step which was
dhclient wwan0
where I replaced usb(x) with wwan0.After this, a new network interface appeared in the ifconfig output.
Code:
wwan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.25.16 netmask 255.255.255.0 broadcast 192.168.25.255
inet6 fe80::30f8:45ff:febd:6e9b prefixlen 64 scopeid 0x20<link>
ether 32:f8:45:bd:6e:9b txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
At this point I was able to ping 8.8.8.8 through the tethered phone. I was also able to ping servers whose IP I found using the WiFi connection. However, ping (and the web browser) could not resolve DNS through the tethered connection.
ping: www.aldaily.com: Temporary failure in name resolution
How can I set this connection to use say 8.8.8.8 as its DNS server? (or to use the phone's IP, which I found using nmap, which presumabley offers DNS)? Or alternatively, is there an entirely different and better way to set the whole thing up?