Hej napotkałem pewien problem podczas łączenia 2 routerów przy pomocy open VPN w jedna dużą sieć LAN.
Vpn się łączy ale jakoś nie działa do końca dobrze.

Mianowicie udało mi się nawiązać połączenie między routerem Klienckim a routerem Serwerowym oraz całą siecią routera serwera.
Lecz nie mogę z Serwera połączyć się ani do klienckiego routera ani z siecią klienta...

Sieć Serwera Openvpn:

192.168.2.0 255.255.255.0

Sieć Klienta Openvpn:

192.168.0.0 255.255.255.0

Ping Kienta openvpn do urządzen w sieci serwera i samego serwera:

root@OpenWrt:~# ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
64 bytes from 192.168.2.1: seq=0 ttl=64 time=28.164 ms
64 bytes from 192.168.2.1: seq=1 ttl=64 time=28.662 ms
^C
--- 192.168.2.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 28.164/28.413/28.662 ms

root@OpenWrt:~# ping 192.168.2.2
PING 192.168.2.2 (192.168.2.2): 56 data bytes
64 bytes from 192.168.2.2: seq=0 ttl=63 time=34.417 ms
64 bytes from 192.168.2.2: seq=1 ttl=63 time=32.598 ms
^C
--- 192.168.2.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 32.598/33.507/34.417 ms

root@OpenWrt:~# ping 192.168.2.3
PING 192.168.2.3 (192.168.2.3): 56 data bytes
64 bytes from 192.168.2.3: seq=0 ttl=63 time=28.792 ms
64 bytes from 192.168.2.3: seq=1 ttl=63 time=28.746 ms
^C
--- 192.168.2.3 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 28.746/28.769/28.792 ms

Ping Serwera Openvpn do sieci klienta:

root@Szrot:~# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
^C
--- 192.168.0.1 ping statistics ---
10 packets transmitted, 0 packets received, 100% packet loss
root@Szrot:~# ping 192.168.0.101

PING 192.168.0.101 (192.168.0.101): 56 data bytes
^C
--- 192.168.0.101 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss

Konfiguracja Openvpn servera:

config openvpn 'Bubello'
        option dev 'tun1'
        option proto 'udp'
        option log '/tmp/openvpn.log'
        option verb '3'
        option ca '<klucz>'
        option cert '<klucz>'
        option key '<klucz>'
        option keepalive '10 120'
        option dh '<klucz>'
        option tls_auth '<klucz> 0'
        option key_direction '0'
        option cipher 'AES-128-CBC'
        option server '10.8.1.0 255.255.255.0'
        list push 'route 192.168.2.0 255.255.255.0'
        option port '<Port>'
        option persist_tun '1'
        option persist_key '1'
        option persist_local_ip '1'
        option persist_remote_ip '1'
        option route '192.168.0.0 255.255.255.0'
        option comp_lzo 'yes'
        option fast_io '1'
        option client_to_client '1'
        option enabled '1'

Konfiguracja Openvpn Klienta:

config openvpn 'Bubello_cl'
        option float '1'
        option client '1'
        option reneg_sec '0'
        option verb '3'
        option persist_key '1'
        option nobind '1'
        option cert '<klucz>'
        option key '<klucz>'
        option ca '<klucz>'
        option tls_client '1'
        option pull '1'
        option fast_io '1'
        option log '/tmp/openvpn.log'
        option dev 'tun'
        option remote '<Host>'
        option port '<Port>'
        option enabled '1'
        option tls_auth '<klucz> 1'
        option comp_lzo 'yes'
        option cipher 'AES-128-CBC'
        option persist_remote_ip '1'

Ustawienia FW servera:

config zone
        option name 'Bubello'
        option network 'VPN1'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'
        option masq '1'

config forwarding
        option dest 'lan'
        option src 'Bubello'

config forwarding
        option dest 'Bubello'
        option src 'lan'

Ustawienia FW Klienta:

config zone
        option input 'ACCEPT'
        option output 'ACCEPT'
        option name 'Vpn'
        option forward 'ACCEPT'
        option network 'VPN'
        option family 'ipv4'
        option masq '1'
        option mtu_fix '1'

config forwarding
        option dest 'lan'
        option src 'Vpn'

config forwarding
        option dest 'Vpn'
        option src 'lan'

Właśnie kompiluje obraz z wyłączonym ipv6, jak się przemieli, to powiem jakie są moje subiektywne wrażenia.


<EDIT>
Jak na razie chodzi wyraźnie lepiej.
Choć błędem wciąż sypie do loga.

<EDIT2>
Jeszcze jedno przekompilowanie, teraz wywaliłem całkowicie wsparcie ipv6.
Błedu brak, i ipv6 też

<Final Edit>
Po całym dniu chodzenia torrenta potwierdzam że to rozwiązało problem i z szybkością działania i z błędem.

Mi ten błąd wcześniej nie pojawiał się w logach, lecz może po prostu się nie wyświetlał.
Jednak faktem jest że transmssion chodzi wolniej po upd, może domyślasz się co może być tego przyczyną?

Dzięki za pomoc.

Hej,
Jak w temacie po aktualizacji wczoraj openwrt do najnowszej wersji(dawniej miałem wersje z kwietnia) zauważyłem że używanie transmission-daemon zamula router niemiłosiernie, wcześniej taki problem nie występował.

Dla pewności przeflashowałem router jeszcze obrazem factory lecz nic to nie zmieniło.
Również transmission remote gui jest zamulone bo i samo transmission się wiesza.

W mojej poprzedniej wersji nie było jeszcze obsługi ipv6, lub była ona wyłączona,
Gdyż każda karta nie dostawała 2ch adresów jak to ma miejsce teraz.

Błąd jaki otrzymuje to:

Sat Sep 27 21:33:53 2014 daemon.err transmission-daemon[2480]: Couldn't connect socket 44 to 2001:0:9d38:6abd:3850:9ab:afb8:78ef, port 6881 (errno 1 - Operation not permitted) (net.c:288)

Jest ich multum po kilkanaście na minute.

5

(37 odpowiedzi, napisanych Oprogramowanie / Software)

jarek7714 napisał/a:
qbasasa napisał/a:

Jest to problem sterownika do modemu  E3276
Mam ten sam router, działa on prawidłowo z modemem e353u-2 lecz z modemem E3276 restartuje się co 10 minut.

A jak łączysz ten modem z routerem-poprzez aktywny HUB? To zupełnie inny kaliber sprzętu-jeżeli jest używany do LTE. Nawet gdy podłączymy aktywny HUB a do niego dysk, webcam to pojawi się inny problem: pamięci RAM i przepustowości USB-na to stawiam w pierwszej kolejności.

Tak jest, aktywny hub z zasilaczem 2A,
problem występuje nawet jeżeli do huba podpięty jest tylko modem lte,
normalnie podpiętą mam dukarkę, dysk i modem hspa+,
jedynym co zyskuje mając lte jest mniejszy ping, ponieważ niestety nawet na lte transferów jakie reklamuje plus nie da się osiągnąć w mojej lokalizacji więc limit osiągam już używając hspa+.

6

(37 odpowiedzi, napisanych Oprogramowanie / Software)

Witajcie,
Niestety muszę to potwierdzić, problem wciąż występuje nawet w najnowszym gargole.
Jest to problem sterownika do modemu  E3276
Mam ten sam router, działa on prawidłowo z modemem e353u-2 lecz z modemem E3276 restartuje się co 10 minut.

Ktoś może z kolegów uporał się z tym problemem?

Ok, tylko jakim cudem jest brak zasięgu skoro 3 minuty wcześniej miałem zasięg na maxa?
AT+CEER daje mi:
+CEER: Regular deactivation

Mam ten sam problem...
modem miga na niebiesko, a opewrt mowi nocarrier.
Pojawiło się jakieś rozwiązanie?

9

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Napisalem owszem znalazłem jeden błąd lecz problem z
Invalid DNS pozostaje smile

10

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Prawda.
lecz jak zawsze cos musi nie działać....


root@Gargoyle:~# /etc/init.d/mwan3 restart
root@Gargoyle:~# uci: Entry not found
sh: wan: unknown operand
uci: Entry not found
sh: wan: unknown operand
uci: Entry not found
sh: wan3: unknown operand
uci: Entry not found
sh: wan2: unknown operand
uci: Entry not found
sh: wan2: unknown operand
ERROR: No valid dynamic DNS service configurations defined
(Did you specify correct configuration file path?)
uci: Entry not found
sh: wan3: unknown operand
uci: Entry not found
sh: wan3: unknown operand
uci: Entry not found
sh: wan3: unknown operand
uci: Entry not found
sh: wan2: unknown operand
uci: Entry not found
sh: wan2: unknown operand

mwan3 conf:

config 'interface' 'wan'
    option 'enabled' '1'
    list 'track_ip' '8.8.4.4'
    list 'track_ip' '8.8.8.8'
    list 'track_ip' '208.67.222.222'
    list 'track_ip' '208.67.220.220'
    option 'reliability' '3'
    option 'count' '1'
    option 'timeout' '5'
    option 'interval' '10'
    option 'down' '3'
    option 'up' '8'

config 'interface' 'wan2'
    option 'enabled' '1'
    list 'track_ip' '8.8.4.4'
    list 'track_ip' '8.8.8.8'
    list 'track_ip' '208.67.222.222'
    list 'track_ip' '208.67.220.220'
    option 'reliability' '1'
    option 'count' '1'
    option 'timeout' '5'
    option 'interval' '10'
    option 'down' '3'
    option 'up' '8'

config 'interface' 'wan3'
    option 'enabled' '1'
    list 'track_ip' '8.8.4.4'
    list 'track_ip' '8.8.8.8'
    list 'track_ip' '208.67.222.222'
    list 'track_ip' '208.67.220.220'
    option 'reliability' '1'
    option 'count' '1'
    option 'timeout' '5'
    option 'interval' '10'
    option 'down' '3'
    option 'up' '8'

config 'interface' 'wan4'
    option 'enabled' '1'
    list 'track_ip' '8.8.4.4'
    list 'track_ip' '8.8.8.8'
    list 'track_ip' '208.67.222.222'
    list 'track_ip' '208.67.220.220'
    option 'reliability' '1'
    option 'count' '1'
    option 'timeout' '5'
    option 'interval' '10'
    option 'down' '3'
    option 'up' '8'

config 'member' 'wan_m1_w2'
    option 'interface' 'wan'
    option 'metric' '1'
    option 'weight' '2'

config 'member' 'wan_m2_w2'
    option 'interface' 'wan'
    option 'metric' '2'
    option 'weight' '2'

config 'member' 'wan2_m1_w2'
    option 'interface' 'wan2'
    option 'metric' '1'
    option 'weight' '2'

config 'member' 'wan2_m2_w2'
    option 'interface' 'wan2'
    option 'metric' '2'
    option 'weight' '2'


config 'member' 'wan3_m1_w2'
    option 'interface' 'wan3'
    option 'metric' '1'
    option 'weight' '2'

config 'member' 'wan3_m2_w2'
    option 'interface' 'wan3'
    option 'metric' '2'
    option 'weight' '2'


config 'member' 'wan4_m1_w2'
    option 'interface' 'wan4'
    option 'metric' '1'
    option 'weight' '2'

config 'member' 'wan4_m2_w2'
    option 'interface' 'wan4'
    option 'metric' '2'
    option 'weight' '2'


config 'policy' 'wan1_only'
    list 'use_member' 'wan1_m1_w2'

config 'policy' 'wan2_only'
    list 'use_member' 'wan2_m1_w2'

config 'policy' 'wan3_only'
    list 'use_member' 'wan3_m1_w2'

config 'policy' 'wan4_only'
    list 'use_member' 'wan3_m1_w2'

config 'policy' 'wan1_wan2_wan3_wan4_loadbalanced'
    list 'use_member' 'wan1_m1_w2'
    list 'use_member' 'wan2_m1_w2'
    list 'use_member' 'wan3_m1_w2'
    list 'use_member' 'wan4_m1_w2'

config 'policy' 'wan1_pri_wan2_sec'
    list 'use_member' 'wan1_m1_w2'
    list 'use_member' 'wan2_m2_w2'

config 'policy' 'wan2_pri_wan1_sec'
    list 'use_member' 'wan1_m2_w2'
    list 'use_member' 'wan2_m1_w2'

config 'rule'
    option 'dest_ip' '192.168.0.0/16'
    option 'proto' 'tcp'
    option 'use_policy' 'default'

config 'rule'
    option 'dest_ip' '0.0.0.0/0'
    option 'equalize' '1'
    option 'use_policy' 'wan1_wan2_wan3_wan4_loadbalanced'

network:

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'lan'
        option ifname 'eth0.1'
        option type 'bridge'
        option proto 'static'
        option netmask '255.255.255.0'
        option dns '208.67.222.222 208.67.220.220'
        option ipaddr '192.168.2.1'

config interface 'wan'
        option dns '208.67.222.222 208.67.220.220'
        option peerdns '0'
        option auto '1'
        option proto '3g'
        option device '/dev/ttyUSB0'
        option apn 'darmowy'
        option service 'umts_only'
        option mobile_isp 'Polska - Aero2'
        option metric '10'

config switch
        option name 'rtl8366rb'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'rtl8366rb'
        option vlan '1'
        option ports '1 2 3 4 5t'

config switch_vlan
        option device 'rtl8366rb'
        option vlan '2'
        option ports '0 5t'

config interface 'wan2'
        option dns '8.8.8.8'
        option peerdns '0'
        option auto '1'
        option proto '3g'
        option device '/dev/ttyUSB3'
        option apn 'darmowy'
        option service 'umts_only'
        option mobile_isp 'Polska - Aero2'
        option metric '20'

config interface 'wan3'
        option dns '208.67.222.220 208.67.220.222'
        option peerdns '0'
        option auto '1'
        option proto '3g'
        option device '/dev/ttyUSB6'
        option apn 'darmowy'
        option service 'umts_only'
        option mobile_isp 'Polska - Aero2'
        option metric '30'

config interface 'wan4'
        option ifname 'eth1'
        option proto 'dhcp'
        option peerdns '0'
        option dns '8.8.4.4'
        option metric '40'

ifconfig -a

root@Gargoyle:~# ifconfig -a
3g-wan    Link encap:Point-to-Point Protocol
          inet addr:93.154.141.132  P-t-P:10.64.64.66  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:993 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1137 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:92592 (90.4 KiB)  TX bytes:108802 (106.2 KiB)

3g-wan2   Link encap:Point-to-Point Protocol
          inet addr:78.30.111.180  P-t-P:10.64.64.65  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:2090 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2235 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1317739 (1.2 MiB)  TX bytes:281933 (275.3 KiB)

3g-wan3   Link encap:Point-to-Point Protocol
          inet addr:78.30.83.85  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:3685 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3146 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:2510801 (2.3 MiB)  TX bytes:568333 (555.0 KiB)

br-lan    Link encap:Ethernet  HWaddr 64:70:02:39:36:C2
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:569866 errors:0 dropped:0 overruns:0 frame:0
          TX packets:582393 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:50335726 (48.0 MiB)  TX bytes:702970499 (670.4 MiB)

eth0      Link encap:Ethernet  HWaddr 64:70:02:39:36:C2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:570651 errors:0 dropped:0 overruns:60167 frame:0
          TX packets:582528 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:60735055 (57.9 MiB)  TX bytes:705307814 (672.6 MiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr 64:70:02:39:36:C2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:570566 errors:0 dropped:0 overruns:0 frame:0
          TX packets:582527 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:50454992 (48.1 MiB)  TX bytes:702976663 (670.4 MiB)

imq0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:16000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:11000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

imq1      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:16000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:11000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:11606 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11606 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:882494 (861.8 KiB)  TX bytes:882494 (861.8 KiB)

wlan0     Link encap:Ethernet  HWaddr 64:70:02:39:36:C2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2394 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:0 (0.0 B)  TX bytes:268909 (262.6 KiB)

wwan0     Link encap:Ethernet  HWaddr 02:50:F3:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wwan1     Link encap:Ethernet  HWaddr 02:50:F3:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wwan2     Link encap:Ethernet  HWaddr 02:50:F3:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

11

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Tak też zrobiłem myślałem bardziej o dodaniu jej jako paczki mogacej byc zainstalowanej przez samo opkg install mwan3

Hej,
czy jest możliwość dodania tej paczki do gargoyle?

Mowa o mwan3:
svn://213.136.13.52/var/svn/mwan

Hej,
jako że moje trzy modemy (huawei e353u-2, od irlandzkiego meteora) pomimo aktywnego huba usb mają dziwny problem z utrzymaniem połączenia przy użyciu modułu option i zwykłego połączenia modemowego.
(Wieszają się i połączenie można przywrócić tylko wyciągając fizycznie modem z portu.)

Po wielu postach i radach Cezarego odkryłem że są wspierane przez QMI, a dokładniej

kmod-usb-net-qmi-wwan

Jako że standardowy skrypt qmi-network nie wspierał więcej niż jednego połączenia, musiał więc zostać zmodyfikowany, do tego stworzyłem jeszcze prosty skrypt który pilnuje aby połączeni było cały czas wznawiane w przypadku rozłączenia.

Konkrety:

Hardware:

TL-WR1043ND z najnowszym gargoyle.
3 modemy huawei e353u-2
1 modem e3131 hilink
4 karty aero2

Software:

kmod-usb-net-qmi-wwan
libqmi-glib 
multiwan

Co należy zmienić w /usr/bin/qmi-network
to:

print_usage ()
{
    echo "usage: $0 [DEVICE] [COMMAND]"
}

if [ $# -ne 2 ]; then
    echo "error: missing arguments" 1>&2
    print_usage
    exit 255
fi

DEVICE=$1
COMMAND=$2
NUMWAN=$3
STATE_FILE=/tmp/qmi-network-state
PROFILE_FILE=/etc/qmi-network.conf

zamieniamy na to:

print_usage ()
{
    echo "usage: $0 [DEVICE] [COMMAND] [WAN]"
}

if [ $# -ne 3 ]; then
    echo "error: missing arguments" 1>&2
    print_usage
    exit 255
fi

DEVICE=$1
COMMAND=$2
NUMWAN=$3
STATE_FILE=/tmp/qmi-$NUMWAN-network-state
PROFILE_FILE=/etc/qmi-network.conf

Od teraz można połączyć przez qmi-network więcej niż jeden modem.
Zmienia się składnia qmi-network, nalezy jeszcze podać "wan" z /etc/config/network do którego przypisany jest modem u mnie są to wan, wan2, wan3

Przykład:

qmi-network /dev/cdc-wdm0 start wan

Druga rzecz to skrypt który raz uruchomiony pilnuje aby połączenie Qmi było cały czas nawiązane, w razie wykrycia że połączenie zostało rozłączone wznawia je i restartuje odpowiedni wan.
składnia [nazwa skryptu] <urzadzenie> <interfejs>

Przykład:
sh qmi_aero /dev/cdc-wdm0 wan

#!/bin/bash
print_usage ()
{
        echo "usage: $0 [DEVICE] [WAN]"
}

check_conn()
{
        if [ -n "$(qmi-network $DEVICE status $WAN|grep 'Status:  connected')" ] ;
        then
#       logger "Status of QMI: $DEVICE INTERFACE: $WAN - connected"
        echo "0"
        return
        else
        logger "Status of QMI: $DEVICE INTERFACE: $WAN - not connected"
        echo "1"
        return
        fi
}

restart_conn()
{
ifdown $WAN


if [ -f $STATE_FILE ] ;
then
qmi-network $DEVICE stop $WAN
logger "Old instance of QMI: $DEVICE INTERFACE: $WAN - STOPPED"
fi

while [ -z "$(qmi-network $DEVICE start $WAN| grep 'Network started successfully')" ];
        do
        logger "Connecting QMI: $DEVICE INTERFACE: $WAN - failed"
        done

sleep 5

if [ -n "$(qmi-network $DEVICE status $WAN|grep 'Status:  connected')" ] ;

    then
    logger "Connecting QMI: $DEVICE INTERFACE: $WAN - completed"
    ifup $WAN
    else
    logger "Connecting QMI: $DEVICE INTERFACE: $WAN - Error"
    fi

}

if [ $# -ne 2 ]; then
   echo "error: missing arguments" 1>&2
   print_usage
   exit 255
fi

DEVICE=$1
WAN=$2
STATE_FILE=/tmp/qmi-$WAN-network-state

logger "Started script for QMI: $DEVICE INTERFACE: $WAN"
restart_conn
while :
do
if [ -e $DEVICE ] ; then
if [ "$(check_conn)" != "0" ];
        then
        restart_conn
fi
sleep 10
else
sleep 5
done

Ok, udało mi się stworzyć coś takiego,
wspiera teoretycznie wiele interfejsów i wymaga modyfikacji skryptu /usr/bin.qmi-network.
Modyfikacja jest konieczna aby zmienna z numerem id sesji połączenia miała się gdzie zapisać jeżeli startujemy więcej niż jedno połączenie qmi.

qmi_monitor.sh:

#!/bin/bash
print_usage ()
{
        echo "usage: $0 [DEVICE] [WAN]"
}

check_conn()
{
        if [ "$(qmi-network $DEVICE status $WAN|grep connected)" == 'Status:  connected' ] ;
        then
#       logger "Status of QMI: $DEVICE INTERFACE: $WAN - connected"
        echo "0"
        return
        fi
        logger "Status of QMI: $DEVICE INTERFACE: $WAN - not connected"
        echo "1"
        return
}

restart_conn()
{
ifdown $WAN

TEST=$(qmi-network $DEVICE start $WAN)

if [[ "$TEST" == *"PDH already exists"* ]] ;
then
qmi-network $DEVICE stop $WAN
logger "Old instance of QMI: $DEVICE INTERFACE: $WAN - STOPPED"
fi

while [[ "$TEST" != *"Network started successfully"* ]];
        do
        logger "Connecting QMI: $DEVICE INTERFACE: $WAN - failed"
        TEST=$(qmi-network $DEVICE start $WAN)
        done
        
if [[ "$(qmi-network $DEVICE status $WAN|grep connected)" == *"connected"* ]] ;
    then
    logger "Connecting QMI: $DEVICE INTERFACE: $WAN - completed"
    ifup $WAN
    else
    logger "Connecting QMI: $DEVICE INTERFACE: $WAN - Error"
    fi

}

if [ $# -ne 2 ]; then
   echo "error: missing arguments" 1>&2
   print_usage
   exit 255
fi

DEVICE=$1
WAN=$2

logger "Started script for QMI: $DEVICE INTERFACE: $WAN"
while :
do
if [ "$(check_conn)" == "1" ];
        then
        restart_conn
fi
sleep 10
done

modyfikacja qmi-network:

print_usage ()
{
    echo "usage: $0 [DEVICE] [COMMAND] [WAN]"
}

if [ $# -ne 3 ]; then
    echo "error: missing arguments" 1>&2
    print_usage
    exit 255
fi

DEVICE=$1
COMMAND=$2
WANNR=$3
STATE_FILE=/tmp/qmi-network-state$WANNR
PROFILE_FILE=/etc/qmi-network.conf

Będę sprawdzał(muszę odczekać jedną godzinę aby napisać co zwraca status), zauważyłem też że multiwan dość niechętnie wspiera 3 połączenia ppp, torrent jest w stanie tylko używać na raz jedno, co jest przykre, ale możliwe że to tylko moja przypadłość.

spróbuje zaktualizować w nich firmware do wersji 11.810.09.20.264.B726
bo moje nie wiem jaką mają wersje ale są z irlandii. i dodam ATZ do skryptu łączącego

Wyczytałem gdzieś że problemy z połączeniem się mogą być spowodowane brakiem adresów ip w aero...
qmi łączy się po pewnym czasie, teraz muszę wymyślić jak sprawdzić kiedy się rozłączyło i wznowić połączenie a następnie ifup wan3.... poniewaz modem swieci sie na niebiesko nawet kiedy juz nie dziala....

Tak się stanie, ale czy da się coś zrobić aby się nie wieszały?

A da się coś na to poradzić, czy to wina mojej złej konfiguracji, modemu czy sam nie wiem czego?

Jest problem z PPP, czasem jak się rozłączy to modemy już nie chcą się połączyć tylko migają na niebiesko  że jest sieć a pppd w logach wypisuje No Carrier...

Chciał bym żeby to stabilnie działało.

na przykład teraz modem świeci się na niebiesko, czyli podłączony a oto co wyświetla ppp:

Apr  8 19:18:42 Gargoyle daemon.notice pppd[16270]: pppd 2.4.5 started by root, uid 0
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: abort on (BUSY)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: abort on (NO CARRIER)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: abort on (ERROR)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: report (CONNECT)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: timeout set to 10 seconds
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: send (AT&F^M)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: expect (OK)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: AT&F^M^M
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: OK
Apr  8 19:18:44 Gargoyle local2.info chat[16332]:  -- got it
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: send (ATE1^M)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: expect (OK)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: ^M
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: ATE1^M^M
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: OK
Apr  8 19:18:44 Gargoyle local2.info chat[16332]:  -- got it
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: send (AT+CGDCONT=1,"IP","darmowy"^M)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: timeout set to 30 seconds
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: expect (OK)
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: ^M
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: AT+CGDCONT=1,"IP","darmowy"^M^M
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: ERROR
Apr  8 19:18:44 Gargoyle local2.info chat[16332]:  -- failed
Apr  8 19:18:44 Gargoyle local2.info chat[16332]: Failed (ERROR)
Apr  8 19:18:44 Gargoyle daemon.err pppd[16270]: Connect script failed
Apr  8 19:18:45 Gargoyle daemon.info pppd[16270]: Exit.
Apr  8 19:18:45 Gargoyle daemon.notice netifd: Interface 'wan' is now down

niestety coś to qmi nie bangla.
raz sie polaczylo a tak nie chce dzialac, nawet jak sie polaczylo i dalem ifup mam ip i wszystko cacy ale nie ida pakiety.

root@Gargoyle:~# qmicli -d /dev/cdc-wdm2 --wds-start-network=darmowy --client-no-release-cid  -v
[08 Apr 2013, 16:23:24] [Debug] QMI Device at '/dev/cdc-wdm2' ready
[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Assuming service 'wds' is supported...
[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Allocating new client ID...
[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Sent message...
<<<<<< RAW:
<<<<<<   length = 16
<<<<<<   data   = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:01

[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Sent message (translated)...
<<<<<< QMUX:
<<<<<<   length  = 15
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 4
<<<<<<   message     = "Allocate CID" (0x0022)
<<<<<< TLV:
<<<<<<   type       = "Service" (0x01)
<<<<<<   length     = 1
<<<<<<   value      = 01
<<<<<<   translated = wds

[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Received message...
>>>>>> RAW:
>>>>>>   length = 24
>>>>>>   data   = 01:17:00:80:00:00:01:01:22:00:0C:00:02:04:00:00:00:00:00:01:02:00:01:05

[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 23
>>>>>>   flags   = 0x80
>>>>>>   service = "ctl"
>>>>>>   client  = 0
>>>>>> QMI:
>>>>>>   flags       = "response"
>>>>>>   transaction = 1
>>>>>>   tlv_length  = 12
>>>>>>   message     = "Allocate CID" (0x0022)
>>>>>> TLV:
>>>>>>   type       = "Result" (0x02)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = SUCCESS
>>>>>> TLV:
>>>>>>   type       = "Allocation Info" (0x01)
>>>>>>   length     = 2
>>>>>>   value      = 01:05
>>>>>>   translated = [ service = 'wds' cid = '5' ]

[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Registered 'wds' (version unknown) client with ID '5'
[08 Apr 2013, 16:23:24] [Debug] Asynchronously starting network...
[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Sent message...
<<<<<< RAW:
<<<<<<   length = 23
<<<<<<   data   = 01:16:00:00:01:05:00:01:00:20:00:0A:00:14:07:00:64:61:72:6D:6F:77:79

[08 Apr 2013, 16:23:24] [Debug] [/dev/cdc-wdm2] Sent message (translated)...
<<<<<< QMUX:
<<<<<<   length  = 22
<<<<<<   flags   = 0x00
<<<<<<   service = "wds"
<<<<<<   client  = 5
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 10
<<<<<<   message     = "Start Network" (0x0020)
<<<<<< TLV:
<<<<<<   type       = "APN" (0x14)
<<<<<<   length     = 7
<<<<<<   value      = 64:61:72:6D:6F:77:79
<<<<<<   translated = darmowy

[08 Apr 2013, 16:23:25] [Debug] [/dev/cdc-wdm2] Received message...
>>>>>> RAW:
>>>>>>   length = 25
>>>>>>   data   = 01:18:00:80:01:05:02:01:00:20:00:0C:00:02:04:00:01:00:0E:00:10:02:00:ED:03

[08 Apr 2013, 16:23:25] [Debug] [/dev/cdc-wdm2] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 24
>>>>>>   flags   = 0x80
>>>>>>   service = "wds"
>>>>>>   client  = 5
>>>>>> QMI:
>>>>>>   flags       = "response"
>>>>>>   transaction = 1
>>>>>>   tlv_length  = 12
>>>>>>   message     = "Start Network" (0x0020)
>>>>>> TLV:
>>>>>>   type       = "Result" (0x02)
>>>>>>   length     = 4
>>>>>>   value      = 01:00:0E:00
>>>>>>   translated = FAILURE: CallFailed
>>>>>> TLV:
>>>>>>   type       = "Call End Reason" (0x10)
>>>>>>   length     = 2
>>>>>>   value      = ED:03
>>>>>>   translated = gsm-wcdma-insufficient-resources

error: couldn't start network: QMI protocol error (14): 'CallFailed'
call end reason (1005): gsm-wcdma-insufficient-resources
[/dev/cdc-wdm2] Client ID not released:
        Service: 'wds'
            CID: '5'
[08 Apr 2013, 16:23:25] [Debug] [/dev/cdc-wdm2] Unregistered 'wds' client with ID '5'
[08 Apr 2013, 16:23:25] [Debug] Client released
root@Gargoyle:~# qmicli -d /dev/cdc-wdm1 --wds-start-network=darmowy --client-no-release-cid  -v
[08 Apr 2013, 16:23:46] [Debug] QMI Device at '/dev/cdc-wdm1' ready
[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Assuming service 'wds' is supported...
[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Allocating new client ID...
[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Sent message...
<<<<<< RAW:
<<<<<<   length = 16
<<<<<<   data   = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:01

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Sent message (translated)...
<<<<<< QMUX:
<<<<<<   length  = 15
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 4
<<<<<<   message     = "Allocate CID" (0x0022)
<<<<<< TLV:
<<<<<<   type       = "Service" (0x01)
<<<<<<   length     = 1
<<<<<<   value      = 01
<<<<<<   translated = wds

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>>   length = 24
>>>>>>   data   = 01:17:00:80:00:00:01:01:22:00:0C:00:02:04:00:00:00:00:00:01:02:00:01:15

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 23
>>>>>>   flags   = 0x80
>>>>>>   service = "ctl"
>>>>>>   client  = 0
>>>>>> QMI:
>>>>>>   flags       = "response"
>>>>>>   transaction = 1
>>>>>>   tlv_length  = 12
>>>>>>   message     = "Allocate CID" (0x0022)
>>>>>> TLV:
>>>>>>   type       = "Result" (0x02)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = SUCCESS
>>>>>> TLV:
>>>>>>   type       = "Allocation Info" (0x01)
>>>>>>   length     = 2
>>>>>>   value      = 01:15
>>>>>>   translated = [ service = 'wds' cid = '21' ]

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Registered 'wds' (version unknown) client with ID '21'
[08 Apr 2013, 16:23:46] [Debug] Asynchronously starting network...
[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Sent message...
<<<<<< RAW:
<<<<<<   length = 23
<<<<<<   data   = 01:16:00:00:01:15:00:01:00:20:00:0A:00:14:07:00:64:61:72:6D:6F:77:79

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Sent message (translated)...
<<<<<< QMUX:
<<<<<<   length  = 22
<<<<<<   flags   = 0x00
<<<<<<   service = "wds"
<<<<<<   client  = 21
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 10
<<<<<<   message     = "Start Network" (0x0020)
<<<<<< TLV:
<<<<<<   type       = "APN" (0x14)
<<<<<<   length     = 7
<<<<<<   value      = 64:61:72:6D:6F:77:79
<<<<<<   translated = darmowy

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>>   length = 27
>>>>>>   data   = 01:1A:00:80:01:15:02:01:00:20:00:0E:00:02:04:00:00:00:00:00:01:04:00:90:66:CE:02

[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 26
>>>>>>   flags   = 0x80
>>>>>>   service = "wds"
>>>>>>   client  = 21
>>>>>> QMI:
>>>>>>   flags       = "response"
>>>>>>   transaction = 1
>>>>>>   tlv_length  = 14
>>>>>>   message     = "Start Network" (0x0020)
>>>>>> TLV:
>>>>>>   type       = "Result" (0x02)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = SUCCESS
>>>>>> TLV:
>>>>>>   type       = "Packet Data Handle" (0x01)
>>>>>>   length     = 4
>>>>>>   value      = 90:66:CE:02
>>>>>>   translated = 47081104

[/dev/cdc-wdm1] Network started
        Packet data handle: 47081104
[/dev/cdc-wdm1] Client ID not released:
        Service: 'wds'
            CID: '21'
[08 Apr 2013, 16:23:46] [Debug] [/dev/cdc-wdm1] Unregistered 'wds' client with ID '21'
[08 Apr 2013, 16:23:46] [Debug] Client released
root@Gargoyle:~#

Tak jest!
A zadam jedno sakramentalne pytanie, czy mogę odpalić tak więcej niż jeden modem?

no właśnie.
A czy jest możliwe abym w miarę szybko samemu przepisał go by obsługiwał?
Udało mi się innymi paczkami sprawić ze jakieś moduły uznają te urządzenia za "swoje"

T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=03 Dev#=  5 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev= 0.00
S:  Manufacturer=Huawei Technologies
S:  Product=HUAWEI Mobile
C:* #Ifs= 7 Cfg#= 1 Atr=c0 MxPwr=500mA
A:  FirstIf#= 1 IfCount= 2 Cls=02(comm.) Sub=00 Prot=00
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=01 Driver=option
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=01 Prot=09 Driver=cdc_wdm
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=08 Driver=qmi_wwan
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=03 Driver=option
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=02 Driver=option
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Oraz ifconfig -a

eth0.1    Link encap:Ethernet  HWaddr 64:70:02:39:36:C2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4188 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2678 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:814609 (795.5 KiB)  TX bytes:639679 (624.6 KiB)

imq0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00                                                                                                                                                              -00
          NOARP  MTU:16000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:11000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

imq1      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00                                                                                                                                                              -00
          NOARP  MTU:16000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:11000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:282 errors:0 dropped:0 overruns:0 frame:0
          TX packets:282 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:22422 (21.8 KiB)  TX bytes:22422 (21.8 KiB)

wlan0     Link encap:Ethernet  HWaddr 64:70:02:39:36:C2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:191 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:0 (0.0 B)  TX bytes:25896 (25.2 KiB)

wwan0     Link encap:Ethernet  HWaddr 02:50:F3:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wwan1     Link encap:Ethernet  HWaddr 02:50:F3:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wwan2     Link encap:Ethernet  HWaddr 02:50:F3:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ale czy ten skrypt wspiera na raz 3 modemy?

Hej jak pisalem w dawniejszym temacie usilnie staram sie uruchomić modemy e353u-2 w trubie NDIS
ostatnio zainstalowałem paczkę kmod-huawei-hw-cdc lecz niestety pomimo tego ze zaczął router wykrywać 2 urządzenia NDIS przy pomocy tego modułu, po restarcie nie wstanie chyba ze z wyłączonymi modemami, a po ich podłączeniu sie resetuje.

czy ktoś wie co może być przyczyną?


Brakujące moduły?
Próbowałem również odinstalować zwykły cdc-ether nic nie dało wciąż takie samo zachowanie.
logread -f wyświetlił tylko loga do czasu przełączenia modeswitchem.

root@Gargoyle:~# logread -f
Apr  7 20:03:42 Gargoyle kern.info kernel: [  274.380000] usb 1-1: new high-speed USB device number 2 using ehci-platform
Apr  7 20:03:42 Gargoyle kern.info kernel: [  274.530000] scsi0 : usb-storage 1-1:1.0
Apr  7 20:03:42 Gargoyle kern.info kernel: [  274.550000] scsi1 : usb-storage 1-1:1.1
Apr  7 20:03:43 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr  7 20:03:43 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/12d1:1446 for mode switching
Apr  7 20:03:43 Gargoyle syslog.notice usb_modeswitch: switching device 12d1:1446 on 001/002
Apr  7 20:03:43 Gargoyle kern.info kernel: [  275.060000] usb 1-1: USB disconnect, device number 2
Apr  7 20:03:47 Gargoyle kern.info kernel: [  279.010000] usb 1-1: new high-speed USB device number 3 using ehci-platform

Aktualnie wywaliłem moduł huawei i używam jak dawniej, choć nie jest to 100% stabilne połączenie.

Poke!
Z tego co rozumiem CDC_Ether nie wykrywa tych 2ch interfejsów ndis tego modemu.
Da się coś z tym zrobić?

T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=04 Dev#= 11 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev= 0.00
S:  Manufacturer=Huawei Technologies
S:  Product=HUAWEI Mobile
C:* #Ifs= 7 Cfg#= 1 Atr=c0 MxPwr=500mA
A:  FirstIf#= 1 IfCount= 2 Cls=02(comm.) Sub=00 Prot=00
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=01 Driver=option
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=01 Prot=09 Driver=(none)
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=08 Driver=(none)
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=03 Driver=option
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=02 Driver=option
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Moduł jest załądowany:

Module                  Size  Used by    Tainted: G
fuse                   51088  0
sierra                  6736  0
option                 15104  2
cdc_ncm                 6448  0
usb_wwan                6560  1 option
cdc_ether               2992  0
ums_usbat               7360  0
ums_sddr55              4752  0
ums_sddr09              8704  0
ums_karma               1456  0
ums_jumpshot            3584  0
ums_isd200              4912  0
ums_freecom             1872  0
ums_datafab             4592  0
ums_cypress             2064  0
ums_alauda              8240  0
usbserial              23792  7 sierra,option,usb_wwan
usblp                   8288  0
usbnet                 12032  2 cdc_ncm,cdc_ether
cdc_acm                11456  0
ath79_wdt               2240  1
ledtrig_usbdev          2032  0
ledtrig_netdev          3184  0
xt_set                  3056 10
ip_set_list_set         4800  0
ip_set_hash_netport    22512  0
ip_set_hash_netiface    22880  0
ip_set_hash_net        20288  1
ip_set_hash_ipportnet    23904  0
ip_set_hash_ipportip    18976  0
ip_set_hash_ipport     17936  0
ip_set_hash_ip         16336  0
ip_set_bitmap_port      4160  0
ip_set_bitmap_ipmac     4816  0
ip_set_bitmap_ip        4864  0
ip_set                 17936 12 xt_set,ip_set_list_set,ip_set_hash_netport,ip_set_hash_netiface,ip_set_hash_net,ip_set_hash_ipportnet,ip_set_hash_ipportip,ip_set_hash_ipport,ip_set_hash_ip,ip_set_bitmap_port,ip_set_bitmap_ipmac,ip_set_bitmap_ip
ebt_among               1968  0
ebt_802_3                592  0
nfnetlink               1680  1 ip_set
xt_IMQ                   624  0
imq                     5024  0
ipt_weburl             13296  0
ipt_webmon             12528  0
ipt_timerange            784  0
nf_nat_tftp              400  0
nf_conntrack_tftp       2352  1 nf_nat_tftp
nf_nat_snmp_basic       6912  0
nf_conntrack_snmp        656  1 nf_nat_snmp_basic
nf_nat_sip              5088  0
nf_conntrack_sip       15872  1 nf_nat_sip
nf_nat_pptp             1312  0
nf_conntrack_pptp       3072  1 nf_nat_pptp
nf_nat_h323             4544  0
nf_conntrack_h323      33200  1 nf_nat_h323
nf_nat_proto_gre         784  1 nf_nat_pptp
nf_conntrack_proto_gre     2368  1 nf_conntrack_pptp
nf_nat_amanda            608  0
nf_conntrack_amanda     1536  1 nf_nat_amanda
nf_conntrack_broadcast      752  1 nf_conntrack_snmp
nf_nat_irc               784  0
nf_conntrack_irc        2464  1 nf_nat_irc
nf_nat_ftp               976  0
nf_conntrack_ftp        4416  1 nf_nat_ftp
xt_iprange               896  0
xt_HL                   1200  0
xt_hl                    720  0
xt_ecn                  1168  0
ipt_ECN                 1264  0
xt_CLASSIFY              496  0
xt_time                 1456  0
xt_tcpmss                912  0
xt_statistic             688  3
xt_mark                  592 25
xt_length                608  0
xt_DSCP                 1360  0
xt_dscp                  912  0
xt_string                672  0
xt_layer7               8944  0
xt_quota                 656  0
xt_pkttype               528  0
xt_physdev              1248  0
xt_owner                 592  0
ipt_bandwidth          17600 20
ipt_REDIRECT             576  2
ipt_NETMAP               592  0
ipt_MASQUERADE           976  6
iptable_nat             2544  1
nf_nat                 10256 12 nf_nat_tftp,nf_nat_sip,nf_nat_pptp,nf_nat_h323,nf_nat_proto_gre,nf_nat_amanda,nf_nat_irc,nf_nat_ftp,ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,iptable_nat
xt_recent               5680  0
xt_helper                784  0
xt_connmark              960  7
xt_connbytes            1424  0
pptp                   13296  0
pppoe                   7488  0
xt_conntrack            2048  3
xt_CT                   1216  0
xt_NOTRACK               448  0
iptable_raw              560  1
xt_state                 608  6
nf_conntrack_ipv4       4384 19 iptable_nat,nf_nat
nf_defrag_ipv4           656  1 nf_conntrack_ipv4
nf_conntrack           38320 30 nf_nat_tftp,nf_conntrack_tftp,nf_nat_snmp_basic,nf_conntrack_snmp,nf_nat_sip,nf_conntrack_sip,nf_nat_pptp,nf_conntrack_pptp,nf_nat_h323,nf_conntrack_h323,nf_conntrack_proto_gre,nf_nat_amanda,nf_conntrack_amanda,nf_conntrack_broadcast,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,xt_layer7,ipt_MASQUERADE,iptable_nat,nf_nat,xt_helper,xt_connmark,xt_connbytes,xt_conntrack,xt_CT,xt_NOTRACK,xt_state,nf_conntrack_ipv4
pppox                   1152  2 pptp,pppoe
ipt_REJECT              1808  2
xt_TCPMSS               2560  3
ipt_LOG                 6160  0
xt_comment               400 27
xt_multiport            1104  2
xt_mac                   528  0
xt_limit                 944  1
iptable_mangle           832  1
iptable_filter           592  1
ip_tables               9440  4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
nfsd                   69648  0
nfs                   124704  0
msdos                   5520  0
gre                      896  1 pptp
tun                    10640  0
ppp_async               5952  2
ppp_generic            18848 12 pptp,pppoe,pppox,ppp_async
slhc                    4368  1 ppp_generic
vfat                    7824  0
fat                    41728  2 msdos,vfat
lockd                  55552  2 nfsd,nfs
sunrpc                149216  4 nfsd,nfs,lockd
ath9k                  85024  0
ath9k_common            1152  1 ath9k
ath9k_hw              329104  2 ath9k,ath9k_common
ath                    12480  3 ath9k,ath9k_common,ath9k_hw
nls_utf8                 784  0
nls_koi8_r              3824  0
nls_iso8859_2           3312  0
nls_iso8859_15          3312  0
nls_iso8859_13          3312  0
nls_iso8859_1           2800  0
nls_cp866               3824  0
nls_cp852               3568  0
nls_cp850               3568  0
nls_cp775               3824  0
nls_cp437               4336  0
nls_cp1251              3568  0
nls_cp1250              3824  0
mac80211              254208  1 ath9k
ts_fsm                  2496  0
ts_bm                   1344  0
ts_kmp                  1264  5
crc_ccitt                944  1 ppp_async
exportfs                2608  1 nfsd
cfg80211              154304  2 ath9k,mac80211
compat                  5776  5 ath9k,ath9k_common,ath9k_hw,mac80211,cfg80211
arc4                     768  2
aes_generic            29808  4
usb_storage            33136 11 ums_usbat,ums_sddr55,ums_sddr09,ums_karma,ums_jumpshot,ums_isd200,ums_freecom,ums_datafab,ums_cypress,ums_alauda
ehci_hcd               33616  0
sd_mod                 22240  2
ext4                  237664  0
jbd2                   37248  1 ext4
mbcache                 3504  1 ext4
usbcore                99168 23 sierra,option,cdc_ncm,usb_wwan,cdc_ether,ums_usbat,ums_sddr55,ums_sddr09,ums_karma,ums_jumpshot,ums_isd200,ums_freecom,ums_datafab,ums_cypress,ums_alauda,usbserial,usblp,usbnet,cdc_acm,ledtrig_usbdev,usb_storage,ehci_hcd
usb_common               480  1 usbcore
scsi_mod               69888  3 ums_cypress,usb_storage,sd_mod
nls_base                4640 16 vfat,fat,nls_utf8,nls_koi8_r,nls_iso8859_2,nls_iso8859_15,nls_iso8859_13,nls_iso8859_1,nls_cp866,nls_cp852,nls_cp850,nls_cp775,nls_cp437,nls_cp1251,nls_cp1250,usbcore
crc16                    944  1 ext4
crypto_algapi           9200  2 arc4,aes_generic
ledtrig_timer           1072  0
ledtrig_default_on       416  0
leds_gpio               1552  0
gpio_button_hotplug     3216  0