On Tue, 2 Aug 2005, Kenneth Kalmer wrote:
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.
The issue is a bit more complicated. In many data centers, you have production lans and support lans. For security reasons, you are not allowed to do installations on the production lans. And for ease of maintenance, the jack labeled '1' is ALWAYS production and the jack labeled '2' is ALWAYS support. So you have a machine (or tons of them) that try to install one way with one rev of the OS and the other way with another rev of the same OS. And if they have additional network cards, (say 2 or 4 port), there are still more variants. It gets complicated trying to script it all out.
------------------------------------------------------------------------ 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