Ubuntu Bionic - Namen der Interfaces umstellen
-
Ich teste gerade ein wenig auf einem Mainline Kernel rum.
rock64@rockpro64v2_1:~$ uname -a Linux rockpro64v2_1 4.18.0-rc5-1052-ayufan-gd1b8f36378ff #1 SMP PREEMPT Mon Jul 30 14:14:58 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux
Dazu habe ich meinen USB3-to-LAN Adapter eingesteckt. Erkannt wird er.
rock64@rockpro64v2_1:~$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether ce:0b:da:a2:0a:b8 brd ff:ff:ff:ff:ff:ff 3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 1e:0e:99:52:8e:40 brd ff:ff:ff:ff:ff:ff inet 192.168.3.208/24 brd 192.168.3.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::1c0e:99ff:fe52:8e40/64 scope link valid_lft forever preferred_lft forever 4: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000 link/sit 0.0.0.0 brd 0.0.0.0 5: enx000acd26e2c8: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 00:0a:cd:26:e2:c8 brd ff:ff:ff:ff:ff:ff
Doch er bekommt so einen Namen enx000acd26e2c8 Das ist jetzt irgendwie neu. Wenn man es so haben will wie früher, also eth0 und eth1 usw., dann kann man das einstellen.
sudo nano /boot/extlinux/extlinux.config
Ausgabe
timeout 10 menu title select kernel label kernel-4.18.0-rc5-1052-ayufan-gd1b8f36378ff kernel /boot/vmlinuz-4.18.0-rc5-1052-ayufan-gd1b8f36378ff initrd /boot/initrd.img-4.18.0-rc5-1052-ayufan-gd1b8f36378ff devicetreedir /boot/dtbs/4.18.0-rc5-1052-ayufan-gd1b8f36378ff append rw panic=10 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 root=LABEL=linux-root rootwait rootfstype=ext4 net.ifnames=0 biosdevname=0 label kernel-4.18.0-rc5-1052-ayufan-gd1b8f36378ff-memtest kernel /boot/vmlinuz-4.18.0-rc5-1052-ayufan-gd1b8f36378ff initrd /boot/initrd.img-4.18.0-rc5-1052-ayufan-gd1b8f36378ff devicetreedir /boot/dtbs/4.18.0-rc5-1052-ayufan-gd1b8f36378ff append rw panic=10 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 root=LABEL=linux-root rootwait rootfstype=ext4 memtest label kernel-4.4.132-1081-rockchip-ayufan-g50be7e64a779 kernel /boot/vmlinuz-4.4.132-1081-rockchip-ayufan-g50be7e64a779 initrd /boot/initrd.img-4.4.132-1081-rockchip-ayufan-g50be7e64a779 devicetreedir /boot/dtbs/4.4.132-1081-rockchip-ayufan-g50be7e64a779 append rw panic=10 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 root=LABEL=linux-root rootwait rootfstype=ext4 label kernel-4.4.132-1081-rockchip-ayufan-g50be7e64a779-memtest kernel /boot/vmlinuz-4.4.132-1081-rockchip-ayufan-g50be7e64a779 initrd /boot/initrd.img-4.4.132-1081-rockchip-ayufan-g50be7e64a779 devicetreedir /boot/dtbs/4.4.132-1081-rockchip-ayufan-g50be7e64a779 append rw panic=10 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 root=LABEL=linux-root rootwait rootfstype=ext4 memtest label kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524 kernel /boot/vmlinuz-4.4.132-1075-rockchip-ayufan-ga83beded8524 initrd /boot/initrd.img-4.4.132-1075-rockchip-ayufan-ga83beded8524 devicetreedir /boot/dtbs/4.4.132-1075-rockchip-ayufan-ga83beded8524 append rw panic=10 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 root=LABEL=linux-root rootwait rootfstype=ext4 label kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524-memtest kernel /boot/vmlinuz-4.4.132-1075-rockchip-ayufan-ga83beded8524 initrd /boot/initrd.img-4.4.132-1075-rockchip-ayufan-ga83beded8524 devicetreedir /boot/dtbs/4.4.132-1075-rockchip-ayufan-ga83beded8524 append rw panic=10 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 root=LABEL=linux-root rootwait rootfstype=ext4 memtest
Beim label "label kernel-4.18.0-rc5-1052-ayufan-gd1b8f36378ff" habe ich am Ende der Zeile append folgendes ergänzt
net.ifnames=0 biosdevname=0
Abspeichern, rebooten und die Namen passen.
rock64@rockpro64v2_1:~$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 3a:05:18:25:26:6f brd ff:ff:ff:ff:ff:ff 3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 1e:0e:99:52:8e:40 brd ff:ff:ff:ff:ff:ff inet 192.168.3.208/24 brd 192.168.3.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::1c0e:99ff:fe52:8e40/64 scope link valid_lft forever preferred_lft forever 4: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000 link/sit 0.0.0.0 brd 0.0.0.0 5: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 00:0a:cd:26:e2:c8 brd ff:ff:ff:ff:ff:ff
Thank you evilbunny !
-
-
-
-
Rock64 and RockPro64 ayufan’s packages
Angeheftet ROCKPro64 -
-
-
Benchmark Mainline 4.17.0-rc6
Verschoben Archiv -
bionic-containers-rockpro64
Verschoben Linux