Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto] eth0 device not found.
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
Lux-68
n00b
n00b


Joined: 19 May 2013
Posts: 34
Location: Provincia di Torino

PostPosted: Sun Jun 02, 2013 1:58 pm    Post subject: [Risolto] eth0 device not found. Reply with quote

Ciao a tutti,
ho recentemente reinstallato Gentoo sul mio PC. Al riavvio non riconosce la scheda di rete pur caricando il driver corretto.


Da
Code:

ifconfig eth0

risulta
Code:

eth0: error fetching interface information: Device not found


Il kernel 3.8.13 riconosce l'interfaccia come:
[/code]
Code:

07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 06)


Il modulo viene caricato

Code:

Module                  Size  Used by
r8169                  54864  0


Se server posto la configurazione del kernel.

Luciano.


Last edited by Lux-68 on Tue Jun 04, 2013 7:38 am; edited 1 time in total
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Sun Jun 02, 2013 6:19 pm    Post subject: Reply with quote

La colpa è del nuovo udev.

http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames

Anche lasciando /etc/udev/rules.d vuoto non mi riesce di avere i vecchi nomi funzionanti.
Dovrebbe esserci modo di configurare i vecchi nomi definiti dal kernel se proprio ti servono ma non me lo sono posto il problema.
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
doom555
n00b
n00b


Joined: 29 Oct 2012
Posts: 57

PostPosted: Mon Jun 03, 2013 2:16 pm    Post subject: Reply with quote

Code:
# ifconfig -a

e scopri qual'è il nuovo nome!
Back to top
View user's profile Send private message
Lux-68
n00b
n00b


Joined: 19 May 2013
Posts: 34
Location: Provincia di Torino

PostPosted: Tue Jun 04, 2013 7:35 am    Post subject: [Risolto] eth0 device not found. Reply with quote

doom555 wrote:
Code:
# ifconfig -a

e scopri qual'è il nuovo nome!


Grazie a entrambi per la dritta. In effetti il nome è tutt'altro 8O:

Code:

dummy0: flags=130<BROADCAST,NOARP>  mtu 1500
        ether 1e:26:33:a2:76:11  txqueuelen 0  (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

enp7s0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether bc:5f:f4:0b:8d:67  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 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

sit0: flags=128<NOARP>  mtu 1480
        sit  txqueuelen 0  (IPv6-in-IPv4)
        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



cioè enp7s0 quindi ho risolto con il collegamento in /etc/init.d/
Code:

# ln -s net.lo net.enp7s0

Ora la rete c'è. :)

Luciano.
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Tue Jun 04, 2013 8:59 pm    Post subject: Reply with quote

è quello, enp7s0 è il nome assegnato dal kernel. Cambia a seconda del driver che usi, e l'ultimo numero, a parità di driver, secondo l'ordine di caricamento (che in genere corrisponde alla posizione sul bus).
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Sun Jun 09, 2013 2:46 pm    Post subject: Reply with quote

djinnZ wrote:

Anche lasciando /etc/udev/rules.d vuoto non mi riesce di avere i vecchi nomi funzionanti.

Non so se valga ancora, ma qualche tempo fa con il sistema ancora in test udev se trovava il file "80-net-name-slot.rules" in rules.d manteneva i vecchi nomi (indipendentemente dal contenuto del file).

Quote:
Dovrebbe esserci modo di configurare i vecchi nomi definiti dal kernel se proprio ti servono ma non me lo sono posto il problema.

Devi passare net.ifnames=0 come parametro al kernel.
_________________
Linux registered user 461710
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