Gentoo Archives: gentoo-user

From: Rennie deGraaf <rennie.degraaf@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Network device name changes every reboot
Date: Sun, 15 Apr 2007 06:05:41
Message-Id: c080b46c0704142254v937366x6d27af08e1a4ba9c@mail.gmail.com
1 Hello,
2
3 I'm running Gentoo x86/2006.1 inside a User-Mode Linux disk image, created
4 according to the instructions at
5 http://gentoo-wiki.com/HOWTO_User_Mode_Linux, with kernel 2.6.20.7 from
6 kernel.org. The first time I booted my UML system, networking worked
7 properly. The next time, net.eth0 failed to start. Further investigation
8 revealed that /sys/class/net/eth0 didn't exist (despite entries in dmesg
9 indicating that it was being created). However, /sys/class/net/eth1 *did*
10 exist, despite me not having specified a configuration for eth1 on the UML
11 command line. I was able to successfully configure eth1 and communicate
12 with other hosts through it.
13
14 The next time I rebooted, eth1 had dissappeared, but there was now an eth2.
15 dmesg still contained references to /sys/class/net/eth0, but nothing about
16 eth2. The next time, I got eth3. And so on. I rebuilt my UML image from
17 scratch, and got eth0 again on the first boot, but the device number kept
18 incrementing on further reboots. I rebuilt the kernel with a few different
19 options, but that didn't affect the numbering. I'm at eth12 now.
20
21 I have an older UML image based on kernel 2.6.16.16 and Gentoo 2006.0 from
22 last June or so; it doesn't display this behaviour.
23
24 I've double-checked that all UML-related processes have shut down completely
25 between reboots, and have deleted and re-created the tun/tap device on the
26 host system to ensure that the issue isn't with the host operating system.
27 The UML command line didn't change between boots. Since the problem is
28 persistent across UML reboots, and changing the kernel didn't help, I'm
29 convinced that the issue lies with the Gentoo operating system in the UML
30 image. Unfortunately, I have no idea what the problem is.
31
32 Does anyone have any idea what might be going on? Any help would be greatly
33 appreciated.
34
35 Rennie deGraaf

Replies

Subject Author
Re: [gentoo-user] Network device name changes every reboot Neil Bothwick <neil@××××××××××.uk>