Skip to content

LTE Modem dial‐up

Zhen XIN edited this page Feb 2, 2024 · 1 revision

Executes the following commands with root privilege:

mmcli --scan-modems
mmcli --list-modems
mmcli -m 0 --simple-connect='apn=3gnet,ip-type=ipv4v6'    # replace -m 0 with the real modem number in your system; replace 3gnet with the APN name of your carrier
ip link set wwan0 up

mmcli -m 0
mmcli -m 0 --bearer 1                                     # replace 1 with the real bearer number from previous command

ip addr add 2.68.206.100/32 dev wwan0                     # replace IP address with your real one from previous command
ip link set dev wwan0 arp off
ip route add default dev wwan0

echo "nameserver 210.22.84.3" >> /etc/resolv.conf
echo "nameserver 2408:8888:0:8888::8" >> /etc/resolv.conf # replace the 2 dns addresses with the real ones from your carrier

Now test your luck with ping:

ping6 www.sina.com.cn
PING www.sina.com.cn(2408:874f:2000:201:3::3fd (2408:874f:2000:201:3::3fd)) 56 data bytes
64 bytes from 2408:874f:2000:201:3::3fd (2408:874f:2000:201:3::3fd): icmp_seq=1 ttl=55 time=59.7 ms
Clone this wiki locally