On Tue, 3 Sep 2013, Scott Robbins wrote:
On Tue, Sep 03, 2013 at 02:02:08PM +0100, Steve Brooks wrote:
You don't actually need hwaddr in your ifcfg-* files -- though it's probably not a bad thing to have the MAC in there. [As Scott pointed out, it's all about what udev has in its rules.]
You also have to look at /etc/udev/rules.d/70-persistent-net.rules
I am using "centos 5" and it seems the "udev" cam in with e16 ... So can't go that way..
Cursory googling indicates that you can create the file (and directories if needed). The line in there would read something like
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="XX:XX:XX:XX:XX:XX", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
with XX:XX etc being the hardware address. It's all on one line and quotation marks are used as shown.
All this is untested by me on CentOS 5.x
Thanks Scott, I do have a test machine I can try it on, so I will see what happens with your suggestion.. Thanks, Steve