[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: systemd/udev persistent network device names



Hi

Hab es gerade am Laptop auch noch mal ohne Schwierigkeiten getestet.

Laptop auch Debian 8

---------------------------------------------------

1. Fuege doch mal folgendes ein:

	»CONFIG_FHANDLE=y CONFIG_NET=y net.ifnames=1«

~$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-686-pae
root=UUID=3a5549d9-1254-4537-8817-ae42ec4a29e7 ro vga=0x0323 quiet
splash CONFIG_FHANDLE=y CONFIG_NET=y net.ifnames=1

2. Mach bitte einen Symlink nach /dev/null zur 70-persistent-net.rules

[11:03:30]( *100% )alex@laptop:~$ ls -lh /etc/udev/rules.d
insgesamt 8,0K
-rw-r--r-- 1 root root 796 Jul  3  2013 70-persistent-cd.rules
lrwxrwxrwx 1 root root   9 Mai  4 10:18 70-persistent-net.rules -> /dev/null
-rw-r--r-- 1 root root 712 Jul  3  2013 70-persistent-net.rules.bak

3. reboot

4. ls -lh /sys/class/net
insgesamt 0
lrwxrwxrwx 1 root root 0 Mai  4 10:48 docker0 ->
../../devices/virtual/net/docker0
lrwxrwxrwx 1 root root 0 Mai  4 10:48 enp9s0 ->
../../devices/pci0000:00/0000:00:06.0/0000:09:00.0/net/enp9s0
lrwxrwxrwx 1 root root 0 Mai  4 10:48 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx 1 root root 0 Mai  4 10:48 wlp8s0 ->
../../devices/pci0000:00/0000:00:05.0/0000:08:00.0/net/wlp8s0

Gegenbeispiel:


~$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-686-pae
root=UUID=3a5549d9-1254-4537-8817-ae42ec4a29e7 ro vga=0x0323 quiet
splash CONFIG_FHANDLE=y CONFIG_NET=y net.ifnames=0
[11:17:44]( *100% )alex@laptop:~$ ls -lh /sys/class/net
insgesamt 0
lrwxrwxrwx 1 root root 0 Mai  4 11:13 docker0 ->
../../devices/virtual/net/docker0
lrwxrwxrwx 1 root root 0 Mai  4 11:13 eth0 ->
../../devices/pci0000:00/0000:00:06.0/0000:09:00.0/net/eth0
lrwxrwxrwx 1 root root 0 Mai  4 11:13 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx 1 root root 0 Mai  4 11:13 wlan0 ->
../../devices/pci0000:00/0000:00:05.0/0000:08:00.0/net/wlan0



Gruß Alex

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: