order of eth interfaces in SuSE 9.1

Roger Oberholtzer roger
Tue Feb 8 03:06:01 PST 2005


On Tue, 2005-02-08 at 08:10, Man-wai Chang wrote:
> Roger Oberholtzer wrote:
> > In suse9.2 (I do not know about 9.1) the cards are now known as
> > eth-MAC_ADDRESS. The earlier ethX names are still there. But the longer
> > names are the preferred name to use. This way you need not care about
> > slot or driver load order.
> 
> but I want to make sure eth0 is always the internet interface while eth1 
> is the intranet interface so that my firewall script would not go wrong.
> 
> Is there a method to ensure that under SuSE 9.1/9.2?

In 9.2 - yes. Each card has a MAC address. Since that is now part of the
name in 9.2 (not sure about 9.1 - anyone on the list know 9.1?), your
problem has a solution.

In /etc/sysconfig/network, the config files are not named 'ifcfg-eth0'
and the like. Mine is named ifcfg-eth-id-00:06:5b:a6:e5:9d, which tells
me exactly which card it is. This will never change because of slot or
driver load order changes. In YAST, the MAC address is provided so you
know which you are configuring.

I think this is all part of the 'udev' system that SUSE now support. In
this system, you can control the names of all devices based on many
different properties. Not sure what the long-term system variances this
will bring about will do, but the idea has some nice uses here.

If you do not see this in 9.1, then I guess it is a new thing for 9.2

+????????????????????????????+???????????????????????????????+
? Roger Oberholtzer          ?   E-mail: roger at opq.se        ?
? OPQ Systems AB             ?      WWW: http://www.opq.se/  ?
? Nybrogatan 66 nb           ?    Phone: Int + 46 8   314223 ?
? 114 41 Stockholm           ?   Mobile: Int + 46 733 621657 ?
? Sweden                     ?      Fax: Int + 46 8   314223 ?
+????????????????????????????+???????????????????????????????+



More information about the Linux-users mailing list