Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[UDEV] Interfaces eth* qui changent de numérotation (RESOLU)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8723
Location: ~Brussels - Belgique

PostPosted: Tue Jun 26, 2007 7:34 pm    Post subject: [UDEV] Interfaces eth* qui changent de numérotation (RESOLU Reply with quote

Hello,

J'ai depuis quelques jour un Dell Latitude D600 qui possède deux interfaces réseau.
lspci wrote:
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705M Gigabit Ethernet (rev 01)
02:03.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)


Après une première installation, la Broadcom était eth0 avec le driver tg3, et la Wifi était eth1 et tout fonctionnait bien.

Jusqu'au jour où trop crevé, j'ai scratché la partoche (un peu trop fait joujou avec gparted, plus moyen de récupérer la partition, je m'étais enlisé pire que grave).

Bref je recommence et pars du Gentoo de mon desktop (un AMD64X2 en ~x86) que je duplique et recompile en chroot : après moins de 24 heures, je réinstalle l'image, et quelle ne fut pas ma stupeur : les interfaces s'incrémentent !

J'ai donc : eth1 pour l'ethernet et eth2 pour le wifi.

(et accessoirement je constate que le cdrom s'appelle /dev/cdrom1 au lieu de /dev/cdrom ou /dev/cdrom0).

La seule piste que j'ai est la suivante
/var/log/messages wrote:
Jun 26 21:09:43 gentoo-laptop eth0: Tigon3 [partno(BCM95705A50) rev 3001 PHY(5705)] (PCI:33MHz:32-bit) 10/100/1000Base-T Ethernet 00:11:43:3b:ee:9e
Jun 26 21:09:43 gentoo-laptop eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] WireSpeed[1] TSOcap[1]
Jun 26 21:09:43 gentoo-laptop eth0: dma_rwctrl[763f0000] dma_mask[64-bit]
[...]
Jun 26 21:09:46 gentoo-laptop PM: Writing back config space on device 0000:02:00.0 at offset b (was 165d14e4, writing 865d1028)
Jun 26 21:09:46 gentoo-laptop PM: Writing back config space on device 0000:02:00.0 at offset 3 (was 0, writing 2008)
Jun 26 21:09:46 gentoo-laptop PM: Writing back config space on device 0000:02:00.0 at offset 2 (was 2000000, writing 2000001)
Jun 26 21:09:46 gentoo-laptop PM: Writing back config space on device 0000:02:00.0 at offset 1 (was 2b00000, writing 2b00106)
Jun 26 21:09:46 gentoo-laptop ifplugd(eth1)[3139]: ifplugd 0.28 initializing.
Jun 26 21:09:46 gentoo-laptop ifplugd(eth1)[3139]: Using interface eth1/00:11:43:3B:EE:9E with driver <tg3> (version: 3.75.2)
Jun 26 21:09:46 gentoo-laptop ifplugd(eth1)[3139]: Using detection mode: SIOCETHTOOL
Jun 26 21:09:46 gentoo-laptop ifplugd(eth1)[3139]: Initialization complete, link beat not detected.


Comme vous le constatez, "PM" décide de toucher à l'interface PCI 0000:02:00.0 qui est l'ethernet (on le voit à sa MAC )

Quelqu'un a-t-il une idée pourquoi ?

EDIT : UDEV et ses "persistent rules" ;)

Et pour amuser la galerie
/usr/src/linux/.config wrote:
EDIT: inutile, c'est la faute à udev, ou du moins l'interface chaise-clavier-udev


Merci pour vos lumières ;)
_________________
Kind regards,
Xavier Miller


Last edited by xaviermiller on Tue Jun 26, 2007 8:40 pm; edited 2 times in total
Back to top
View user's profile Send private message
CryoGen
Veteran
Veteran


Joined: 11 Feb 2004
Posts: 1426
Location: Bamako - Mali - Afrique

PostPosted: Tue Jun 26, 2007 7:53 pm    Post subject: Reply with quote

Va faire un tour dans les regles persistantes d'udev, il se peut que ca ai un lien (pas obligé mais souvent, surtout le coup des eth qui s'incrémentent)
_________________
- CryoGen` on #gentoofr@irc.freenode.net
- ~amd64 / KDE4
- I'm the bone of my sword...
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8723
Location: ~Brussels - Belgique

PostPosted: Tue Jun 26, 2007 8:22 pm    Post subject: Reply with quote

Bingo !
/etc/udev/rules.d/70-persistent-net.rules wrote:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:02:44:84:70:77", NAME="eth0"

# PCI device 0x14e4:0x165d (tg3)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:11:43:3b:ee:9e", NAME="eth1"

# PCI device 0x8086:0x4220 (ipw2200)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0e:35:be:23:d0", NAME="eth2"

et j'imagine idem pour le cd !

quelle est la solution préconisée : désinstaller udev, nettoyer /etc/udev, puis réinstaller ?
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772

PostPosted: Tue Jun 26, 2007 8:26 pm    Post subject: Reply with quote

Vire le fichier et reboot, il sera regénéré comme il faut :)
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8723
Location: ~Brussels - Belgique

PostPosted: Tue Jun 26, 2007 8:41 pm    Post subject: Reply with quote

ouips :)

j'ai viré les fichiers qui contenaient le texte "automatically generated by" et hop, cdrom et eth sont en ordre :):):)

Ah ce forum, il rend Gentoo très attachant 8) :P

EDIT: 939 messages, comme le socket de mon AMD64 8)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
ultrabug
Developer
Developer


Joined: 24 Jan 2005
Posts: 698
Location: Paris

PostPosted: Wed Jun 27, 2007 10:05 am    Post subject: Reply with quote

XavierMiller wrote:
EDIT: 939 messages, comme le socket de mon AMD64 8)


Geek Alert ! :twisted:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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