<br><br><div class="gmail_quote">On Sat, Apr 19, 2008 at 3:53 PM, Joseph L. Casale <<a href="mailto:jcasale@activenetwerx.com">jcasale@activenetwerx.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">>Modify /etc/sysconfig/network-scripts/ifcfg-ethX and remove the HWADDR<br>
>line if you have one, and add a MACADDR with the mac address you want<br>
>to use.<br>
><br>
>Beware, some network cards may protest having the mac address changed,<br>
>and using both HWADDR and MACADDR can cause issues. See<br>
>/usr/share/doc/initscripts-*/sysconfig.txt for details.<br>
<br>
</div>Jim,<br>
I appreciate the confirmation, that was the method I was going to use. I am only unsure about what *could* happen with the HWADDR in there, can eth{n} now maybe bind to a different nic under some circumstance?<br>
<br>
How can I always force the nic in question to use this script?<br>
<br>
Thank you!<br>
<font color="#888888">jlc<br>
</font><div><div></div><div class="Wj3C7c"><a href="mailto:CentOS@centos.org"></a><a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank"></a></div></div></blockquote><div><br><br>Here is an outline of what I do to "lock-down" interfaces -- which relies<br>
mainly on using a fairly new feature "udev":<br><br> /etc/modprobe.conf: make sure the lines --<br><br> alias eth? <driver><br> <br> are in the correct order, e.g.:<br><br> alias eth0 e1000<br>
alias eth1 e1000<br> alias eth2 tg3<br><br> /etc/udev/rules.d/: create network rules file (if needed) and<br> add lines that associate a given NIC to its eth? interface.<br> Use "udevinfo -a -p /sys/class/net/eth?" to get various<br>
features or attributes to find the NIC that you want to call<br> eth<X>. [Note: this seems to change from release to <br> release, so this is a little general.] You might want to put<br> lines like:<br>
<br> Kernel==eth? ID==0000:03:02.0 Name=eth0<br> Kernel==eth? ID==0000:03:02.1 Name=eth1<br><br> or<br><br> Kernel==eth? Sys{vendor}==0x8086 Sys{device}==0x032a Name=eth0<br> Kernel==eth? Sys{vendor}==0x8086 Sys{device}==0x1079 Name=eth1<br>
<br> /etc/sysconfig/network-scripts/ifcfg-eth<X>:<br><br> As other have suggested, now put MACADDR= into these files with the<br> desired MAC address that you want the interface to be set to and <br>
delete the HWADDR.<br><br>Now, reboot, test and repeat as needed:-):-) ...<br><br>I hope that helps and is useful ...<br><br> -rak-<br><br>Note: I just checked a Fedora 8 box and some of the above has<br>changed -- udev is the way to go, but be advised that this feature<br>
appears to be evolving and changing -- hopefully for the better!<br><br><br><br><br> <br></div></div><br>