Re: MC 7304 ipv4v6 - now works in (my) test environment



Am Montag, 30. November 2015, 13:23:43 schrieb Bjørn Mork:
I guess it's too late now, but testing this with MM is actually much
easier.  I was able to successfully change the mode after MM had opened
the device by using

 qmicli -p -d /dev/cdc-wdm1 --device-open-net='net-raw-ip|net-no-qos-header'
--get-service-version-info

in aother terminal.  This must be done after MM probes and opens the
modem, but before connecting.


From NM to MM to libqmi to kernel-driver and back. Thank your for the great 
support and the patience. ( especially for the people thinking  the thread 
tends to go off topic)

Today I was able to connect the MC 7304 via dualstack. 
(the huawei E398 did also work, just for reference)

It was a little bit tricky (crazy?), but it did work reproducable.

After switching in raw-mode - via side loading the ModemManager.
echo 1 > /sys/.... raw_ip
and 
qmicli -p -d /dev/cdc-wdm0 --device-open-net='net-raw-ip|net-no-qos-header' --
get-service-version-info

I made the connection via NetworkManager.

Ironically IPv6 worked better than IPv4. NM was setting addresses, routes and 
DNS for IPv6.

For IPv4 I had to do some things manually.

I have got all information - via different ways for IPv4 and IPv6. But in the 
end - raw ip is the/one solution for that device and maybe for some other.

hpmini:~ # mmcli -b 0
Bearer '/org/freedesktop/ModemManager1/Bearer/0'
  -------------------------
  Status             |   connected: 'yes'
                     |   suspended: 'no'
                     |   interface: 'wwan0'
                     |  IP timeout: '20'
  -------------------------
  Properties         |         apn: 'internet.telekom'
                     |     roaming: 'allowed'
                     |     IP type: 'ipv4v6'
                     |        user: 'tm'
                     |    password: 'none'
                     |      number: '*99#'
                     | Rm protocol: 'unknown'
  -------------------------
  IPv4 configuration |   method: 'dhcp'
                     |  address: 'unknown'
                     |   prefix: '0'
                     |  gateway: 'unknown'
                     |      DNS: none
                     |      MTU: '1430'
  -------------------------
  IPv6 configuration |   method: 'dhcp'
                     |  address: '2a01:598:b000:1afd:7cfd:efcb:c7:c156'
                     |   prefix: '64'
                     |  gateway: '2a01:598:b000:1afd:347e:fc7a:f0c1:c014'
                     |      DNS: '2a01:598:7ff:0:10:74:210:210'
                     |      MTU: '1430'

hpmini:~ # qmicli -p -d /dev/cdc-wdm0 --wds-get-current-settings
[/dev/cdc-wdm0] Current settings retrieved:
           IP Family: IPv4
        IPv4 address: 10.18.88.31
    IPv4 subnet mask: 255.255.255.192
IPv4 gateway address: 10.18.88.1
    IPv4 primary DNS: 10.74.210.210
  IPv4 secondary DNS: 10.74.210.211
                 MTU: 1430
             Domains: none


8: wwan0: <POINTOPOINT,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state 
UNKNOWN group default qlen 1000
    link/none 
    inet 10.18.88.31/26 scope global wwan0
       valid_lft forever preferred_lft forever
    inet6 2a01:598:b000:1afd:62df:7a2c:4772:e492/64 scope global mngtmpaddr 
dynamic 
       valid_lft forever preferred_lft forever
    inet6 2a01:598:b000:1afd:2f09:788a:f047:7c27/64 scope global mngtmpaddr 
dynamic 
       valid_lft forever preferred_lft forever
    inet6 2a01:598:b000:1afd:d6c7:24fe:cddd:bcc5/64 scope global mngtmpaddr 
dynamic 
       valid_lft forever preferred_lft forever
    inet6 2a01:598:b000:1afd:6a6b:6c6b:7d2a:1177/64 scope global mngtmpaddr 
dynamic 
       valid_lft forever preferred_lft forever
    inet6 2a01:598:b000:1afd:7a4:e8ba:6a45:a976/64 scope global mngtmpaddr 
dynamic 
       valid_lft forever preferred_lft forever
    inet6 2a01:598:b000:1afd:a22:970e:6746:dab5/64 scope global mngtmpaddr 
dynamic 
       valid_lft forever preferred_lft forever
    inet6 2a01:598:b000:1afd:7cfd:efcb:c7:c156/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::a68d:ed6:2082:861f/64 scope link 
       valid_lft forever preferred_lft forever


Regards,
Thomas Schäfer









 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]