[Linuxtrent] Re: openwrt

  • From: matteo ruffoni <mattruffoni@xxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Wed, 25 Apr 2012 10:49:43 +0200

qualche passo avanti

ho installato openwrt sul router

ho inserito la chiavetta e penso sia in /dev/ttyUSB1 il led verde della
chiavetta va ad intermittenza
(avevo messo /dev/ttyUSB0 ma il led verde restava sempre spento)

la configurazione (la rete della chiavetta dovrebbe essere wan3g) è questa

root@OpenWrt:~# cat /etc/config/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'
    option 'type' 'bridge'
    option 'proto' 'static'
    option 'ipaddr' '192.168.1.1'
    option 'netmask' '255.255.255.0'

config 'interface' 'wan'
    option 'ifname' 'eth1'
    option 'proto' 'dhcp'

config 'interface' 'wan1'
    option '_orig_ifname' 'wlan0'
    option '_orig_bridge' 'false'
    option 'proto' 'static'
    option 'ipaddr' '192.168.0.101'
    option 'netmask' '255.255.255.0'
    option 'gateway' '192.168.0.1'
    option 'dns' '208.67.222.222'

config 'interface' 'wan3g'
    option 'ifname' 'ppp0'
    option 'pincode' '1234'
    option 'apn' 'ibox.tim.it'
    option 'service' 'umts'
    option 'proto' '3g'
    option 'device' '/dev/ttyUSB1'


ho controllato dmesg e logread e la chiavetta viene interrogata ma non so
se "risponde nel modo corretto"

Apr 25 08:33:04 OpenWrt user.info kernel: usb 1-1: new high speed USB
device using ar71xx-ehci and address 7
Apr 25 08:33:04 OpenWrt user.info kernel: usb 1-1: configuration #1 chosen
from 1 choice
Apr 25 08:33:04 OpenWrt user.notice usb-modeswitch: 1-1:1.1:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:33:05 OpenWrt user.notice usb-modeswitch: 1-1:1.0:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:33:05 OpenWrt user.notice usb-modeswitch: 1-1:1.1:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:33:05 OpenWrt user.notice usb-modeswitch: 1-1:1.2:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:33:05 OpenWrt user.notice usb-modeswitch: 1-1:1.3:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:33:05 OpenWrt user.notice usb-modeswitch: 1-1:1.4:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:33:06 OpenWrt user.notice usb-modeswitch: 1-1:1.5:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:33:06 OpenWrt user.notice usb-modeswitch: 1-1:1.6:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:33:34 OpenWrt authpriv.info dropbear[14847]: Exit (root):
Disconnect received
Apr 25 08:34:30 OpenWrt user.info kernel: usb 1-1: USB disconnect, address 7
Apr 25 08:35:56 OpenWrt user.info kernel: eth0: link down
Apr 25 08:35:56 OpenWrt user.info kernel: br-lan: port 1(eth0) entering
disabled state
Apr 25 08:36:52 OpenWrt daemon.warn dnsmasq-dhcp[13436]: no address range
available for DHCP request via wlan0
Apr 25 08:36:52 OpenWrt daemon.warn dnsmasq-dhcp[13436]: no address range
available for DHCP request via wlan0
Apr 25 08:36:57 OpenWrt user.info kernel: usb 1-1: new high speed USB
device using ar71xx-ehci and address 8
Apr 25 08:36:57 OpenWrt user.info kernel: usb 1-1: configuration #1 chosen
from 1 choice
Apr 25 08:36:57 OpenWrt user.notice usb-modeswitch: 1-1:1.0:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:36:57 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Selecting
/etc/usb_modeswitch.d/12d1:1446 for mode switching
Apr 25 08:36:57 OpenWrt user.warn kernel: usb 1-1: usbfs: process 16490
(usb_modeswitch) did not claim interface 0 before use
Apr 25 08:36:57 OpenWrt user.info kernel: usb 1-1: USB disconnect, address 8
Apr 25 08:36:59 OpenWrt user.info kernel: eth0: link up (1000Mbps/Full
duplex)
Apr 25 08:36:59 OpenWrt user.info kernel: br-lan: port 1(eth0) entering
forwarding state
Apr 25 08:37:01 OpenWrt user.info kernel: usb 1-1: new high speed USB
device using ar71xx-ehci and address 9
Apr 25 08:37:02 OpenWrt user.info kernel: usb 1-1: configuration #1 chosen
from 1 choice
Apr 25 08:37:03 OpenWrt user.notice usb-modeswitch: 1-1:1.1:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:37:03 OpenWrt user.notice usb-modeswitch: 1-1:1.0:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:37:03 OpenWrt user.notice usb-modeswitch: 1-1:1.1:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:37:03 OpenWrt user.notice usb-modeswitch: 1-1:1.2:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:37:04 OpenWrt user.notice usb-modeswitch: 1-1:1.3:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:37:04 OpenWrt user.notice usb-modeswitch: 1-1:1.4:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:37:04 OpenWrt user.notice usb-modeswitch: 1-1:1.5:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:37:04 OpenWrt user.notice usb-modeswitch: 1-1:1.6:
Manufacturer=Huawei_Technologies Product=HUAWEI_Mobile Serial=?
Apr 25 08:37:19 OpenWrt daemon.info dnsmasq-dhcp[13436]:
DHCPREQUEST(br-lan) 192.168.1.100 78:2b:cb:e5:68:a5
Apr 25 08:37:19 OpenWrt daemon.info dnsmasq-dhcp[13436]: DHCPACK(br-lan)
192.168.1.100 78:2b:cb:e5:68:a5 matteo-Vostro-3350
Apr 25 08:38:13 OpenWrt authpriv.info dropbear[16868]: Child connection
from 192.168.1.100:46815
Apr 25 08:38:21 OpenWrt authpriv.notice dropbear[16868]: Password auth
succeeded for 'root' from 192.168.1.100:46815



ho provato a lanciare

# ifup wan3g
Can't open device /dev/ttyUSB1.
wan3g(3g): Failed to set the PIN code.
root@OpenWrt:~#

qualcosa non va ma non so cosa?
ciao matteo

Other related posts: