View previous topic :: View next topic |
Author |
Message |
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Thu Oct 04, 2007 8:30 pm Post subject: Interface Labeling Question |
|
|
Hello,
I have a Gentoo system with three interface's: One is on-board (i.e on the motherboard), the other two are separate Ethernet cards that I bought and inserted into my motherboards two available pci card slots. Now, my two interface's (in the pci card slots) are made by the same manufacturer (netgear) are are always labeled eth0, and eth1 respectively .. of course .. this means that my on-board interface ... is labeled eth2.
I was just wondering, if at boot, this can be controlled. What I mean is ... I would always like my on-board interface to be recognized and labeled eth0 ..the remaining interfaces can be labeled accordingly.
Thank for your time |
|
Back to top |
|
|
jasm Tux's lil' helper
Joined: 10 Sep 2003 Posts: 80 Location: Belgium
|
Posted: Thu Oct 04, 2007 9:10 pm Post subject: |
|
|
On my machine - a laptop with both a wired and a wireless ethernet interface - it is automagically handled by udev. My /etc/udev/rules.d directory contains a file 70-persistent-net.rules with following content: Code: | # 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 0x8086:0x4220 (ipw2200)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:12:f0:6f:07:0a", NAME="eth0"
# PCI device 0x14e4:0x170c (b44)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:12:3f:d1:87:ab", NAME="eth1" | The comments in that file tell the complete story. |
|
Back to top |
|
|
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Fri Oct 05, 2007 2:17 pm Post subject: |
|
|
Hello,
I don't appear to have that file: "70-persistent-net.rules" . The only files I have are: Code: |
prompt# ls /etc/udev/rules.d/
05-udev-early.rules 50-udev.rules |
What may I do to ensure udev creates and runs such a file?
Thanks for your time |
|
Back to top |
|
|
jasm Tux's lil' helper
Joined: 10 Sep 2003 Posts: 80 Location: Belgium
|
Posted: Fri Oct 05, 2007 8:16 pm Post subject: |
|
|
My udev rules directory contains these files Code: | $ ls
05-udev-early.rules 70-bluetooth.rules 80-hotplug.rules
50-udev.rules 70-persistent-cd.rules 90-hal.rules
60-persistent-input.rules 70-persistent-net.rules 95-udev-late.rules
60-persistent-storage.rules 75-cd-aliases-generator.rules 99-libgphoto2.rules
64-device-mapper.rules 75-persistent-net-generator.rules
| One of the questions is what version of udev and even kernel you're using. Mine are: Code: | $ uname -a
Linux trumpet 2.6.22-gentoo-r1 #8 PREEMPT Thu Sep 13 22:54:06 CEST 2007 i686 Intel(R) Pentium(R) M processor 2.13GHz GenuineIntel GNU/Linux
$ equery l udev
[ Searching for package 'udev' in all categories among: ]
* installed packages
[I--] [ ] sys-fs/udev-114 (0)
|
The file 75-persistent-net-generator.rules belongs to udev (checked with 'equery b 75-persistent-net-generator.rules'). This file apparently calls /lib/udev/write_net_rules which in turn creates 70-persistent-net.rules.
I hope you have enough points of comparison to resolve your problem.
Regards,
Jan |
|
Back to top |
|
|
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Thu Nov 22, 2007 8:09 pm Post subject: |
|
|
Hello,
I am using udev-087 and the kernel I am running is 2.6.16.
Can anybody help??
Thanks _________________ success is the ability to go from one failure to the next without any loss of enthusiasm |
|
Back to top |
|
|
|