Hi,
I have a Quectel EC25- E module connected to my Linux Board, with IPv4 i can able to access internet.
Now i want to test IPv6 with EC25. Can some one help me on below queries.
Does EC25-E supports IPv6?
Procedure for testing IPv6 with EC25 module?
Thanks & Regards
khaleel
Connect using “IPV4V6” as the PDP_type argument in your AT+CGDCONT command.
You can test using the URL http://test-ipv6.com/
Hi snowgum,
Thanks for the reply.
Unfortunately my Linux board doesn’t have a GUI to test with the suggested URL.
Can you please share the procedure for testing ipv6 with commands.
Queries:
Where is DHCPv6 server exists in cellular networks?
How we assign a global ipv6 address?
jfrog
June 23, 2022, 7:17pm
4
First query your modem with AT+CGPADDR
Here is the output
AT+CGPADDR
+CGPADDR: 1,“100.114.238.225,36.1.73.0.51.25.229.164.0.1.0.1.215.196.138.151”
jfrog
June 24, 2022, 2:47pm
6
this is your IPv6 address, 36.1.73.0
corresponds to 2401:4900
, this is a global address
Try AT+CGPIAF=1,1,1,0
and then AT+CGPADDR
again, you should get a better output.
Followed your commands and below is the output
AT+CGPIAF=1,1,1,0
OK
AT+CGPADDR
+CGPADDR: 1,"100.124.56.49,2401:4900:3764:9C0F:0001:0001:E6B7:2783"
OK
when i try to ping6 “2401:4900:3764:9C0F:0001:0001:E6B7:2783” this ipv6, it is showing Network is unreachable
and even ipv6 is not displaying in the wwan0 network configuration.
wwan0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:100.124.56.49 P-t-P:100.124.56.49 Mask:255.255.255.252
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1270 (1.2 KiB) TX bytes:8561 (8.3 KiB)
Any thing more needed for testing ipv6 between two gsm modules.
jfrog
June 27, 2022, 9:52am
8
I suppose you either need to configure DHCPv6 client or manually add the address obtained to the interface and add default route for v6.
Tried with udhcpv6 client
root@rb-imx6ul:~# udhcpc6 -i wwan0
udhcpc6: can't get MAC
udhcpc6: can't get link-local IPv6 address
After assigning an ipv4 address with udhcp client link-local IPv6 address is removing
How to get a mac address for wwan0? It is always showing zeros.
jfrog
June 27, 2022, 8:27pm
10
I have no experience with this client. Try adding the address manually or try another client (if available for your platform).
With the below command i got the ipv6 addresses and i need to assign them to wwan0.
root@rb-imx6ul:~# qmicli -d /dev/cdc-wdm0 --wds-get-current-settings
[/dev/cdc-wdm0] Current settings retrieved:
IP Family: IPv6
IPv6 address: 2401:4900:376e:edee:c404:6063:560a:456e/64
IPv6 gateway address: 2401:4900:376e:edee:690d:f86b:265c:6a1a/64
IPv6 primary DNS: 2401:4900:50:9::65
IPv6 secondary DNS: 2401:4900:50:9::55
MTU: 1500
Domains: none
Can you please tell me the commands on how we can assign ipv6 addresses manually with ifconfig/ip
jfrog
June 28, 2022, 10:49pm
12
something like
sudo ip a add 2401:4900:376e:edee:c404:6063:560a:456e/64 dev wwan0
You can also try qmi-network
script.
With that command i can able to assign ipv6 global ip. But when i try to assign ipv6 gateway it is throwing below error
root@rb-imx6ul:~# route -A inet6 add default gw 2401:4900:22e2:fe42:819c:4587:3751:dfb9/64 dev wwan0
route: getaddrinfo: 2401:4900:22e2:fe42:819c:4587:3751:dfb9/64: -2
route: resolving 2401:4900:22e2:fe42:819c:4587:3751:dfb9/64
Even with ip command too unable to assign gateway.
Any suggestions on this.