no internet connection

hi guys

i have :

raspberry pi 4
dietpi 8.0.2
Huawei Technologies Co., Ltd. E353/E3131 (usb + sim)

i connected the Huawei but i dont have internet connection

let me show:

root@DietPi:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 008: ID [b]12d1:14db Huawei Technologies Co., Ltd. E353/E3131[/b]
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Action MA-8910P
Bus 001 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Action MA-8910P
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



root@DietPi:~# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether dc:a6:32:a4:30:1e  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

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.100  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::abb9:f43b:59b9:4b6e  prefixlen 64  scopeid 0x20<link>
        ether 58:2c:80:13:92:63  txqueuelen 1000  (Ethernet)
        RX packets 766  bytes 250452 (244.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 903  bytes 175233 (171.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

the usb is detected eth1

/etc/network/interfaces

allow-hotplug eth1
iface eth1 inet dhcp



root@DietPi:~# cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 192.168.1.1

any one help me?

thanks

I don’t know the answer on your question but probably something needs to be activated. Probably this helps http://forum.tinycorelinux.net/index.php?topic=22155.0

I had the same issue today. For me the problem was, that after plugging in the surf-stick(Huawei E3372) there was an auto generated entry in /etc/network/interfaces, but the gateway ip was wrong, it should be 192.168.8.1 but was the same as the one of my wifi network (maybe I played around too much with dietpi-config :stuck_out_tongue: ), also I only got a stable connection with a static IP.
So I removed that entry and created:
/etc/network/interfaces.d/surfstick

# surfstick
allow-hotplug eth1
iface eth1 inet static
  address 192.168.8.100
  netmask 255.255.255.0
  gateway 192.168.8.1

all conifgs in*/etc/network/interfaces.d* will be loaded by /etc/network/interfaces
after a reboot it worked :smiley:

some useful commands:
to see all active interfaces: ip route
to check connection of wifi: ping -c3 -I wlan0 1.1.1.1
to check connection of surfstick: ping -c3 -I eth1 1.1.1.1

3 Likes