Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto] Configurazione schede di rete
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
luigi.malago
Apprentice
Apprentice


Joined: 31 May 2005
Posts: 292
Location: Mantova (Italy)

PostPosted: Tue Oct 25, 2005 10:57 am    Post subject: [risolto] Configurazione schede di rete Reply with quote

Ciao,
so benissimo che è un tema super trattato.. ho cercato tutta mattina, ma per adesso nulla.

Premessa: 3 mesi fa un amico mi ha configurato la scheda wireless con iwconfig e iwlist e mi ha pingato col suo portatile.
tutto funzionava.

Stato attuale: ho ripreso in mano i comandi per configurare nuovamente la scheda wireless, ma ho un problema a monte: non trovo l'interfaccia di rete eth.

Ecco un po' di informazioni:

Code:

tux luigi # lspci
0000:00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
0000:00:01.0 PCI bridge: Intel Corporation Mobile 915GM/PM Express PCI Express Root Port (rev 03)
0000:00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04)
0000:00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)0000:00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)0000:00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)0000:00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)0000:00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
0000:00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)
0000:00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 04)
0000:00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
0000:00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04)
0000:00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc M24 1P [Radeon Mobility X600]
0000:03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 13)
0000:03:01.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3)
0000:03:01.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 08)
0000:03:01.2 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
0000:03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 08)
0000:03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 03)
0000:03:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG (rev 05)
tux luigi # lsmod
Module                  Size  Used by
ipw2200               156616  0
ieee80211              39204  1 ipw2200
ieee80211_crypt         5320  2 ipw2200,ieee80211
skge                   35216  0
snd_intel8x0           29568  1
snd_ac97_codec         75896  1 snd_intel8x0
evdev                   7936  1
fglrx                 243260  7
intel_agp              20508  1
agpgart                29680  2 fglrx,intel_agp
tux luigi # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:D8:D8:68:04
          inet addr:192.168.168.5  Bcast:192.168.168.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15496 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11851 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13250103 (12.6 Mb)  TX bytes:1724733 (1.6 Mb)
          Interrupt:18

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:288 errors:0 dropped:0 overruns:0 frame:0
          TX packets:288 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:22258 (21.7 Kb)  TX bytes:22258 (21.7 Kb)

tux luigi # ifconfig eth1 up
eth1: unknown interface: No such device
tux luigi # iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

tux luigi #


mi ricordo per certo (e ho avuto conferma da google) che se uso il modulo ipw2200 la scheda si dovrebbe chiamare eth1.
mi ricordo anche che il mio amico aveva usato eth1 nella configurazione..
ora però sembra che la scheda non ci sia più..

se può servire, da allora ho fatto diversi update del sistema..

PS:
inoltre ho notato questo (ma non so come fosse la situazione 3 mesi fa..)
Code:

tux / # ls /etc/init.d/net*
/etc/init.d/net.eth0  /etc/init.d/net.lo  /etc/init.d/netmount  /etc/init.d/net.ppp0


dove è finita la mia eth1?

grazie a tutti,
Luigi


Last edited by luigi.malago on Wed Oct 26, 2005 12:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ilvalle
Guru
Guru


Joined: 07 Mar 2005
Posts: 325
Location: Gallarate - ITALY

PostPosted: Tue Oct 25, 2005 11:11 am    Post subject: Reply with quote

Ciao
eth1 dov'e' finita
E' solamente un link simbolico a net.eth0
Code:
 ln -sf /etc/init.d/net.eth1 /etc/init.d/net.eth0


per il resto posso dirti che da me la medesima scheda
e' attiva, il modulo ipw2200 lo carico all'avvio e
come afferma anche google , la scheda e' montata su eth1.
con
Code:
ifconfig -a

vedi tutte le interfaccie (reali,tunnel ecc ) del tuo sistema.
quando hai compilato ipw2200 il firmware era fra i pacchetti?
nel caso controlla
Code:

emerge -pv ipw2200-firmware


Paolo
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1564
Location: switzerland

PostPosted: Tue Oct 25, 2005 11:11 am    Post subject: Reply with quote

puoi ricreare il tuo device semplicemente facendo

Code:
#ln -sf /etc/init.d/net.eth0 /etc/init.d/net.eth1

_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Tue Oct 25, 2005 11:12 am    Post subject: Reply with quote

come da handbook, e come in tutti i thread in cui si parla di schede di rete aggiuntive... la eth1 devi creartela a manina facendo un link ad eth0.
Back to top
View user's profile Send private message
Maxxer
Apprentice
Apprentice


Joined: 22 Apr 2005
Posts: 171
Location: LC

PostPosted: Tue Oct 25, 2005 1:30 pm    Post subject: Reply with quote

ma anche senza script d'avvio iwconfig dovrebbe tornare eth1!

pero' non conosco ipw2200, magari c'è da fare qualcosa di particolare...

prova a vedere in dmesg se c'è qualche messaggio riguardante ipw
Back to top
View user's profile Send private message
luigi.malago
Apprentice
Apprentice


Joined: 31 May 2005
Posts: 292
Location: Mantova (Italy)

PostPosted: Tue Oct 25, 2005 3:09 pm    Post subject: Reply with quote

Innanzitutto grazie a tutti per le risposte..
ho agito mi sa di fretta e ho fatto un danno..

prima di riavviare ho fato un:

Code:

 ln -sf /etc/init.d/net.eth1 /etc/init.d/net.eth0


come suggerito. ho notato qualche problemino nei log mentre si spegneva il pc, ma non ci ho ato subito importanza..
sono poi uscito, rientrato ho riavviato e la eth0 non partica più.

Ho dovuto tirare su l'interfaccia in manuale con ifconfig e aggiornare il gw con
Code:

route add default gw 192.168.168.254


Ma desso almeno va.. vedremo al prossimo riavvio cosa rimane configurato e cosa no.
Ma il problema più grande è ora questo:

Quote:

luigi@tux /etc/init.d $ ll net*
lrwxrwxrwx 1 root root 20 25 ott 16:40 net.eth0 -> /etc/init.d/net.eth1 NB: questa riga è rossa... il file /etc/init.d/net.eth1 NON esiste..
-rwxr-xr-x 1 root root 512 31 mag 23:55 net.lo
-rwxr-xr-x 1 root root 2520 31 mag 23:55 netmount
-rwxr-xr-x 1 root root 4408 4 ott 16:41 net.ppp0


umm...
magari se leggo prima di dare l'ok, mi accordo che i due parametri di ln andavano invertiti.. (la versione di Ilvalle è sbagliata, quella di
luna80 è corretta)

prima di pensare alla mia scheda wireless, qualcuno misa dire come posso fare a far tornare tutto a posto?



Luigi
Back to top
View user's profile Send private message
luigi.malago
Apprentice
Apprentice


Joined: 31 May 2005
Posts: 292
Location: Mantova (Italy)

PostPosted: Tue Oct 25, 2005 3:14 pm    Post subject: Reply with quote

tornando alla mia bella wireless,
mi sono accorto che:

Code:

*  net-wireless/ipw2200
      Latest version available: 1.0.6-r3
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 110 kB
      Homepage:    http://ipw2200.sourceforge.net
      Description: Driver for the Intel PRO/Wireless 2200BG/2915ABG miniPCI and 2225BG PCI adapters
      License:     GPL-2

*  net-wireless/ipw2200-firmware
      Latest version available: 2.3
      Latest version installed: 2.2
      Size of downloaded files: 261 kB
      Homepage:    http://ipw2200.sourceforge.net
      Description: Firmware for the Intel PRO/Wireless 2200BG/2915ABG miniPCI and 2225BG PCI adapters
      License:     ipw2200-fw


è possibile che con questi pacchetti, mancandomi il primo dei due, la scheda abbia pingato un giorno.
lo emergo quelo che manca?

per quanto riguarda quello che mi dite sul link simbolico, prima ripristino net.eth0 e poi lo aggiungo.

ecco un dmesg

Code:

tux init.d # dmesg | grep ipw
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.0.3
ipw2200: Copyright(c) 2003-2004 Intel Corporation
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: ipw-2.2-boot.fw load failed: Reason -2
ipw2200: Unable to load firmware: 0xFFFFFFFE
ipw2200: failed to register network device
ipw2200: probe of 0000:03:02.0 failed with error -5


mi sa che il problema è qui...

ecco l'altra cosa chiesta..
Code:

tux init.d # emerge -pv ipw2200-firmware

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  NS   ] net-wireless/ipw2200-firmware-2.3  261 kB

Total size of downloads: 261 kB
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1564
Location: switzerland

PostPosted: Tue Oct 25, 2005 3:22 pm    Post subject: Reply with quote

luigi.malago wrote:


prima di pensare alla mia scheda wireless, qualcuno misa dire come posso fare a far tornare tutto a posto?


Luigi


Code:
 
#ln -sf /etc/init.d/net.lo /etc/init.d/net.eth0


in ogni caso mi sembra tu abbia le idee un pò tanto confuse...documentati prima di fare qualcosa: ci sono una montagna di guide e post che possono darti qualche informazione di base necessaria.
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
luigi.malago
Apprentice
Apprentice


Joined: 31 May 2005
Posts: 292
Location: Mantova (Italy)

PostPosted: Tue Oct 25, 2005 4:39 pm    Post subject: Reply with quote

luna80 wrote:

in ogni caso mi sembra tu abbia le idee un pò tanto confuse...documentati prima di fare qualcosa: ci sono una montagna di guide e post che possono darti qualche informazione di base necessaria.


mi scuso, seguirò il tuo consiglio e da adesso inzio a documentarmi meglio sull'argomento. Ero in buona fede.. :wink:

luigi.malago wrote:

magari se leggo prima di dare l'ok, mi accordo che i due parametri di ln andavano invertiti.. (la versione di Ilvalle è sbagliata, quella di
luna80 è corretta)


non dovrei sottolinearlo neanche, ma rileggendo quanto ho scritto potrei venire frainteso.
intendevo proprio dire "se leggo" e non "se leggi"... :wink:

Luigi
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1564
Location: switzerland

PostPosted: Tue Oct 25, 2005 4:44 pm    Post subject: Reply with quote

luigi.malago wrote:

non dovrei sottolinearlo neanche, ma rileggendo quanto ho scritto potrei venire frainteso.
intendevo proprio dire "se leggo" e non "se leggi"... :wink:

Luigi


io non ti avevo frainteso, cmq in ogni caso è meglio sempre verificare ciò che viene consigliato nel forum, può capitare a tutti di sbagliare senza volere.

ciao
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Ilvalle
Guru
Guru


Joined: 07 Mar 2005
Posts: 325
Location: Gallarate - ITALY

PostPosted: Tue Oct 25, 2005 8:21 pm    Post subject: Reply with quote

si scusate
ho invertito eth0 e eth1 :( :(
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1564
Location: switzerland

PostPosted: Wed Oct 26, 2005 3:32 am    Post subject: Reply with quote

Ilvalle wrote:
si scusate
ho invertito eth0 e eth1 :( :(


hai risolto, funziona tutto ora?
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Maxxer
Apprentice
Apprentice


Joined: 22 Apr 2005
Posts: 171
Location: LC

PostPosted: Wed Oct 26, 2005 7:25 am    Post subject: Reply with quote

luigi.malago wrote:
tornando alla mia bella wireless,
mi sono accorto che:

Code:

*  net-wireless/ipw2200
      Latest version available: 1.0.6-r3
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 110 kB
      Homepage:    http://ipw2200.sourceforge.net
      Description: Driver for the Intel PRO/Wireless 2200BG/2915ABG miniPCI and 2225BG PCI adapters
      License:     GPL-2

*  net-wireless/ipw2200-firmware
      Latest version available: 2.3
      Latest version installed: 2.2
      Size of downloaded files: 261 kB
      Homepage:    http://ipw2200.sourceforge.net
      Description: Firmware for the Intel PRO/Wireless 2200BG/2915ABG miniPCI and 2225BG PCI adapters
      License:     ipw2200-fw


è possibile che con questi pacchetti, mancandomi il primo dei due, la scheda abbia pingato un giorno.
lo emergo quelo che manca?


probabilmente la prima volta che hai configurato la scheda hai usato i sorgenti dal sito invece che da portage... io disinsallerei quello vecchio ed emergerei ipw da portage. vedrai che andrà.

luigi.malago wrote:
ecco un dmesg

Code:

tux init.d # dmesg | grep ipw
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.0.3
ipw2200: Copyright(c) 2003-2004 Intel Corporation
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: ipw-2.2-boot.fw load failed: Reason -2
ipw2200: Unable to load firmware: 0xFFFFFFFE
ipw2200: failed to register network device
ipw2200: probe of 0000:03:02.0 failed with error -5


mi sa che il problema è qui...


mi sa anche a me!
probabilmente se usi ipw da emerge troverà il firmware.
altrimenti vai nei sorgenti che hai usato per creare il modulo ipw e leggi nella documentazione dove dovresti copiare il firmware.

se il problema non è che non trova il firmware su disco vai sul sito di sviluppo del modulo ipw e vedi cosa significano quegli errori.

ciao
maxxer
Back to top
View user's profile Send private message
luigi.malago
Apprentice
Apprentice


Joined: 31 May 2005
Posts: 292
Location: Mantova (Italy)

PostPosted: Wed Oct 26, 2005 8:26 am    Post subject: Reply with quote

allora, ho riletto le guide sul forum gentoo, ma ancora non ci sono... :(
ho ripristinato i symbolic links credo correttamente.

Code:

luigi@tux /etc/init.d $ ll net*
lrwxrwxrwx  1 root root   18 25 ott 18:29 net.eth0 -> /etc/init.d/net.lo
lrwxrwxrwx  1 root root   20 25 ott 18:31 net.eth1 -> /etc/init.d/net.eth0
-rwxr-xr-x  1 root root  512 26 ott 09:39 net.lo
-rwxr-xr-x  1 root root 2520 31 mag 23:55 netmount
-rwxr-xr-x  1 root root 4408  4 ott 16:41 net.ppp0


ho sistemato il file /etc/conf.d/net

Code:

luigi@tux /etc/init.d $ cat /etc/conf.d/net
# For static IP using netmask notation
config_eth0=( "192.168.168.5 netmask 255.255.255.0 broadcast 192.168.168.255" )
routes_eth0=( "default gw 192.168.168.254" )

config_eth1=( "dhcp" )

# Prefer iwconfig over wpa_supplicant
modules=( "iwconfig" )

# Configure WEP keys for Access Points called ESSID1 and ESSID2
# You may configure up to 4 WEP keys, but only 1 can be active at
# any time so we supply a default index of [1] to set key [1] and then
# again afterwards to change the active key to [1]
# We do this incase you define other ESSID's to use WEP keys other than 1
# Prefixing the key with s: means it's an ASCII key, otherwise a HEX key
# enc open specified open security (most secure)
# enc restricted specified restricted security (least secure)
key_ESSID1="[1] s:yourkeyhere key [1] enc open"
key_ESSID2="[1] aaaa-bbbb-cccc-dd key [1] enc restricted"

# The below only work when we scan for available Access Points

# Sometimes more than one Access Point is visible so we need to
# define a preferred order to connect in
preferred_aps=( "ESSID1" "ESSID2" )


(per adesso la è la prima parte che mi interessam quella che riguarda eth0)
ma ancora non sono riuscito a riportare la situazione a prima del casino che ho fatto con i symbolic links.

Il problema è che quando riavvio l'interfaccia eth0 è down.
devo tirarla su con ifconfig
e aggiungere manulamente il gw con route add default gw 192.168.168.254

Nel log all'avvio però vedo che eth0 è partita,
infatti se provo a farla ripartire ottengo:

Code:

tux init.d # ./net.eth0 start
 * WARNING:  "net.eth0" has already been started.


in pratica non mi salva la configurazione di eth0...

--------------

per la wireless ho trovato questo
http://ipw2200.sourceforge.net/#issues

sembra essere il mio problema...

per Maxxer: non ho mai usato i sorgenti del sito, sempre portage.
prima sistemo eth0, poi mi addentrerò in
http://ipw2200.sourceforge.net
per capire meglio come mai la wireless non va..

(però una volta mi andava! secondo me qualche update mi ha toccato qualcosa..)

grazie per l'aiuto,
Luigi
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1564
Location: switzerland

PostPosted: Wed Oct 26, 2005 9:04 am    Post subject: Reply with quote

che valori vengono assegnati all'avvio a eth0? (prima che tu assegni i valori con ifconfig)
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
luigi.malago
Apprentice
Apprentice


Joined: 31 May 2005
Posts: 292
Location: Mantova (Italy)

PostPosted: Wed Oct 26, 2005 10:35 am    Post subject: Reply with quote

ciao, ecco cosa devo fare appena riavviato per poter navigare.
luna80, grazie per la disponibilità


Code:

tux luigi # ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:188 errors:0 dropped:0 overruns:0 frame:0
          TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15963 (15.5 Kb)  TX bytes:15963 (15.5 Kb)

tux luigi # route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
tux luigi # ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:11:D8:D8:68:04
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 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:18

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:188 errors:0 dropped:0 overruns:0 frame:0
          TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15963 (15.5 Kb)  TX bytes:15963 (15.5 Kb)

tux luigi # clear

tux luigi # ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:188 errors:0 dropped:0 overruns:0 frame:0
          TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15963 (15.5 Kb)  TX bytes:15963 (15.5 Kb)

tux luigi # route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
tux luigi # ifconfig eth0 up
tux luigi # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:D8:D8:68:04
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 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:18

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:188 errors:0 dropped:0 overruns:0 frame:0
          TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15963 (15.5 Kb)  TX bytes:15963 (15.5 Kb)

tux luigi # ifconfig eth0 192.168.168.5 netmask 255.255.255.0 broadcast 192.168.168.255 up
tux luigi # ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:11:D8:D8:68:04
          inet addr:192.168.168.5  Bcast:192.168.168.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2109 (2.0 Kb)  TX bytes:2532 (2.4 Kb)
          Interrupt:18

tux luigi # route add default gw 192.168.168.254
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Oct 26, 2005 10:42 am    Post subject: Reply with quote

luigi.malago wrote:
Code:
-rwxr-xr-x  1 root root  512 26 ott 09:39 net.lo

???
riemergi il baselayout
Back to top
View user's profile Send private message
luigi.malago
Apprentice
Apprentice


Joined: 31 May 2005
Posts: 292
Location: Mantova (Italy)

PostPosted: Wed Oct 26, 2005 11:06 am    Post subject: Reply with quote

Ciao,
lo sto facendo adesso..
alla fine mi dice di fare un etc-update per aggiornare i file di configurazione.
adesso però mi compare una lista lunghissima (113 file)
con alla fine un

Code:

Please select a file to edit by entering the corresponding number.
              (don't use -3 or -5 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all remaining files)
                           (-5 to auto-merge AND not use 'mv -i'):



il file che mi hai indicato ti risulta sospetto?

ecco il contenuto:

Code:

luigi@tux ~ $ cat /etc/init.d/net.lo
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/net.lo,v 1.10 2004/04/21 17:09:18 vapier Exp $

start() {
        ebegin "Bringing ${IFACE} up"
        /sbin/ifconfig lo 127.0.0.1 up 2>/dev/null
        /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 \
                gw 127.0.0.1 dev lo 2> /dev/null
        eend 0
}

stop() {
        ebegin "Bringing ${IFACE} down"
        /sbin/ifconfig ${IFACE} down &>/dev/null
        eend 0
}


PS: per la wireless ho capito il problema, come sospettavo causato da un emerge -Du world.
Riguarda un conflitto con udev. Appena risolvo posto la soluzione..

grazie a tutti per il supporto.

Luigi
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Oct 26, 2005 11:17 am    Post subject: Reply with quote

quel net.lo appartiene ad una vecchia versione di baselayout, linkando net.eth0 a quel file non riuscirai mai a configurare la rete.

invece di etc-update, puoi usare dispatch-conf che richiede una minore interazione per effettuare il merge dei nuovi files di configurazione nel tuo sistema.

ps
presta molta attenzione, se sovrascrivi /etc/fstab o altri files importanti con i defaults, potresti sputt.. ehm.. incasinare totalmente la macchina.
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1564
Location: switzerland

PostPosted: Wed Oct 26, 2005 11:20 am    Post subject: Reply with quote

luigi.malago wrote:
Ciao,


Code:

Please select a file to edit by entering the corresponding number.
              (don't use -3 or -5 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all remaining files)
                           (-5 to auto-merge AND not use 'mv -i'):



il file che mi hai indicato ti risulta sospetto?



di che file stai parlando?

fai MOLTA attenzione a quello che fai con etc-update; di quei 113 ce ne saranno forse alcuni che tu hai modificato e quindi devi fare in modo di non perdere le tue modifiche.

passa i file uno ad uno e controlla le modifiche che ti vengono proposte: se non vengono modificate delle tue impostazioni allora puoi dire di rimpiazzare il file originale.

quando hai finito di fare questo poi riprenderai a preoccuparti delle tue schede di rete, al momento prenditi il tuo tempo per etc-update
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
luigi.malago
Apprentice
Apprentice


Joined: 31 May 2005
Posts: 292
Location: Mantova (Italy)

PostPosted: Wed Oct 26, 2005 11:27 am    Post subject: Reply with quote

ok, da questo thread sto imparando una sacco di cose (suppongo sia positivo...)
vado con ordine.
sospendo tutto quello che riguarda la rete e mi occupo di etc-update. Provo con dispatch-conf e poi vi faccio sapere.

makoomba wrote:

quel net.lo appartiene ad una vecchia versione di baselayout, linkando net.eth0 a quel file non riuscirai mai a configurare la rete.


comincio a capire...

luna80 wrote:

di che file stai parlando?


intendevo il file net.lo

Luigi
Back to top
View user's profile Send private message
luigi.malago
Apprentice
Apprentice


Joined: 31 May 2005
Posts: 292
Location: Mantova (Italy)

PostPosted: Wed Oct 26, 2005 12:39 pm    Post subject: Reply with quote

Ciao,
allora mi sono passato i 133 file di configurazione con dispatch-conf e colordiff e ne sono uscito quasi indenne.
Il sistema parte con le seguenti novità:

ora il modulo ipw2200 si carica correttamente

Code:

tux luigi # dmesg  | grep ipw
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.0.6
ipw2200: Copyright(c) 2003-2004 Intel Corporation
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection


e vedo il device eth1 :D :D

Code:

tux luigi # iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      unassociated  ESSID:off/any
          Mode:Managed  Channel=0  Access Point: 00:00:00:00:00:00
          Bit Rate=0 kb/s   Tx-Power=20 dBm
          Retry limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


adesso mi documento e cerco di configurare la scheda wireless.

C'è però un problema, ancora quando mi parte il sistema eth0 e down.
e per navigare devo fare

Code:

tux luigi # ifconfig eth0 192.168.168.5 netmask 255.255.255.0 broadcast 192.168. 168.255 up
tux luigi # route add default gw 192.168.168.254


:( :(

Luigi
Back to top
View user's profile Send private message
luigi.malago
Apprentice
Apprentice


Joined: 31 May 2005
Posts: 292
Location: Mantova (Italy)

PostPosted: Wed Oct 26, 2005 12:51 pm    Post subject: Reply with quote

Ce l'ho fatta :wink:
ho lanciato un rc, ho riavviato e poi mi ha caricato correttamente le impostazioni.
grazie a tutti per l'aiuto e i consigli, ne farò tesoro per le prossime volte.

Ora con calma mi configurerò la wireless, l'importante è che ifconfig me la veda...

grazie ancora,
Luigi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum