Bug 133300 - Network interface set to eth1 after mainboard change
Summary: Network interface set to eth1 after mainboard change
Status: RESOLVED DUPLICATE of bug 145001
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Michal Zugec
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 17:25 UTC by Michael Stather
Modified: 2007-03-13 18:53 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
YaST2 logs (673.21 KB, application/x-compressed-tar)
2005-11-10 17:30 UTC, Michael Stather
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stather 2005-11-10 17:25:55 UTC
I changed my mainboard, and I removed the old (non-working) entry for my old network interface in YaST and configured the new one (which was found). It works fine, but it is now known as eth1 even if there is no other network interface present. ifconfig returns:

r098088:/home/michael # ifconfig
eth1      Protokoll:Ethernet  Hardware Adresse 00:13:D4:BC:1D:55
          inet Adresse:10.150.98.88  Bcast:10.150.98.255  Maske:255.255.255.0
          inet6 Adresse: fe80::213:d4ff:febc:1d55/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1192 errors:0 dropped:0 overruns:0 frame:0
          TX packets:718 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 Sendewarteschlangenlänge:1000
          RX bytes:478008 (466.8 Kb)  TX bytes:124262 (121.3 Kb)
          Interrupt:3 Basisadresse:0xc000

lo        Protokoll:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:256 errors:0 dropped:0 overruns:0 frame:0
          TX packets:256 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 Sendewarteschlangenlänge:0
          RX bytes:9122 (8.9 Kb)  TX bytes:9122 (8.9 Kb)

I also attached the YaST logs.
Comment 1 Michael Stather 2005-11-10 17:30:15 UTC
Created attachment 56996 [details]
YaST2 logs
Comment 2 Michael Gross 2005-11-11 14:29:21 UTC
Please don't compress or tar logfiles. Only the most recent logfile is required here. Always attach them as plain text, this makes handling much easier.

Please attach the output of `hwinfo --network' either.
Comment 3 Michael Stather 2005-11-13 18:29:11 UTC
098088:/home/michael # hwinfo --network
24: None 01.0: 10701 Ethernet
  [Created at net.111]
  UDI: /org/freedesktop/Hal/devices/net_00_13_d4_bc_1d_55
  Unique ID: L2Ua.ndpeucax6V1
  Parent ID: JNkJ.Buw2ZJWujl6
  SysFS ID: /class/net/eth1
  SysFS Device Link: /devices/pci0000:00/0000:00:0a.0
  Hardware Class: network interface
  Model: "Ethernet network interface"
  Driver: "forcedeth"
  Device File: eth1
  HW Address: 00:13:d4:bc:1d:55
  Link detected: yes
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #10 (Ethernet controller)

25: None 00.0: 10700 Loopback
  [Created at net.111]
  Unique ID: ZsBS.GQNx7L4uPNA
  SysFS ID: /class/net/lo
  Hardware Class: network interface
  Model: "Loopback network interface"
  Device File: lo
  Link detected: yes
  Config Status: cfg=new, avail=yes, need=no, active=unknown

26: None 00.0: 10781 Network Interface
  [Created at net.111]
  Unique ID: wl2P.nfEXJulusj6
  SysFS ID: /class/net/sit0
  Hardware Class: network interface
  Model: "Network Interface"
  Device File: sit0
  Config Status: cfg=new, avail=yes, need=no, active=unknown
Comment 4 Michael Gross 2005-11-14 17:35:49 UTC
Reassigned.
Comment 5 Martin Vidner 2005-11-15 09:22:28 UTC
See /etc/udev/rules.d/30-net_persistent_names.rules
We have a feature request to make this editable by yast already.
Comment 6 Michael Stather 2005-11-15 18:40:48 UTC
IMHO this doesn´t need to be made editable, but if I remove a network device from YaST (what I did with the old network interface) of course the rule should be removed. This was not the case here so this is a bug, or am I wrong here?
Comment 7 Martin Vidner 2005-11-16 10:19:52 UTC
It is a missing feature - yast does not know about udev rules currently.
I need to find a reference to the feature.
Comment 8 Christian Zoz 2005-11-17 11:53:46 UTC
/usr/share/doc/packages/sysconfig/README.Persistent_Interface_Names
Comment 9 Markus Blüml 2006-04-10 12:52:45 UTC
We got the same problem. If we choose the same static IP-Adress as before in the deletet Interface, YAST sais that this IP-Adress is already in use.

It would be helpful, just to know how to manually reset all the network interface configuration.
Comment 10 Markus Blüml 2006-04-10 13:46:34 UTC
Solution for us (the installation is used on a server and hardware will not be changed):
in /etc/sysconfig/network/config
set FORCE_PERSISTANT_NAMES=no
Comment 11 Michael Stather 2006-04-11 07:05:29 UTC
IMO this is a bug design flaw in SuSE (fortunately the only one), I´ve written many bug reports about this (if removing hardware the previous state isn´t restored, so you run into troble when changing the hardware) but nobody seems to care really. Perhaps after 10.1 release somebody will think about this :)
Comment 12 Christian Zoz 2006-04-11 14:44:49 UTC
This is a wanted feature. There are hotpluggable devices and you want the same interface name every time you plug the same device.
If you replace a device permanently, you get eth1 (or higher) instead of eth0. But that is not a problem. Just get used to the fact that a single netiface need not always be named eth0. That's all.
And as Markus wrote in comment 10 you can switch that off with 
FORCE_PERSISTANT_NAMES=no if you don't like that.

All we should change is that we remove also the udev rule if the interface config is removed.
Comment 13 Michael Stather 2006-04-11 17:33:52 UTC
In the other bug reports I´ve written exactly that. For hotpluggable devices the device entry in stays, and so does the config. But when I remove a device (regardless of kind) in YaST it should remove:

1. The sysconfig settings (is done now)
2. The udev rules if appropriate (missing)
3. The /etc/modprobe.d/* file (missing)
4. The /var/udi hotplug file (missing)
Comment 14 Martin Vidner 2006-08-28 11:52:30 UTC
Reassigning to the new maintainer of yast2-network.
Comment 15 Michal Zugec 2007-03-13 18:53:45 UTC

*** This bug has been marked as a duplicate of bug 145001 ***