logo

English | Franšais | Espa˝ol



Event Article 9
May 12, 2006

We have two types of servers that require two network cards and the scripts that control those network cards need to know which card is plugged into the internet and which is plugged into a LAN.

 

So image eth0 being connected to the internet and eth1 being connected to a LAN. Now imagine a script that expects those cards to be connected to those places.

 

Suse changed to a system mac address labeled system this hard coded system means that your scripts are no longer guaranteed that eth0 and eth1 are where you thought they were. To me this makes know since nearly all flexible and useful computer programs use abstraction so you do not have to care about the hardware underneath, it just needs to run.

 

Fortuntely someone at Suse had the same idea as me allows you to set which card appears where. In the /etc/sysconfig/network there are config files for each network card.

 

Like this:

ifcfg-eth-id-00:07:95:bd:be:dd

ifcfg-eth-id-00:07:95:bd:be:bc

 

To make the cards stay in the order you need simply rename to the device your scripts are looking for.

 

ifcfg-eth0

ifcfg-eth1

 

 

 

 



Page 1 of 1

This article has been placed in the category(s) below:

Technology

Send this article to a friend

create discussion Create Discussion

© Copyright Isurge Inc. 1998-2011