Why not edit the config files in /etc/sysconfig/network-scripts?
Rename the two files to match the interfaces you want them to be, i.e. ifcfg-eth0 & ifcfg-eth1, and edit their contents to match the new file names. Then do a simple "service network restart" and they should be swapped around.
HTH
On 8/2/05, sudo Yang sudoyang@gmail.com wrote:
I've seen that as well, even with RedHat 9.0. With Linux, because it's so configurable and flexible, I'm surprise there isn't an easy way to do this. I could swap the cable on a few systems to do the installation, but we have thousands of systems this is not feasible.
Anyway, thank you for the response. At least I know I'm not alone :)
On 8/1/05, Jim Wildman jim@rossberry.com wrote:
On Mon, 1 Aug 2005, sudo Yang wrote:
One of my systems have two onboard NICs which uses the e100 and e1000 drivers (yes, the interfaces are not the same). This system kickstart fine with CentOS 3.x. I recently tried to rekick it with CentOS 4.x but was unsuccessful in doing so. When kicking CentOS 4.1, the interfaces are swapped around, i.e. eth0 becomes eth1 and eth1 becomes eth0 (as described at http://marc.theaimsgroup.com/?l=linux-kernel&m=104888957013124&w=2). Is there a way to fix the interface during kickstart?
For real fun, add a PCI based dual port card. Then the first onboard NIC will probably be (but not for sure) eth2!!!
The short answer is there is no guaranteed way. The long answer is you may be able to add module loading commands to the kernel invocation line in your kickstart file and get the old behavior. Does not work for all servers.
I've got notes at work about it, but can't seem to find them from home.
Jim Wildman, CISSP, RHCE jim@rossberry.com http://www.rossberry.com "Society in every state is a blessing, but Government, even in its best state, is a necessary evil; in its worst state, an intolerable one." Thomas Paine _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos