Wireless non parte in automatico

Networking, configurazione della connessione, periferiche e condivisioni di rete.
Scrivi risposta
Avatar utente
Alessiogian
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1400
Iscrizione: venerdì 23 marzo 2007, 11:11

Wireless non parte in automatico

Messaggio da Alessiogian »

Salve a tutti,

ho configurato la mia rete wireless con WPA, mi connetto tranquillamente con la mia Feisty, ma vorrei che partisse in automatico all'avvio.

Mi spiego bene. Quando accendo il pc, la rete wireless non si connette. Devo lanciare da terminale:

Codice: Seleziona tutto

sudo /etc/init.d/networking restart
altrimenti non parte.

Come faccio per farlo partire in automatico?

Grazie
Linux User    # 450571
Ubuntu User #  16179
Avatar utente
madebyn
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 320
Iscrizione: mercoledì 5 aprile 2006, 23:10

Re: Wireless non parte in automatico

Messaggio da madebyn »

ci faresti leggere i tuoi files di configurazione ? "interfaces" e "wpa_supplicant.conf" :-)
Hoc testudo docet!
Avatar utente
Alessiogian
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1400
Iscrizione: venerdì 23 marzo 2007, 11:11

Re: Wireless non parte in automatico

Messaggio da Alessiogian »

madebyn ha scritto: ci faresti leggere i tuoi files di configurazione ? "interfaces" e "wpa_supplicant.conf" :-)
si, hai ragione.

ieri sera era troppo tardi per pensarci  :-[

non appena torno a casa da lavoro li posto

ciao
Linux User    # 450571
Ubuntu User #  16179
mirk
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 261
Iscrizione: venerdì 31 marzo 2006, 12:40

Re: Wireless non parte in automatico

Messaggio da mirk »

Perchè parta in automatico wpasupplicant nel file /etc/network/interfaces dovrebbe esserci una configurazione di questo tipo in corrispondenza dell'interfaccia wifi:
iface ethx/wlanx inet static/dhcp      <--- static o dhcp a seconda della tua configurazione e ethx/wlanx a seconda dell'interfaccia assegnata

address ....
gateway....
netmask....                           <--- queste opzioni nel caso tu abbia "inet static"
broadcast....

wpa-driver wext    (wext se utilizzi driver wext... in genere sono wext)
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf    (file di configurazione della rete wifi)
auto ethx/wlanx      <---- ethx o wlanx  a seconda del nome assegnato all'interfaccia wifi
prova a controllare se nel tuo file /etc/network interfaces c'è una configurazione di questo tipo
Ultima modifica di mirk il lunedì 14 maggio 2007, 21:57, modificato 1 volta in totale.
Avatar utente
Alessiogian
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1400
Iscrizione: venerdì 23 marzo 2007, 11:11

Re: Wireless non parte in automatico

Messaggio da Alessiogian »

Ecco qui i miei file:

Codice: Seleziona tutto

zasso@ubuntu:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp

# The Wireless Lan in Lux
auto eth1
iface eth1 inet static
address 192.168.0.120
netmask 255.255.255.0
network 192.168.0.255
gateway 192.168.0.1
wireless-essid CasaLux
wireless-channel 6
wireless-mode managed
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
zasso@ubuntu:~$ 
per il wpa_supplicant.conf non ricordo il percorso  :-[
Linux User    # 450571
Ubuntu User #  16179
Avatar utente
humptydumptysetonawall
Prode Principiante
Messaggi: 155
Iscrizione: giovedì 16 novembre 2006, 18:44

Re: Wireless non parte in automatico

Messaggio da humptydumptysetonawall »

un'alternativa:

Codice: Seleziona tutto

sudo update-rc.d networking restart defaults
humptydumpty set on a wall
humptydumpty had a great fall
Avatar utente
Alessiogian
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1400
Iscrizione: venerdì 23 marzo 2007, 11:11

Re: Wireless non parte in automatico

Messaggio da Alessiogian »

humptydumptysetonawall ha scritto: un'alternativa:

Codice: Seleziona tutto

sudo update-rc.d networking restart defaults
ecco che dice

Codice: Seleziona tutto

zasso@ubuntu:~$ sudo update-rc.d networking restart defaults
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults|multiuser [NN | sNN kNN]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
                -n: not really
                -f: force
zasso@ubuntu:~$ 
Linux User    # 450571
Ubuntu User #  16179
mirk
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 261
Iscrizione: venerdì 31 marzo 2006, 12:40

Re: Wireless non parte in automatico

Messaggio da mirk »

wireless-essid CasaLux
wireless-channel 6
wireless-mode managed
Prova  a togliere questi e configurare solo il file wpa_supplicant.conf (essid e il tipo di chiave utilizzata li inserisci li) <--- se guardi in rete è pieno di esempi per configurare questo file di configurazione, che poi viene eseguito in automatico con l'inserimento della riga: 
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

In che senso non ricordi il percorso? il percorso dal file postato da te è questo: /etc/wpa_supplicant.conf  comunque puoi metterlo dove vuoi (sarebbe meglio nella directory /etc/wpa_supplicant (essendoci la sua directory)

Ultima cosa: prova a inserire auto eth1 in fondo (dopo le impostazioni) in questo modo:
# The Wireless Lan in Lux
iface eth1 inet static
address 192.168.0.120
netmask 255.255.255.0
network 192.168.0.255
gateway 192.168.0.1
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
auto eth1
Avatar utente
humptydumptysetonawall
Prode Principiante
Messaggi: 155
Iscrizione: giovedì 16 novembre 2006, 18:44

Re: Wireless non parte in automatico

Messaggio da humptydumptysetonawall »

un'alternativa:

Codice:

sudo update-rc.d networking restart defaults


ecco che dice

Codice:

zasso@ubuntu:~$ sudo update-rc.d networking restart defaults
usage: update-rc.d [-n] [-f] remove
      update-rc.d [-n] defaults|multiuser [NN | sNN kNN]
      update-rc.d [-n] start|stop NN runlvl [runlvl] [...] .
                -n: not really
                -f: force
zasso@ubuntu:~$

si c'è un problema. NON mettere gli spazi nei nomi dei file. se rinomini networking_restart dovrebbe andare
humptydumpty set on a wall
humptydumpty had a great fall
Avatar utente
Alessiogian
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1400
Iscrizione: venerdì 23 marzo 2007, 11:11

Re: Wireless non parte in automatico

Messaggio da Alessiogian »

Codice: Seleziona tutto

zasso@ubuntu:~$ sudo update-rc.d networking_restart defaults
update-rc.d: /etc/init.d/networking_restart: file does not exist
zasso@ubuntu:~$ 
Linux User    # 450571
Ubuntu User #  16179
Avatar utente
humptydumptysetonawall
Prode Principiante
Messaggi: 155
Iscrizione: giovedì 16 novembre 2006, 18:44

Re: Wireless non parte in automatico

Messaggio da humptydumptysetonawall »

no calma. ma networking restart è un file che ti sei fatto tu, giusto? se è così fai
sudo mv /etc/init.d/networking restart /etc/init.d/networking_restart
e poi
sudo update-rc.d networking_restart defaults
humptydumpty set on a wall
humptydumpty had a great fall
Avatar utente
Alessiogian
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1400
Iscrizione: venerdì 23 marzo 2007, 11:11

Re: Wireless non parte in automatico

Messaggio da Alessiogian »

non capisco perchè adesso non mi mi si avvi + la wireless.

ance se do il comando

Codice: Seleziona tutto

sudo /etc/init.d/networking restart
non va.

vi riposto tutto:

Codice: Seleziona tutto

root@ubuntu:~# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:16:36:1D:78:35  
          inet addr:192.168.0.121  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::216:36ff:fe1d:7835/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:737 errors:0 dropped:0 overruns:0 frame:0
          TX packets:803 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:694128 (677.8 KiB)  TX bytes:271104 (264.7 KiB)
          Interrupt:17 

eth1      Link encap:Ethernet  HWaddr 00:13:02:07:3B:77  
          inet addr:192.168.0.120  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:96 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)
          Interrupt:17 Base address:0xe000 Memory:54000000-54000fff 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:81 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5857 (5.7 KiB)  TX bytes:5857 (5.7 KiB)

root@ubuntu:~# 

Codice: Seleziona tutto

root@ubuntu:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

# The Wireless Lan in Lux
auto eth1
iface eth1 inet static
address 192.168.0.120
netmask 255.255.255.0
network 192.168.0.255
gateway 192.168.0.1
wireless-essid CasaLux
wireless-channel 6
wireless-mode managed
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
root@ubuntu:~#

Codice: Seleziona tutto

root@ubuntu:~# cat /etc/wpa_supplicant.conf
 network={
   ssid="CasaLux"
   psk="SPassQuakkedunEDumman"
   key_mgmt=WPA-PSK
   proto=WPA
   pairwise=CCMP TKIP
 }
root@ubuntu:~# 
Linux User    # 450571
Ubuntu User #  16179
Avatar utente
Alessiogian
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1400
Iscrizione: venerdì 23 marzo 2007, 11:11

Re: Wireless non parte in automatico

Messaggio da Alessiogian »

Aggiornamento:

se do il comando

Codice: Seleziona tutto

 sudo /etc/init.d/networking restart 
impostando il dhcp anche per il wireless ottengo questo:

Codice: Seleziona tutto

zasso@ubuntu:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...                                          
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:13:02:07:3b:77
Sending on   LPF/eth1/00:13:02:07:3b:77
Sending on   Socket/fallback
DHCPRELEASE on eth1 to 192.168.0.1 port 67
There is already a pid file /var/run/dhclient.eth1.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:13:02:07:3b:77
Sending on   LPF/eth1/00:13:02:07:3b:77
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
                                                                                                 [ OK ]
Se invece lo do impostando static, ho:

Codice: Seleziona tutto

zasso@ubuntu:~$ sudo /etc/init.d/networking restart
Password:
 * Reconfiguring network interfaces...                                   [ OK ] 
Linux User    # 450571
Ubuntu User #  16179
Avatar utente
Alessiogian
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1400
Iscrizione: venerdì 23 marzo 2007, 11:11

Re: Wireless non parte in automatico

Messaggio da Alessiogian »

Alessiogian ha scritto: Aggiornamento:

se do il comando

Codice: Seleziona tutto

 sudo /etc/init.d/networking restart 
impostando il dhcp anche per il wireless ottengo questo:

Codice: Seleziona tutto

zasso@ubuntu:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...                                          
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:13:02:07:3b:77
Sending on   LPF/eth1/00:13:02:07:3b:77
Sending on   Socket/fallback
DHCPRELEASE on eth1 to 192.168.0.1 port 67
There is already a pid file /var/run/dhclient.eth1.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:13:02:07:3b:77
Sending on   LPF/eth1/00:13:02:07:3b:77
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
                                                                                                 [ OK ]
Se invece lo do impostando static, ho:

Codice: Seleziona tutto

zasso@ubuntu:~$ sudo /etc/init.d/networking restart
Password:
 * Reconfiguring network interfaces...                                   [ OK ] 

up
Linux User    # 450571
Ubuntu User #  16179
Scrivi risposta

Ritorna a “Connessione e configurazione delle reti”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 2 ospiti