Fixed NIC names

Submitted by gunnar on Fri, 05/04/2007 - 08:31

I have two NIC's, one wired and one wireless. On each boot SuSE 9.3 seems to randomly assign eth0 to one of them and eth1 to the other. It doesn't matter that the wireless is disabled. How do I assign a fixed name to each NIC?


You need to assign a "persistent name" to each NIC.

In "/etc/sysconfig/network" you will find a file named ifcfg-something for each NIC. Edit the ones whose names end with MAC adresses and add the line


to one of them, and


to the other, then run



/etc/init.d/network restart.

Note that the names can not be eth0, etc1, etc, since names with that format are reserved. It is generally a good idea to use descriptive names like lan, wan or wlan.


Add new comment

Plain clean text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.