I have a RPI connected to the Internet with a 4G USB Dongle. I can see I’m connected to the network because the AT+CREG? and AT+COPS? commands returns the correct network I’m in. Also I can resolve DNS queries directly with AT commands in the modem so I do have access to the Internet. But I’m unable to perform a ping within the RPI. This is the result:
ping 8.8.8.8 -I usb0
PING 8.8.8.8 (8.8.8.8) from 192.168.225.21 usb0: 56(84) bytes of data.
From 192.168.225.1 icmp_seq=1 Destination Net Unreachable
From 192.168.225.1 icmp_seq=2 Destination Net Unreachable
This is my route table
ip route show
default via 192.168.225.1 dev usb0
default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.38 metric 600
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.38 metric 600
192.168.225.0/24 dev usb0 proto kernel scope link src 192.168.225.21
This are my interfaces
ip address
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 noprefixroute
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether d8:3a:dd:c9:e1:26 brd ff:ff:ff:ff:ff:ff
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 3a:4e:a9:49:1e:1c brd ff:ff:ff:ff:ff:ff
inet 192.168.225.21/24 brd 192.168.225.255 scope global dynamic usb0
valid_lft 42797sec preferred_lft 42797sec
inet6 fe80::8962:fe22:faa2:5b6e/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether d8:3a:dd:c9:e1:27 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.38/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
valid_lft 43112sec preferred_lft 43112sec
inet6 fe80::d693:9ee:ea53:e454/64 scope link noprefixroute
valid_lft forever preferred_lft forever
I also tried a traceroute and it seems that the message gets stuck on the gateway (the antenna)
traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 mobileap.qualcomm.com (192.168.225.1) 2.347 ms !N 2.327 ms !N *
Dou you have any idea what I’m configuring wrong in my RPI?
Thank you and best regards