Pagina 1 di 1

[RISOLTO] Adattatore USB-Ethernet non funziona

Inviato: lun 28 apr 2014, 11:31
da boh
Ciao a tutti!
Con il portatile nuovo, per esigenze particolari, ho comprato un adattatore USB-Ethernet.
Il problema è che non riesco a connettermi alla rete via cavo, o meglio, sembra che wicd riesca ad attivare l'interfaccia, ma poi non riesco ad ottenere l'indirizzo IP.
La marca è Hama 00049244-V2. Da ricerche in internet sembra supportato; l'unica cosa che mi fa pensare è quel V2 che sembra indichi una versione successiva e non vorrei fosse questo il problema :-k
L'hardware comunque sembra essere riconosciuto.

Codice: Seleziona tutto

# dmesg | tail
[ 3451.803913] usb 1-3: Manufacturer: Moschip Semiconductor
[ 3451.803916] usb 1-3: SerialNumber: cd250109
[ 3451.804165] usb 1-3: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 3451.804183] usb 1-3: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 3451.881815] usb 1-3: applying rev.C fixup
[ 3451.883698] usb 1-3: applying rev.C fixup
[ 3451.885682] usb 1-3: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 3451.885696] usb 1-3: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 3451.886452] MOSCHIP usb-ethernet driver 1-3:1.0 eth0: register 'MOSCHIP usb-ethernet driver' at usb-0000:00:14.0-3, MOSCHIP 7830/7832/7730 usb-NET adapter, 00:0a:cd:25:01:09
[ 3451.886558] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
Qui il MAC address dell'interfaccia eth0 è uguale a quello dell'adattatore:

Codice: Seleziona tutto

# ifconfig -a
eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:0a:cd:25:01:09  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 4  bytes 240 (240.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 240 (240.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.3  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::5e51:4fff:fe7b:59a3  prefixlen 64  scopeid 0x20<link>
        ether 5c:51:4f:7b:59:a3  txqueuelen 1000  (Ethernet)
        RX packets 11348  bytes 9514985 (9.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10065  bytes 2234638 (2.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Codice: Seleziona tutto

# lsusb
Bus 001 Device 005: ID 062a:6301 Creative Labs Trust Wireless Optical Mouse MI-4150K
Bus 001 Device 006: ID 9710:7832 MosChip Semiconductor MCS7832 10/100 Mbps Ethernet adapter <====
Bus 001 Device 002: ID 0461:4e3d Primax Electronics, Ltd 
Bus 001 Device 003: ID 04f3:0199 Elan Microelectronics Corp. 
Bus 001 Device 004: ID 8087:07dc Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Mi manca qualche passaggio? Cosa posso fare? Configurazioni di rete particolari?

Re: Adattatore USB-Ethernet non funziona

Inviato: lun 28 apr 2014, 12:10
da rik70
Incolla l'output di

Codice: Seleziona tutto

[@root] dhclient -v eth0

Re: Adattatore USB-Ethernet non funziona

Inviato: lun 28 apr 2014, 12:35
da boh

Codice: Seleziona tutto

# dhclient -v eth0
Internet Systems Consortium DHCP Client 4.2.5-P1
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:0a:cd:25:01:09
Sending on   LPF/eth0/00:0a:cd:25:01:09
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.0.1
DHCPACK from 192.168.0.1
bound to 192.168.0.6 -- renewal in 40897 seconds.

Re: Adattatore USB-Ethernet non funziona

Inviato: lun 28 apr 2014, 16:32
da rik70
L'indirizzo ip lo prende:

Codice: Seleziona tutto

bound to 192.168.0.6 -- renewal in 40897 seconds.
Qual'è il problema allora? Riesci a pingarlo il gateway?

Re: Adattatore USB-Ethernet non funziona

Inviato: lun 28 apr 2014, 16:53
da boh
Ho notato che dopo quel comando si è connesso!

Perchè con wicd non va?
So che dare un comando è cosa da poco, ma sarebbe bello avere la connessione in automatico :)
Può essere un problema di configurazione del router?

Re: Adattatore USB-Ethernet non funziona

Inviato: lun 28 apr 2014, 17:02
da rik70
Nella sezione Impostazioni Generali di wicd come sei messo? Ce la fai a incollare qui una schermata o le opzioni?

Re: Adattatore USB-Ethernet non funziona

Inviato: lun 28 apr 2014, 21:22
da boh
Ecco qua: http://imgur.com/qQsxZ3s

Adesso riaccendendo, ho fatto connetti e tutto ha funzionato... dhclient ha fatto una magia :lol:

Re: Adattatore USB-Ethernet non funziona

Inviato: mar 29 apr 2014, 10:38
da lablinux
wicd (se non erro) è vecchiotto, networkmanager è più aggiornato e magari ti da meno problemi

Re: Adattatore USB-Ethernet non funziona

Inviato: mar 29 apr 2014, 12:41
da ilmich
boh ha scritto:Adesso riaccendendo, ho fatto connetti e tutto ha funzionato... dhclient ha fatto una magia :lol:
vedendo come hai risolto mi sa che è capitato anche a me una volta (poi ho abdicato in favore di network-manager che è troppo piu' comodo). prova a sostituire, nei parametri di configurazione di wicd avanzati, il programma utilizzato per il dhcp (adesso dovresti avere dhcpcd) con dhclient

ciau

Re: Adattatore USB-Ethernet non funziona

Inviato: mer 30 apr 2014, 10:55
da boh
Network manager sono convinto che sia più evoluto, ma non mi trovava la connessione via cavo :-k
In ogni caso adesso funziona tutto \:D/