|
Re: Vexing Behavior: RHEL 5.2 (2.6.18-92) Random NIC Enumeration Between Re: msg#00042linux.redhat.release.rhel5
On Wed, Jul 2, 2008 at 8:14 PM, John Zornig <j.zornig-6NCMjze5YvWHXe+LvDLADg@xxxxxxxxxxxxxxxx> wrote: John Haxby wrote: John --> I hope someone more knowledgeable would have answered this by now. First of all, the udev rules and parameters appears to be a a state of flux or change. For 5.x, I don't believe that "SYSFS{address}==..." is still supported. Next, I believe from my experimentation that using UDEV and locking to the PCI slot is probably the best way to go (at least for my application). I haven't migrated to 5.2 yet, but here is a write-up I did on the CentOS list for a similar question. I hope it helps ... ============== Forwarded Message ===================== On Sat, Apr 19, 2008 at 3:53 PM, Joseph L. Casale <jcasale-QeoNDF8sg3qKnZcHqi4ZagC/G2K4zDHf@xxxxxxxxxxxxxxxx> wrote:
Here is an outline of what I do to "lock-down" interfaces -- which relies mainly on using a fairly new feature "udev": /etc/modprobe.conf: make sure the lines -- alias eth? <driver> are in the correct order, e.g.: alias eth0 e1000 alias eth1 e1000 alias eth2 tg3 /etc/udev/rules.d/: create network rules file (if needed) and add lines that associate a given NIC to its eth? interface. Use "udevinfo -a -p /sys/class/net/eth?" to get various features or attributes to find the NIC that you want to call eth<X>. [Note: this seems to change from release to release, so this is a little general.] You might want to put lines like: Kernel==eth? ID==0000:03:02.0 Name=eth0 Kernel==eth? ID==0000:03:02.1 Name=eth1 or Kernel==eth? Sys{vendor}==0x8086 Sys{device}==0x032a Name=eth0 Kernel==eth? Sys{vendor}==0x8086 Sys{device}==0x1079 Name=eth1 /etc/sysconfig/network-scripts/ifcfg-eth<X>: As other have suggested, now put MACADDR= into these files with the desired MAC address that you want the interface to be set to and delete the HWADDR. Now, reboot, test and repeat as needed:-):-) ... I hope that helps and is useful ... -rak- Note: I just checked a Fedora 8 box and some of the above has changed -- udev is the way to go, but be advised that this feature appears to be evolving and changing -- hopefully for the better! _______________________________________________ rhelv5-list mailing list rhelv5-list-H+wXaHxf7aLQT0dZR+AlfA@xxxxxxxxxxxxxxxx https://www.redhat.com/mailman/listinfo/rhelv5-list |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Too many kernels?: 00042, Tuan Hoang |
|---|---|
| Next by Date: | Re: Dont want to upgrade to 5.2: 00042, Erling Ringen Elvsrud |
| Previous by Thread: | RE: Vexing Behavior: RHEL 5.2 (2.6.18-92) RandomNIC Enumeration Between Rebootsi: 00042, Zavodsky, Daniel \(GE Money\) |
| Next by Thread: | Re: Vexing Behavior: RHEL 5.2 (2.6.18-92) Random NIC Enumeration Between Reboots: 00042, John Zornig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |