1

Temat: Huawei NCM E5372 Openwrt CC - brak dostępu do internetu po reboocie

Witam,

Mam taki problem, po restarcie routera (modem NCM jest cały czas włączony) nie ma internetu, WAN nie może się podnieść.
Poniżej przesyłam log zaraz po uruchomieniu

Sun Mar 20 08:09:46 2016 daemon.notice netifd: wan (1135): Timeout running AT-command
Sun Mar 20 08:09:46 2016 daemon.notice netifd: wan (1135): Failed to connect
Sun Mar 20 08:09:46 2016 daemon.notice netifd: wan (1327): Stopping network
Sun Mar 20 08:09:48 2016 daemon.notice netifd: wan (1327): sending -> AT^NDISDUP=1,0
Sun Mar 20 08:09:48 2016 authpriv.info dropbear[1335]: Child connection from 10.70.70.112:50456
Sun Mar 20 08:09:51 2016 daemon.notice netifd: Interface 'wan' is now down
Sun Mar 20 08:09:51 2016 daemon.notice netifd: Interface 'wan' is setting up now
Sun Mar 20 08:09:53 2016 daemon.notice netifd: wan (1336): sending -> 
Sun Mar 20 08:09:54 2016 authpriv.notice dropbear[1335]: Password auth succeeded for 'root' from 10.70.70.112:50456
Sun Mar 20 08:10:08 2016 daemon.notice netifd: wan (1336): Timeout running AT-command
Sun Mar 20 08:10:08 2016 daemon.notice netifd: wan (1336): Failed to connect
Sun Mar 20 08:10:08 2016 daemon.notice netifd: wan (1357): Stopping network
Sun Mar 20 08:10:10 2016 daemon.notice netifd: wan (1357): sending -> 
Sun Mar 20 08:10:13 2016 daemon.notice netifd: Interface 'wan' is now down
Sun Mar 20 08:10:13 2016 daemon.notice netifd: Interface 'wan' is setting up now
Sun Mar 20 08:10:15 2016 daemon.notice netifd: wan (1365): sending -> 
Sun Mar 20 08:10:18 2016 daemon.notice netifd: wan (1365): Error running AT-command
Sun Mar 20 08:10:18 2016 daemon.notice netifd: wan (1365): Failed to connect
Sun Mar 20 08:10:18 2016 daemon.notice netifd: wan (1379): Stopping network
Sun Mar 20 08:10:20 2016 daemon.notice netifd: wan (1379): sending -> 
Sun Mar 20 08:10:23 2016 daemon.notice netifd: Interface 'wan' is now down
Sun Mar 20 08:10:23 2016 daemon.notice netifd: Interface 'wan' is setting up now
Sun Mar 20 08:10:25 2016 daemon.notice netifd: wan (1387): sending -> 
Sun Mar 20 08:10:40 2016 daemon.notice netifd: wan (1387): Timeout running AT-command
Sun Mar 20 08:10:40 2016 daemon.notice netifd: wan (1387): Failed to connect
Sun Mar 20 08:10:40 2016 daemon.notice netifd: wan (1401): Stopping network
Sun Mar 20 08:10:43 2016 daemon.notice netifd: wan (1401): sending -> AT^NDISDUP=1,0
Sun Mar 20 08:10:45 2016 daemon.notice netifd: Interface 'wan' is now down
Sun Mar 20 08:10:45 2016 daemon.notice netifd: Interface 'wan' is setting up now
Sun Mar 20 08:10:48 2016 daemon.notice netifd: wan (1409): sending -> 

Internet wraca dopiero gdy po reboocie openwrt wykonamy jeszcze komende /etc/init.d/network restart
Poniżej log:

Sun Mar 20 08:11:27 2016 daemon.emerg procd: 'radio0' is disabled
Sun Mar 20 08:11:27 2016 daemon.emerg procd: 'radio0' is disabled
Sun Mar 20 08:11:28 2016 kern.info kernel: [  148.480000] 8021q: adding VLAN 0 to HW filter on device eth0
Sun Mar 20 08:11:28 2016 kern.info kernel: [  148.520000] device eth0.1 entered promiscuous mode
Sun Mar 20 08:11:28 2016 kern.info kernel: [  148.530000] device eth0 entered promiscuous mode
Sun Mar 20 08:11:28 2016 kern.info kernel: [  148.570000] br-lan: port 1(eth0.1) entered forwarding state
Sun Mar 20 08:11:28 2016 kern.info kernel: [  148.580000] br-lan: port 1(eth0.1) entered forwarding state
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Interface 'lan' is enabled
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Interface 'lan' is setting up now
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Interface 'lan' is now up
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Interface 'loopback' is enabled
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Interface 'loopback' is setting up now
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Interface 'loopback' is now up
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Interface 'wan' is setting up now
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Bridge 'br-lan' link is up
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Interface 'lan' has link connectivity 
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Network device 'eth0' link is up
Sun Mar 20 08:11:28 2016 daemon.notice netifd: VLAN 'eth0.1' link is up
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Network device 'lo' link is up
Sun Mar 20 08:11:28 2016 daemon.notice netifd: Interface 'loopback' has link connectivity 
Sun Mar 20 08:11:28 2016 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Sun Mar 20 08:11:30 2016 kern.info kernel: [  150.580000] br-lan: port 1(eth0.1) entered forwarding state
Sun Mar 20 08:11:31 2016 daemon.notice netifd: wan (1582): sending -> AT
Sun Mar 20 08:11:31 2016 daemon.notice netifd: wan (1582): sending -> ATZ
Sun Mar 20 08:11:32 2016 daemon.notice netifd: wan (1582): sending -> ATQ0
Sun Mar 20 08:11:32 2016 daemon.notice netifd: wan (1582): sending -> ATV1
Sun Mar 20 08:11:33 2016 daemon.notice netifd: wan (1582): sending -> ATE1
Sun Mar 20 08:11:34 2016 daemon.notice netifd: wan (1582): sending -> ATS0=0
Sun Mar 20 08:11:34 2016 daemon.notice netifd: wan (1582): sending -> AT^NDISDUP=1,1,"internet"
Sun Mar 20 08:11:35 2016 daemon.notice netifd: wan (1582): Connected, starting DHCP
Sun Mar 20 08:11:35 2016 daemon.notice netifd: Interface 'wan' is now up
Sun Mar 20 08:11:35 2016 kern.err kernel: [  155.150000] huawei_cdc_ncm 1-1.4:1.1 wwan0: kevent 12 may have been dropped
Sun Mar 20 08:11:35 2016 daemon.notice netifd: Network device 'wwan0' link is up
Sun Mar 20 08:11:35 2016 daemon.notice netifd: Network alias 'wwan0' link is up
Sun Mar 20 08:11:35 2016 daemon.notice netifd: Interface 'wan_4' is enabled
Sun Mar 20 08:11:35 2016 daemon.notice netifd: Interface 'wan_4' has link connectivity 
Sun Mar 20 08:11:35 2016 daemon.notice netifd: Interface 'wan_4' is setting up now
Sun Mar 20 08:11:35 2016 daemon.notice netifd: wan (1582): Command failed: Unknown error
Sun Mar 20 08:11:35 2016 daemon.notice netifd: Interface 'wan_6' is enabled
Sun Mar 20 08:11:35 2016 daemon.notice netifd: Interface 'wan_6' has link connectivity 
Sun Mar 20 08:11:35 2016 daemon.notice netifd: Interface 'wan_6' is setting up now
Sun Mar 20 08:11:35 2016 daemon.notice netifd: wan (1582): Command failed: Unknown error
Sun Mar 20 08:11:35 2016 daemon.notice netifd: wan_4 (1737): udhcpc (v1.23.2) started
Sun Mar 20 08:11:35 2016 daemon.notice netifd: wan_4 (1737): Sending discover...
Sun Mar 20 08:11:35 2016 daemon.notice netifd: wan_4 (1737): Sending select for 192.168.8.102...
Sun Mar 20 08:11:35 2016 user.notice firewall: Reloading firewall due to ifup of wan (wwan0)
Sun Mar 20 08:11:35 2016 daemon.notice netifd: wan_4 (1737): Lease of 192.168.8.102 obtained, lease time 86400
Sun Mar 20 08:11:35 2016 daemon.notice netifd: Interface 'wan_4' is now up
Sun Mar 20 08:11:35 2016 daemon.info dnsmasq[1268]: reading /tmp/resolv.conf.auto
Sun Mar 20 08:11:35 2016 daemon.info dnsmasq[1268]: using local addresses only for domain lan
Sun Mar 20 08:11:35 2016 daemon.info dnsmasq[1268]: using nameserver 192.168.8.1#53
Sun Mar 20 08:11:35 2016 daemon.info dnsmasq[1268]: using nameserver 192.168.8.1#53

Jakiś pomysł dlaczego tak sie dzieje ze dopiero po restarcie network wszystko wstaje?

Konfiguracja WANU:

config interface 'wan'
        option proto 'ncm'
        option device '/dev/ttyUSB0'
        option apn 'internet'

Może na początek zafundować jeszcze jakiś skrypt który restartuje sekcje network zaraz po reboocie? Ktoś może zaproponować jak to wykonać?

2

Odp: Huawei NCM E5372 Openwrt CC - brak dostępu do internetu po reboocie

wan (1336): Timeout running AT-command

Znaczy tylko tyle że nie może się z modem dogadać. I dziwne że po restarcie sieci nagle może to zrobić.

Ten restart daj do /etc/rc.local.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Huawei NCM E5372 Openwrt CC - brak dostępu do internetu po reboocie

Dać skrypt jak z tego przykładu: http://eko.one.pl/?p=openwrt-skrypty#re … uinternetu

Czy do /etc/rc.local dać: "/etc/init.d/network restart"

Co będzie lepsze?

4

Odp: Huawei NCM E5372 Openwrt CC - brak dostępu do internetu po reboocie

A jak chcesz, możesz i tak i tak.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.