I want to establish IPv6 connection using EC25 LTE modem. It works with PPP, but for some reason, I want to test it with QMI. I use this script to connect, but I keep getting IPv4 addres from the ISP.
My OpenWRT is 18.06.4. The reason why I use this script is that I can't afford LuCI.
#!/bin/sh
cd
./modem_off.sh
sleep 5
./modem_on.sh
sleep 5
ifconfig wwan0 down
echo "Y" >/sys/class/net/wwan0/qmi/raw_ip
ifconfig wwan0 up
ifup wwan
ifup wwan6
uqmi -d /dev/cdc-wdm0 --wda-set-data-format raw-ip
uqmi --network-register -d /dev/cdc-wdm0
sleep 10
uqmi -d /dev/cdc-wdm0 --set-ip-family ipv6
uqmi --get-serving-system -d /dev/cdc-wdm0
uqmi --get-signal-info -d /dev/cdc-wdm0
sleep 5
uqmi --start-network internet --autoconnect --ip-family ipv6 -d /dev/cdc-wdm0
sleep 6
uqmi --get-data-status -d /dev/cdc-wdm0
uqmi -d /dev/cdc-wdm0 --get-current-settings
And the output shows IPv4 address:
{
"registration": "registered",
"plmn_mcc": 216,
"plmn_mnc": 30,
"plmn_description": "Telekom HU",
"roaming": false
}
{
"type": "wcdma",
"rssi": -87,
"ecio": 17
}
21081216
"connected"
{
"pdp-type": "ipv4",
"ip-family": "ipv4",
"mtu": 1500,
"ipv4": {
"ip": "100.81.103.112",
"dns1": "84.2.46.1",
"dns2": "84.2.44.1",
"gateway": "100.81.103.113",
"subnet": "255.255.255.252"
},
"ipv6": {
},
"domain-names": {
}
}
I have a simple DHCP and DHCPv6 interface configured. Please note that also the IPv4 address doesn't appear on the network interface.
Thanks for your help!