|
From: Serge L. <fi...@in...> - 2006-06-22 17:50:25
|
Frank, Thursday, June 22, 2006, 5:28:54 AM, you wrote: >> > is there a way to bind a particular nic to a particular interface in DL, >> > i.e. a way to map that says eth0 has MAC address xxxx etc? >> >> Yes. >> >> Program name is "nameif" >> > Thanks Serge > this could be what I have been looking for, but it is not easy to use in DL > (at least not with an /etc/mactab file): nameif needs to be run when the nic > modules are loaded, but the interfaces are still down... if I insert a call > to nameif in the /etc/init.d/network script after the modprobe, the name of > the device being configured changes in the middle of the script. You can do the following any time( rename eth2 (00:0C:29:40:65:27) to eth10 with saving all NIC settings ) ifconfig eth2 down nameif eth10 00:0C:29:40:65:27 ifconfig eth10 up > In order to use this, I'd have to introduce a new param into the nic-config > file (eg HWADDR) and then make a single 'command-line' call to nameif after > the module has been loaded. Another "MAC" option ? But may be just do it in another way: Assign necessary MAC address to the interface by using "MAC" option of nic configuration file. -- Best regards, Serge mailto:fi...@in... |