zresetowałem ruter do ustawień fabrycznych i wgrałem backup ustawień sprzed zmian z wwan. jeszcze raz:
# opkg update
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/base/Packages.gz[/url].
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/base/Packages.sig[/url].
Signature check passed.
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/luci/Packages.gz[/url].
Updated list of available packages in /var/opkg-lists/chaos_calmer_luci.
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/luci/Packages.sig[/url].
Signature check passed.
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/management/Packages.gz[/url].
Updated list of available packages in /var/opkg-lists/chaos_calmer_management.
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/management/Packages.sig[/url].
Signature check passed.
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/packages/Packages.gz[/url].
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/packages/Packages.sig[/url].
Signature check passed.
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/routing/Packages.gz[/url].
Updated list of available packages in /var/opkg-lists/chaos_calmer_routing.
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/routing/Packages.sig[/url].
Signature check passed.
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/telephony/Packages.gz[/url].
Updated list of available packages in /var/opkg-lists/chaos_calmer_telephony.
Downloading [url]http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/telephony/Packages.sig[/url].
Signature check passed.
Downloading [url]http://dl.eko.one.pl/chaos_calmer/lantiq/packages/Packages.gz[/url].
Updated list of available packages in /var/opkg-lists/eko1.
Downloading [url]http://dl.eko.one.pl/chaos_calmer/lantiq/packages/Packages.sig[/url].
Signature check passed.
# opkg install kmod-usb-core kmod-usb2 usb-modeswitch libusb-1.0
Multiple packages (kmod-usb-core and kmod-usb-core) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-usb-core and kmod-usb-core) providing same name marked HOLD or PREFER. Using latest.
Package kmod-usb-core (3.18.18-1) installed in root is up to date.
Multiple packages (kmod-usb2 and kmod-usb2) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-usb2 and kmod-usb2) providing same name marked HOLD or PREFER. Using latest.
Package kmod-usb2 (3.18.18-1) installed in root is up to date.
Package usb-modeswitch (2014-08-26-993a9a542791953c4804f7ddbb3a07756738e37a) installed in root is up to date.
Package libusb-1.0 (1.0.19-1) installed in root is up to date.
root@ruter:~# opkg install wwan comgt chat comgt-ncm comgt-directip uqmi umbim usb-modeswitch
Package wwan (2014-07-17-1) installed in root is up to date.
Package comgt (0.32-25) installed in root is up to date.
Package chat (2.4.7-6) installed in root is up to date.
Package comgt-ncm (0.32-25) installed in root is up to date.
Package comgt-directip (0.32-25) installed in root is up to date.
Package uqmi (2014-12-03-86bcdb8cca652676a78b2df8b5e3fb27a40c60a4) installed in root is up to date.
Package umbim (2015-04-09-af9c293c1f1d8a97fbd8adf9c6070ead4920ca84) installed in root is up to date.
Package usb-modeswitch (2014-08-26-993a9a542791953c4804f7ddbb3a07756738e37a) installed in root is up to date.
# uci set network.wan_aero2=interface
# uci set network.wan_aero2.proto=wwan
# uci set network.wan_aero2.apn=darmowy
# uci commit network
# reboot
fragment z logread, gdzie widać połączenie:
Mon Jul 27 19:33:15 2015 user.emerg syslog: SQM: Trying to start/stop SQM on all interfaces.
Mon Jul 27 19:33:15 2015 user.notice SQM: Trying to start/stop SQM on all interfaces.
Mon Jul 27 19:33:15 2015 user.emerg syslog: SQM: /usr/lib/sqm/run.sh SQM for interface eth1 is not enabled, skipping over...
Mon Jul 27 19:33:15 2015 user.notice SQM: /usr/lib/sqm/run.sh SQM for interface eth1 is not enabled, skipping over...
Mon Jul 27 19:33:15 2015 daemon.notice netifd: wan_aero2 (1222): Trying to set mode
Mon Jul 27 19:33:15 2015 daemon.notice netifd: radio0 (1223): Configuration file: /var/run/hostapd-phy0.conf
Mon Jul 27 19:33:15 2015 kern.info kernel: [ 30.968000] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'
Mon Jul 27 19:33:15 2015 kern.info kernel: [ 31.084000] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.34
Mon Jul 27 19:33:15 2015 kern.info kernel: [ 31.188000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Mon Jul 27 19:33:15 2015 daemon.notice netifd: radio0 (1223): wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Mon Jul 27 19:33:15 2015 kern.info kernel: [ 31.208000] device wlan0 entered promiscuous mode
Mon Jul 27 19:33:15 2015 daemon.notice netifd: radio0 (1223): ACS: Automatic channel selection started, this may take a bit
Mon Jul 27 19:33:15 2015 daemon.notice netifd: radio0 (1223): wlan0: interface state COUNTRY_UPDATE->ACS
Mon Jul 27 19:33:15 2015 daemon.notice netifd: radio0 (1223): wlan0: ACS-STARTED
Mon Jul 27 19:33:15 2015 daemon.notice netifd: radio0 (1223): handle_probe_req: send failed
Mon Jul 27 19:33:16 2015 daemon.notice pppd[1506]: pppd 2.4.7 started by root, uid 0
Mon Jul 27 19:33:16 2015 daemon.notice netifd: radio0 (1223): handle_probe_req: send failed
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: abort on (BUSY)
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: abort on (NO CARRIER)
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: abort on (ERROR)
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: report (CONNECT)
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: timeout set to 10 seconds
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: send (AT&F^M)
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: expect (OK)
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: AT&F^M^M
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: OK
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: -- got it
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: send (ATE1^M)
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: expect (OK)
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: ^M
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: ATE1^M^M
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: OK
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: -- got it
Mon Jul 27 19:33:17 2015 local2.info chat[1530]: send (AT+CGDCONT=1,"IP","darmowy"^M)
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: timeout set to 30 seconds
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: expect (OK)
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: ^M
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: AT+CGDCONT=1,"IP","darmowy"^M^M
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: OK
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: -- got it
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: send (ATD*99***1#^M)
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: expect (CONNECT)
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: ^M
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: ATD*99***1#^M^M
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: CONNECT
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: -- got it
Mon Jul 27 19:33:18 2015 local2.info chat[1530]: send ( ^M)
Mon Jul 27 19:33:18 2015 daemon.info pppd[1506]: Serial connection established.
Mon Jul 27 19:33:18 2015 kern.info kernel: [ 34.260000] wwan-wan_aero2: renamed from ppp0
Mon Jul 27 19:33:18 2015 daemon.info pppd[1506]: Using interface wwan-wan_aero2
Mon Jul 27 19:33:18 2015 daemon.notice pppd[1506]: Connect: wwan-wan_aero2 <--> /dev/ttyUSB0
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led usb2
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led power
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led power2
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led wireless_green
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led dsl
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led internet_green
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led dsl2
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led internet_red
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led phone1
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led phone1warn
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led phone2
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led phone2warn
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led usb1
Mon Jul 27 19:33:19 2015 user.emerg syslog: setting up led wireless_red
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq[1624]: started, version 2.73 cachesize 150
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq[1624]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq[1624]: DNS service limited to local subnets
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq-dhcp[1624]: DHCP, IP range 192.168.1.1 -- 192.168.1.30, lease time 1h
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq[1624]: using local addresses only for domain lan
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq[1624]: reading /tmp/resolv.conf.auto
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq[1624]: using local addresses only for domain lan
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq[1624]: using nameserver 37.8.214.2#53
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq[1624]: using nameserver 31.11.202.254#53
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq[1624]: read /etc/hosts - 1 addresses
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq[1624]: read /tmp/hosts/dhcp - 1 addresses
Mon Jul 27 19:33:19 2015 daemon.info dnsmasq-dhcp[1624]: read /etc/ethers - 0 addresses
Mon Jul 27 19:33:20 2015 daemon.info procd: - init complete -
Mon Jul 27 19:33:20 2015 user.notice SQM: Trying to start/stop SQM on interface lo
Mon Jul 27 19:33:21 2015 daemon.notice netifd: radio0 (1223): handle_probe_req: send failed
Mon Jul 27 19:33:22 2015 user.notice SQM: Trying to start/stop SQM on interface eth0.2
Mon Jul 27 19:33:22 2015 daemon.warn pppd[1506]: Could not determine remote IP address: defaulting to 10.64.64.64
Mon Jul 27 19:33:22 2015 daemon.notice pppd[1506]: local IP address 100.82.49.58
Mon Jul 27 19:33:22 2015 daemon.notice pppd[1506]: remote IP address 10.64.64.64
Mon Jul 27 19:33:22 2015 daemon.notice pppd[1506]: primary DNS address 212.2.96.51
Mon Jul 27 19:33:22 2015 daemon.notice pppd[1506]: secondary DNS address 212.2.96.52
Mon Jul 27 19:33:23 2015 daemon.notice netifd: Network device 'wwan-wan_aero2' link is up
Mon Jul 27 19:33:23 2015 daemon.notice netifd: Interface 'wan_aero2' is now up
Mon Jul 27 19:33:23 2015 daemon.info dnsmasq[1624]: reading /tmp/resolv.conf.auto
Mon Jul 27 19:33:23 2015 daemon.info dnsmasq[1624]: using local addresses only for domain lan
Mon Jul 27 19:33:23 2015 daemon.info dnsmasq[1624]: using nameserver 37.8.214.2#53
Mon Jul 27 19:33:23 2015 daemon.info dnsmasq[1624]: using nameserver 31.11.202.254#53
Mon Jul 27 19:33:23 2015 daemon.info dnsmasq[1624]: using nameserver 212.2.96.51#53
Mon Jul 27 19:33:23 2015 daemon.info dnsmasq[1624]: using nameserver 212.2.96.52#53
Mon Jul 27 19:33:23 2015 user.notice firewall: Reloading firewall due to ifup of wan (eth0.2)
połączyło się samo, automatycznie z aero2. zmieniam z wwan na 3g:
# opkg install chat comgt kmod-usb-serial kmod-usb-serial-option
Package chat (2.4.7-6) installed in root is up to date.
Package comgt (0.32-25) installed in root is up to date.
Package kmod-usb-serial (3.18.18-1) installed in root is up to date.
Package kmod-usb-serial-option (3.18.18-1) installed in root is up to date.
# uci set network.wan_aero2.proto=3g
# uci set network.wan_aero2.service=umts
# uci set network.wan_aero2.device=/dev/ttyUSB0
# uci commit network
# tail /etc/config/network
config interface 'wan_aero2'
option apn 'darmowy'
option proto '3g'
option service 'umts'
option device '/dev/ttyUSB0'
# reboot
fragment z logread:
Mon Jul 27 19:46:29 2015 daemon.notice netifd: radio0 (1240): handle_probe_req: send failed
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: abort on (BUSY)
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: abort on (NO CARRIER)
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: abort on (ERROR)
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: report (CONNECT)
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: timeout set to 10 seconds
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: send (AT&F^M)
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: expect (OK)
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: AT&F^M^M
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: OK
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: -- got it
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: send (ATE1^M)
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: expect (OK)
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: ^M
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: ATE1^M^M
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: OK
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: -- got it
Mon Jul 27 19:46:30 2015 local2.info chat[1518]: send (AT+CGDCONT=1,"IP","darmowy"^M)
Mon Jul 27 19:46:30 2015 daemon.notice netifd: radio0 (1240): handle_probe_req: send failed
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: timeout set to 30 seconds
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: expect (OK)
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: ^M
Mon Jul 27 19:46:31 2015 daemon.notice netifd: radio0 (1240): handle_probe_req: send failed
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: AT+CGDCONT=1,"IP","darmowy"^M^M
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: OK
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: -- got it
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: send (ATD*99***1#^M)
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: expect (CONNECT)
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: ^M
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: ATD*99***1#^M^M
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: CONNECT
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: -- got it
Mon Jul 27 19:46:31 2015 local2.info chat[1518]: send ( ^M)
Mon Jul 27 19:46:31 2015 daemon.info pppd[1490]: Serial connection established.
Mon Jul 27 19:46:31 2015 kern.info kernel: [ 33.476000] 3g-wan_aero2: renamed from ppp0
Mon Jul 27 19:46:31 2015 daemon.info pppd[1490]: Using interface 3g-wan_aero2
Mon Jul 27 19:46:31 2015 daemon.notice pppd[1490]: Connect: 3g-wan_aero2 <--> /dev/ttyUSB0
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led usb2
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led power
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led power2
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led wireless_green
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led dsl
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led internet_green
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led dsl2
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led internet_red
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led phone1
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led phone1warn
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led phone2
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led phone2warn
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led usb1
Mon Jul 27 19:46:31 2015 user.emerg syslog: setting up led wireless_red
Mon Jul 27 19:46:32 2015 daemon.info procd: - init complete -
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq[1646]: started, version 2.73 cachesize 150
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq[1646]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq[1646]: DNS service limited to local subnets
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq-dhcp[1646]: DHCP, IP range 192.168.1.1 -- 192.168.1.30, lease time 1h
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq[1646]: using local addresses only for domain lan
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq[1646]: reading /tmp/resolv.conf.auto
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq[1646]: using local addresses only for domain lan
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq[1646]: using nameserver 37.8.214.2#53
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq[1646]: using nameserver 31.11.202.254#53
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq[1646]: read /etc/hosts - 1 addresses
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq[1646]: read /tmp/hosts/dhcp - 1 addresses
Mon Jul 27 19:46:32 2015 daemon.info dnsmasq-dhcp[1646]: read /etc/ethers - 0 addresses
Mon Jul 27 19:46:33 2015 daemon.notice netifd: radio0 (1240): handle_probe_req: send failed
Mon Jul 27 19:46:33 2015 user.notice SQM: Trying to start/stop SQM on interface lo
Mon Jul 27 19:46:34 2015 daemon.warn pppd[1490]: Could not determine remote IP address: defaulting to 10.64.64.64
Mon Jul 27 19:46:34 2015 daemon.notice pppd[1490]: local IP address 100.82.11.213
Mon Jul 27 19:46:34 2015 daemon.notice pppd[1490]: remote IP address 10.64.64.64
Mon Jul 27 19:46:34 2015 daemon.notice pppd[1490]: primary DNS address 212.2.96.51
Mon Jul 27 19:46:34 2015 daemon.notice pppd[1490]: secondary DNS address 212.2.96.52
Mon Jul 27 19:46:34 2015 daemon.notice netifd: Network device '3g-wan_aero2' link is up
Mon Jul 27 19:46:34 2015 daemon.notice netifd: Interface 'wan_aero2' is now up
Mon Jul 27 19:46:34 2015 daemon.info dnsmasq[1646]: reading /tmp/resolv.conf.auto
Mon Jul 27 19:46:34 2015 daemon.info dnsmasq[1646]: using local addresses only for domain lan
Mon Jul 27 19:46:34 2015 daemon.info dnsmasq[1646]: using nameserver 37.8.214.2#53
Mon Jul 27 19:46:34 2015 daemon.info dnsmasq[1646]: using nameserver 31.11.202.254#53
Mon Jul 27 19:46:34 2015 daemon.info dnsmasq[1646]: using nameserver 212.2.96.51#53
Mon Jul 27 19:46:34 2015 daemon.info dnsmasq[1646]: using nameserver 212.2.96.52#53
Mon Jul 27 19:46:34 2015 daemon.notice netifd: radio0 (1240): handle_probe_req: send failed
Mon Jul 27 19:46:35 2015 user.notice SQM: Trying to start/stop SQM on interface eth0.2
Mon Jul 27 19:46:35 2015 user.notice firewall: Reloading firewall due to ifup of wan (eth0.2)
działa aero2, połączyło się automatycznie (na razie działam bez połączenia od vectry). teraz simplefailover:
root@ruter:~# opkg update
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/base/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/luci/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_luci.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/luci/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_management.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/management/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/packages/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_routing.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/routing/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/telephony/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_telephony.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05-rc3/lantiq/xrx200/packages/telephony/Packages.sig.
Signature check passed.
Downloading http://dl.eko.one.pl/chaos_calmer/lantiq/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/eko1.
Downloading http://dl.eko.one.pl/chaos_calmer/lantiq/packages/Packages.sig.
Signature check passed.
# opkg install simplefailover
Installing simplefailover (20141229) to root...
Downloading http://dl.eko.one.pl/chaos_calmer/lantiq/packages/simplefailover_20141229_all.ipk.
Configuring simplefailover.
# uci set simplefailover.@simplefailover[0].wan_backup=wan_aero2
# uci commit simplefailover
# tail /etc/config/simplefailover
config simplefailover
option wan_main 'wan'
option host '8.8.4.4'
option interval '5'
option wan_backup 'wan_aero2'
# tail /etc/config/network
config interface 'wan_aero2'
option apn 'darmowy'
option proto '3g'
option service 'umts'
option device '/dev/ttyUSB0'
# uci set network.wan_aero2.defaultroute=1
# uci set network.wan_aero2.auto=0
# uci commit network
# tail /etc/config/network
config interface 'wan_aero2'
option apn 'darmowy'
option proto '3g'
option service 'umts'
option device '/dev/ttyUSB0'
option defaultroute '1'
option auto '0'
# /etc/init.d/simplefailover enable
# reboot
w międzyczasie podłączam vectrę. po restarcie idzie przez vectre. odłączam vectrę, przełącza się na aero2. fragment logread:
Mon Jul 27 19:57:44 2015 daemon.notice netifd: Interface 'wan' has link connectivity
Mon Jul 27 19:57:44 2015 daemon.notice netifd: Interface 'wan' is setting up now
Mon Jul 27 19:57:44 2015 user.notice /usr/bin/simplefailover: Changing connection to backup wan: wan_aero2
Mon Jul 27 19:57:44 2015 daemon.notice netifd: VLAN 'eth0.1' link is up
Mon Jul 27 19:57:44 2015 daemon.notice netifd: VLAN 'eth0.3' link is up
Mon Jul 27 19:57:44 2015 daemon.notice netifd: wan (2342): udhcpc: option -h NAME is deprecated, use -x hostname:NAME
Mon Jul 27 19:57:44 2015 daemon.notice netifd: wan (2342): udhcpc (v1.23.2) started
Mon Jul 27 19:57:44 2015 daemon.notice netifd: wan (2342): Sending discover...
Mon Jul 27 19:57:46 2015 kern.info kernel: [ 106.764000] br-lan: port 1(eth0.1) entered forwarding state
Mon Jul 27 19:57:46 2015 kern.info kernel: [ 106.776000] br-lan: port 2(eth0.3) entered forwarding state
Mon Jul 27 19:57:46 2015 daemon.notice netifd: wan_aero2 (2326): Trying to set mode
Mon Jul 27 19:57:47 2015 daemon.notice pppd[2359]: pppd 2.4.7 started by root, uid 0
Mon Jul 27 19:57:47 2015 daemon.notice netifd: wan (2342): Sending discover...
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: abort on (BUSY)
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: abort on (NO CARRIER)
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: abort on (ERROR)
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: report (CONNECT)
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: timeout set to 10 seconds
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: send (AT&F^M)
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: expect (OK)
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: AT&F^M^M
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: OK
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: -- got it
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: send (ATE1^M)
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: expect (OK)
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: ^M
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: ATE1^M^M
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: OK
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: -- got it
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: send (AT+CGDCONT=1,"IP","darmowy"^M)
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: timeout set to 30 seconds
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: expect (OK)
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: ^M
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: AT+CGDCONT=1,"IP","darmowy"^M^M
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: OK
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: -- got it
Mon Jul 27 19:57:48 2015 local2.info chat[2361]: send (ATD*99***1#^M)
Mon Jul 27 19:57:49 2015 local2.info chat[2361]: expect (CONNECT)
Mon Jul 27 19:57:49 2015 local2.info chat[2361]: ^M
Mon Jul 27 19:57:49 2015 local2.info chat[2361]: ATD*99***1#^M^M
Mon Jul 27 19:57:49 2015 local2.info chat[2361]: CONNECT
Mon Jul 27 19:57:49 2015 local2.info chat[2361]: -- got it
Mon Jul 27 19:57:49 2015 local2.info chat[2361]: send ( ^M)
Mon Jul 27 19:57:49 2015 daemon.info pppd[2359]: Serial connection established.
Mon Jul 27 19:57:49 2015 kern.info kernel: [ 109.604000] 3g-wan_aero2: renamed from ppp0
Mon Jul 27 19:57:49 2015 daemon.info pppd[2359]: Using interface 3g-wan_aero2
Mon Jul 27 19:57:49 2015 daemon.notice pppd[2359]: Connect: 3g-wan_aero2 <--> /dev/ttyUSB0
Mon Jul 27 19:57:50 2015 daemon.notice netifd: wan (2342): Sending discover...
Mon Jul 27 19:57:51 2015 daemon.warn pppd[2359]: Could not determine remote IP address: defaulting to 10.64.64.64
Mon Jul 27 19:57:51 2015 daemon.notice pppd[2359]: local IP address 100.83.151.197
Mon Jul 27 19:57:51 2015 daemon.notice pppd[2359]: remote IP address 10.64.64.64
Mon Jul 27 19:57:51 2015 daemon.notice pppd[2359]: primary DNS address 212.2.96.51
Mon Jul 27 19:57:51 2015 daemon.notice pppd[2359]: secondary DNS address 212.2.96.52
Mon Jul 27 19:57:51 2015 daemon.notice netifd: Network device '3g-wan_aero2' link is up
Mon Jul 27 19:57:51 2015 daemon.notice netifd: Interface 'wan_aero2' is now up
Mon Jul 27 19:57:51 2015 daemon.info dnsmasq[1626]: reading /tmp/resolv.conf.auto
Mon Jul 27 19:57:51 2015 daemon.info dnsmasq[1626]: using local addresses only for domain lan
Mon Jul 27 19:57:51 2015 daemon.info dnsmasq[1626]: using nameserver 212.2.96.51#53
Mon Jul 27 19:57:51 2015 daemon.info dnsmasq[1626]: using nameserver 212.2.96.52#53
Mon Jul 27 19:57:52 2015 user.notice SQM: Trying to start/stop SQM on interface 3g-wan_aero2
Mon Jul 27 19:57:52 2015 user.notice firewall: Reloading firewall due to ifup of wan_aero2 (3g-wan_aero2)
nie pytaj proszę, nie wiem.
ale bardzo dziękuję za pomoc.
teraz tak. o ile niby widać, że się łączy przez aero i udało mi się wykonać polecenia logread to zaraz po jego wykonaniu sesja ssh do rutera przestaje być responsywna, nie można nawiązać połączenia ssh z ruterem w innej sesji, nie otwierają się strony www przez aero2 nawet ta z kapciem. co może być nie tak?