IPv6 mobile 4G wwan0

Hi all
I have a 4G (GL-X750) router running 21.02.0-rc3 and it works just fine.
But recently my mobile provider hands out IPv6 ...
And now if I set PDP Type to IPv4/IPv6, then WWAN_4 disappears and wwan0 does not get any IPv4 address. I do not know the conventions but I would rather expect an extra WWAN_6 underneath WWAN with IPv6 address. Any experience to get both mobile IPv4 and IPv6 working is very welcome.

It could be one of the IPv6 transition methods like NAT64+DNS64 or DS-Lite:

1 Like

@vgaetera thanks for reply ... I am rather looking for native IPv4 + IPv6 mobile 4G

Some ISPs offer only IPv6 and provide NAT64+DNS64 to reach IPv4 hosts.

1 Like

fwiw: setting PDP Type to IPv6 also does not work.

Does anyone have an OpenWRT 4G Hotspot with both IPv4 IPv6 natively provided on WWAN?

Perhaps you should try the latest stable release, at least for testing.
Since the upcoming one is still implicated by multiple issues:
http://lists.openwrt.org/pipermail/openwrt-devel/2021-July/035840.html

1 Like

Thanks for kind suggestion, I will try rc4 soon and will update findings here.
If WWAN v6 has not been taken care of I will try to discuss with development.
Perhaps I encounter a driver limitation rather than an openwrt issue. Therefore any testimonial of a working OpenWRT 4G Hotspot with both IPv4 IPv6 natively provided on WWAN is greatly appreciated.

1 Like

Not sure what you're looking for, but dual-stack and single-stack IPv6 is definitely supported by the cdc_mbim and qmi_wwan drivers. And that has been so from the beginning, almost 10 years ago.

Thanks @bmork for kind and expert reaction.
I am looking for dual-stack IPv4 + IPv6 over WWAN (mobile interface using a 4G SIM).
The dual-stack over ethernet and WiFi interfaces works just fine indeed.

I run 21.02.0-rc3

Do you happen to have a 4G router with working dual-stack IPv4 + IPv6 over WWAN?

Perhaps my specific one (GL-X750) modem Manufacturer:Quectel Product:EP06-E has limitations. If I set PDP Type to IPv4/IPv6 both do not work. If I set PDP Type to IPv4 it does work. PDP Type IPv4 automatically creates WWAN_4 but PDP Type IPv6 or PDP Type IPv4/IPv6 makes even WWAN_4 disappear.

update (1): fwiw, I just upgraded to 21.02.0-rc4 but see no different behavior

update (2): as in Connecting to IPv6 using the uqmi
I do (but I am not at all sure if first command is what's needed to create modem profile 1):

# echo 'AT+CGDCONT=1,"IPV4V6","telenetwap.be"' > /dev/ttyUSB0

# uqmi -d /dev/cdc-wdm0 --get-client-id wds
21

# uqmi -d /dev/cdc-wdm0 --set-client-id wds,21 --set-ip-family ipv6

# uqmi -d /dev/cdc-wdm0 --get-client-id wds
22

# uqmi -d /dev/cdc-wdm0 --set-client-id wds,22 --set-ip-family ipv4

# uqmi -d /dev/cdc-wdm0 --set-client-id wds,21 --start-network --profile 1
"Call failed"
# uqmi -d /dev/cdc-wdm0 --set-client-id wds,22 --start-network --profile 1
"No effect"

# uqmi -d /dev/cdc-wdm0  --set-client-id wds,21  --get-current-settings
"Out of call"

# uqmi -d /dev/cdc-wdm0  --set-client-id wds,22  --get-current-settings
{
        "pdp-type": "ipv4",
        "ip-family": "ipv4",
        "mtu": 1500,
        "ipv4": {
                "ip": "aaa.bbb.ccc.ddd",
                "dns1": "195.130.130.141",
                "dns2": "195.130.131.141",
                "gateway": "aaa.bbb.ccc.eee",
                "subnet": "255.255.255.252"
        },
        "ipv6": {
                
        },
        "domain-names": {
                
        }
}

Notice "Call failed" and PDP type did not reflect IPV4V6

Hi all, here is how, by trial an error, and some luck, I got v4+v6 mobile to work:

config interface 'WWAN'
	option proto 'qmi'
	option device '/dev/cdc-wdm0'
	option apn 'telenetwap.be'
	option ipv6 '1'
	option pdptype 'ipv4v6'
>> 	option auth 'none' <<<<====

I had previously set " option auth 'both' ", but, since there is no username/password required by my provider, I now considered (why not?) trying 'none' instead ... with success :neutral_face:

Maybe this both->none adjustment can, one day, help someone else figure out to avoid similar struggle.
have a nice day

an update on this v4+v6 mobile story

So I got my GL-X750 (no battery) working v4+v6 4G mobile.
Now I bought a GL-MIFI (with battery) but I don't get it to work v4+v6 4G mobile.

Both have same interfaces configured identical (I compare config with diff utility). Both run 21.02.0-rc4. GL-MIFI has another modem Quectel than GL-X750:

**GL-X750**:
Bus 001 Device 004: ID 2c7c:0306 Quectel EP06-E
ATI
Quectel
EP06
Revision: EP06ELAR03A07M4G

**GL-MIFI**:
Bus 001 Device 004: ID 2c7c:0125 Android Android
ATI
Quectel
EC25
Revision: EC25EFAR06A04M4G

Again GL-MIFI does work with PDP Type ipv4. but. v4 and v6 do not work with PDP Type ipv4v6. I switched SIM cards, no change. The SIM cards do both work for v4+v6 in Android phone. Feels like a 'deja vu' ... maybe I fixed GL-X750 but do not really know how...

Any help is welcome. I have a working and non working device so I am happy to contribute with any troubleshooting one suggests.

It would in particular be interesting to know if anyone else with GL-MIFI (or with Quectel EC25 modem) has v4+v6 4G mobile working.

The log shows (as in Connecting to IPv6 using the uqmi):

Interface 'WWAN' is setting up now
WWAN (5491): Waiting for SIM initialization
WWAN (5491): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
WWAN (5491): Waiting for network registration
WWAN (5491): Starting network WWAN
WWAN (5491): Unable to connect IPv6
WWAN (5587): Stopping network WWAN
WWAN (5587): Command failed: Permission denied
Interface 'WWAN' is now down

Bringing up IPv6 manually again (as in same post above) shows "Call failed".
I may be missing something subtle. I also still do not understand well how to make a modem profile.

As it turns out the GL-X750 and GL-MIFI modem CGDCONT settings were different:

 GL-MIFI
AT+CGDCONT?
+CGDCONT: 1,"IP","telenetwap.be","0.0.0.0",0,0,0,0

 GL-X750
AT+CGDCONT?
+CGDCONT: 1,"IPV4V6","telenetwap.be","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 2,"IPV4V6","ims","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 3,"IPV4V6","sos","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,1

I changed GL-MIFI to be same (I am not sure what 'ims' and 'sos' are for) and now both IPV4 and IPV6 work on GL-MIFI as well.

I don't know if the network option pdptype 'ipv4v6' was not working (I first changed 'modem AT CGDCONT' and then 'network option pdptype'). But, I am not going to try to undo this :neutral_face:. It works now and may perhaps serve as hint to other users or developers or bug hunters.

2 Likes

CGDCONT profile 1 is very often used by modem firmware to configure the default bearer. If it is IPv4 only, then you won't be able to get IPv6 working. Setting it to IPV4V6 should be safe regardless, since it will allow any combination of IPv4 and/or IPv6.

The "ims" and "sos" APNs are typically autoconfigured by the modem for VoLTE support or something like that. In my experience, and many others, this autoconfiguration tends to get in the way. The failure modes are sometimes subtle, making it hard to debug. I recommend turning that feature off before it bites.

I assume you have a Quectel modem? I documented the procedure to disble the feature here:

1 Like

@bmork

Thanks for kind and expert reply and for your valuable documentation

I was meanwhile wondering : openwrt 'network option pdptype' could (perhaps optionally?) set CGDCONT profile 1 accordingly ... or at least (allow to change) parameter IP versus IPv4v6

Have a nice day

Héllo,

I have the same issue...
Can you elaborate how you've fixed this (script or file modified and used ?)
For now I have only disabled ; automatic APN with AT commands like shown in :

Modem type: Quectel EP06
Revision / Firmware: EP06ELAR04A04M4G

System

Hostname ULTRA-5G
Model Globalscale Marvell ESPRESSOBin Ultra Board
Architecture ARMv8 Processor rev 4
Firmware Version OpenWrt 21.02.0-rc4 r16256-2d5ee43dc6 / LuCI openwrt-21.02 branch git-21.188.55099-e52e1de
Kernel Version 5.4.137
config interface 'wwan'
        option proto 'qmi'
        option apn 'free'
##      option apn 'internet'
        option ipv6 '1'
        option auth 'none'
        option pincode '1234'
        option device '/dev/cdc-wdm0'
        option metric '10'
        option pdptype 'ipv4v6'
Sat Aug  7 09:15:10 2021 daemon.notice netifd: Interface 'wwan' is setting up now
Sat Aug  7 09:15:10 2021 daemon.notice netifd: wwan (25413): Waiting for SIM initialization
Sat Aug  7 09:15:12 2021 daemon.notice netifd: wwan (25413): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
Sat Aug  7 09:15:12 2021 daemon.notice netifd: wwan (25413): Waiting for network registration
Sat Aug  7 09:15:13 2021 daemon.notice netifd: wwan (25413): Starting network wwan
Sat Aug  7 09:15:14 2021 daemon.notice netifd: wwan (25413): Unable to connect IPv6
Sat Aug  7 09:15:14 2021 daemon.notice netifd: wwan (25551): Stopping network wwan
Sat Aug  7 09:15:14 2021 daemon.notice netifd: wwan (25551): Command failed: Permission denied
Sat Aug  7 09:15:14 2021 daemon.notice netifd: Interface 'wwan' is now down
Sat Aug  7 09:15:14 2021 daemon.notice netifd: Interface 'wwan' is setting up now
Sat Aug  7 09:15:14 2021 daemon.notice netifd: wwan (25559): Waiting for SIM initialization
Sat Aug  7 09:15:16 2021 daemon.notice netifd: wwan (25559): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
Sat Aug  7 09:15:16 2021 daemon.notice netifd: wwan (25559): Waiting for network registration
Sat Aug  7 09:15:17 2021 daemon.notice netifd: wwan (25559): Starting network wwan
Sat Aug  7 09:17:30 2021 daemon.notice netifd: wwan (26715): Stopping network wwan
Sat Aug  7 09:17:30 2021 daemon.notice netifd: wwan (26715): Command failed: Permission denied
Sat Aug  7 09:17:30 2021 daemon.notice netifd: Interface 'wwan' is now down
Sat Aug  7 09:17:33 2021 daemon.notice netifd: Interface 'wwan' is setting up now
Sat Aug  7 09:17:33 2021 daemon.notice netifd: wwan (27425): Waiting for SIM initialization

Ref : https://bugs.openwrt.org/index.php?do=details&task_id=1252
I have add set +x in line 2 of /lib/netifd/proto/qmi.sh
https://pastebin.com/aeR5P9Uq

FIXED !!!
I have only to activate IPV6 on my FREE (France) MOBILE PROVIDER Web Interface !

1 Like

Can you elaborate how you've fixed this (script or file modified and used ?)

I used (on linux CLI):
picocom -b 115200 /dev/ttyUSB3
and then I gave the 3 AT commands

AT+CGDCONT=1,"IPV4V6","my.provider","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
AT+CGDCONT=2,"IPV4V6","ims","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
AT+CGDCONT=3,"IPV4V6","sos","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,1

one can check pre post config with

AT+CGDCONT?
1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.