How does mepis give name to devices?
Posts: 45
Hi all, before I had a problem: after reboot mepis calles eth1 the ethernet card and eth0 the wireless.
I saw that by iwconfig that was showing a wireless extension for eth0 !
After reboot the things changed back but this is not the first that happen.
Samething similar must happen witt the audio card: sametime form kmix i see only "USB2.0 video" and not "HDA Intel".
I reported before that problem
http://www.mepis.org/node/13768
Any idea how to fix it?
MEPIS 6.5 with all upgraded.
Thanks.

udev rule fo pinning devices to block devices
Posts: 959
This is common for intel based wireless cards.
First you need to find the mac address of the card you want to be eth0.
If the that card is now eth0 , open a Konsole and use the command:
udevinfo -a -p /sys/class/net/eth0
if it's currently at eth1 instead use:
udevinfo -a -p /sys/class/net/eth1
Leave that window open so you can copy and paste in a moment. Look for the section that has your ethernet or wireless card named and copy the mac address from within the "quotation marks" to the file as below.
SYSFS{address}=="00:1b:fc:4d:d3:fe"
edit or create /etc/iftab if it doesn't exist, and paste the mac address of the card into the corresponding section below.
check out man:iftab for details.
EXAMPLE
# This is a comment
ath0 mac 00:12:f0:c6:60:b3
eth0 mac 00:1b:fc:4d:d3:fe arp 1
nveth* SYSFS{device/vendor} 0x10de
Notice, in the example above, both devices are pinned to a different block device and the wireless has been assigned to an ath0 block. This has the added benefit of giving you a proper wireless icon when connected, but it has the disadvantage of slowing down or stopping the auto discovery of a dhcp ip addresses when a cable is plugged into your ethernet port, when and only when you are using knetworkmanager, though wireless is great because you can connect to many different access points as you move from one place to another.
As always, make a backup of the files you are about to change so you can revert back if required.
Mike P
--------------------
Life may not be the party we thought, but while we're here, we may as well dance.
Break M$'s shackles from your feet and free yourself with Mepis
It seems to work. I created
Posts: 45
It seems to work.
I created the file /etc/iftab with only the line
eth0 mac 00:15:f2:37:a0:28
I didn't undesrtund what is
nveth* SYSFS{device/vendor} 0x10de
so I didn't insert it.
I rebooted and the interface got the right address.
Hope it will keep doing.
Thanks for the clear answer.
sort of
Posts: 4864
I understand that you can set a network interface to a particular MAC address in the /etc/udev/rules.d/ directory.
I haven't done it myself, so you either need to search the web or wait for someone else to chime in