My aim is to use the CDC ECM data connection to establish a data connection between a HL8548 modem and a Linux system.
I do it successfully with an IPv4 address, but I also need to do the same with an IPv6 address, and unfortunately it does not work.
Here is what I do:
I use minicom on the ACM device to run the following AT commands:
a. Context configuration:
b. Data activation:
Both of the above commands returns OK; so I am able to enable the network interface with the command:
ip link set eth1 up
At this point, I’m a bit lost. To get an IPv4 address, I had to run a DHCP client on the interface. But with the IPv6 address, everything looks OK:
eth1 Link encap:Ethernet HWaddr 00:00:11:12:13:14 inet6 addr: fe80::200:11ff:fe12:1314/64 Scope:Link inet6 addr: 2a04:cec0:a02:562a:200:11ff:fe12:1314/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:256 (256.0 B) TX bytes:496 (496.0 B)
Also, the context looks fine too:
+CGDCONT: 1,"IPV6","<APN HERE>","126.96.36.199.10.2.86.42.0.0.0.102.188.8.131.52",0,
Unfortunately, all ping or curl commands fail. I tried to run a dhcp client (
dhclient -6 eth1) but nothing happened.
I am sure that the SIM card is IPv6 complient.
I confess that I have a very poor level on network and modem communications. So maybe the issue is obvious, but I have no ideas.
Can someone explain me what is wrong in my procedure, and how to fix it please?
Thank you in advance!