[SOLVED] Upgraded to Debian Buster (presently stable release) and lost networking
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
root@RadioRoom:/home/arv# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether d0:50:99:3c:48:ae brd ff:ff:ff:ff:ff:ffroot@RadioRoom:/home/arv# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether d0:50:99:3c:48:ae brd ff:ff:ff:ff:ff:ff
inet 192.168.0.8/24 brd 192.168.0.255 scope global dynamic noprefixroute eth0
valid_lft 57545sec preferred_lft 57545sec
inet6 fe80::d250:99ff:fe3c:48ae/64 scope link noprefixroroot@RadioRoom:/home/arv# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether d0:50:99:3c:48:ae brd ff:ff:ff:ff:ff:ff
inet 192.168.0.8/24 brd 192.168.0.255 scope global dynamic noprefixroute eth0
valid_lft 57545sec preferred_lft 57545sec
inet6 fe80::d250:99ff:fe3c:48ae/64 scope link noprefixroute
valid_lft forever preferred_lft forever
root@RadioRoom:/home/arv# ute
valid_lft forever preferred_lft forever
root@RadioRoom:/home/arv#
inet 192.168.0.8/24 brd 192.168.0.255 scope global dynamic noprefixroute eth0
valid_lft 57545sec preferred_lft 57545sec
inet6 fe80::d250:99ff:fe3c:48ae/64 scope link noproot@RadioRoom:/home/arv# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00root@RadioRoom:/home/arv# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
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 root@RadioRoom:/home/arv# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether d0:50:99:3c:48:ae brd ff:ff:ff:ff:ff:ff
inet 192.168.0.8/24 brd 192.168.0.255 scope global dynamic noprefixroute eth0
valid_lft 57545sec preferred_lft 57545sec
inet6 fe80::d250:99ff:fe3c:48ae/64 scope link noprefixroute
valid_lft forever preferred_lft forever
root@RadioRoom:/home/arv#
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether d0:50:99:3c:48:ae brd ff:ff:ff:ff:ff:ff
inet 192.168.0.8/24 brd 192.168.0.255 scope global dynamic noprefixroute eth0
valid_lft 57545sec preferred_lft 57545sec
inet6 fe80::d250:99ff:fe3c:48ae/64 scope link noprefixroute
valid_lft forever preferred_lft forever
root@RadioRoom:/home/arv#
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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether d0:50:99:3c:48:ae brd ff:ff:ff:ff:ff:ff
inet 192.168.0.8/24 brd 192.168.0.255 scope global dynamic noprefixroute eth0
valid_lft 57545sec preferred_lft 57545sec
inet6 fe80::d250:99ff:fe3c:48ae/64 scope link noprefixroute
valid_lft forever preferred_lft forever
root@RadioRoom:/home/arv# refixroute
valid_lft forever preferred_lft forever
root@RadioRoom:/home/arv#
Makes no sense to me. What is a "valid_lft"? What happened to IP-V4?
Should I go ahead with the system mods suggested by "fireat"?
Or, is there a problem with drivers for the Realtek Ethernet board as suggested by Thinknix?
My last post was result using "ip addr" with a boot to the old kernel (I got confused).
This post shows "ip addr" output using the newest kernel with Debian Buster release.
Code:
arv@RadioRoom:~$ su
Password:
root@RadioRoom:/home/arv# ip addr
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
root@RadioRoom:/home/arv# ping localhost
PING localhost(localhost (::1)) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.036 ms
64 bytes from localhost (::1): icmp_seq=2 ttl=64 time=0.042 ms
64 bytes from localhost (::1): icmp_seq=3 ttl=64 time=0.042 ms
^C
--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 34ms
rtt min/avg/max/mdev = 0.036/0.040/0.042/0.003 ms
root@RadioRoom:/home/arv# ping 192.168.0.1
connect: Network is unreachable
root@RadioRoom:/home/arv#
So, is the problem with naming of port interface, or is it with Realtek drivers?
Or...is it something else? Is the newest kernal not usable with the Buster release?
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d0:50:99:3c:48:ae", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
arv@RadioRoom:~$
Does this indicate that the r8169 driver is being used, or that that driver is needed but not being used?
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d0:50:99:3c:48:ae", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
arv@RadioRoom:~$
Does this indicate that the r8169 driver is being used, or that that driver is needed but not being used?
it looks like when that file was generated it was the r8169 driver that was being used
comment out the SUBSYSTEM line ( use the sed or edit manually by starting line with #)
the worst that can happen is you will lose net on the old kernel, but we just need to change teh file back to what it was
after a reboot you may see enp instead of eth when using "ip address" command
root@RadioRoom:/home/arv# cat /etc/udev/rules.d/70*
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d0:50:99:3c:48:ae", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="enp"
root@RadioRoom:/home/arv#
root@RadioRoom:/home/arv# ip addr
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
root@RadioRoom:/home/arv#
root@RadioRoom:/home/arv# ping 192.168.0.1
connect: Network is unreachable
root@RadioRoom:/home/arv#
Okay...NAME="eth" changed to NAME="enp". Nothing seems to have changed.
Still no networking using latest kernel and Debian Buster.
This change to NAME="enp" made no change in the old kernel...networking there still works fine.
root@RadioRoom:/home/arv#
root@RadioRoom:/home/arv# cat ./test_results
WITH OLD KERNEL: Version 4.19.0-5 AMD64
root@RadioRoom:/home/arv# lspci -k|grep -A3 Ethernet\ con
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 11)
Subsystem: ASRock Incorporation Motherboard (one of many)
Kernel driver in use: r8168
Kernel modules: r8168
root@RadioRoom:/home/arv#
============================
WITH NEW KERNEL: Version 4.9.0-5 AMD64
root@RadioRoom:/home/arv# lspci -k|grep -A3 Ethernet\ con
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 11)
Subsystem: ASRock Incorporation Motherboard (one of many)
Kernel driver in use: r8168
Kernel modules: r8168
root@RadioRoom:/home/arv#
============================
Cat of /etc/udev/rules.d/70* Now modified to show KERNEL="enp1s0" and NAME="eth0"
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="d0:50:99:3c:48:ae", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="enp1s0", NAME="eth0"
NETWORKING WITH NEW KERNAL: It works!, It works! 8-) 8-)
root@RadioRoom:/home/arv# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.463 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.425 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.360 ms
^C
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 56ms
rtt min/avg/max/mdev = 0.360/0.416/0.463/0.042 ms
root@RadioRoom:/home/arv# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=18.7 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=19.0 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=18.6 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 5ms
rtt min/avg/max/mdev = 18.612/18.783/19.044/0.187 ms
root@RadioRoom:/home/arv#
Success at last. Thank you, thank you. Seems that the Kernal="enp1s0" change fixed everything.
Maybe a check could be put in the install script to test for this and automatically fix it if needed.
Thanks again. I could not have done it without your help.
OOPS! I spoke to quickly. After a reboot on the 4.9.0-5 AMD64 kernal, networking is still broken.
Present guess is that I was confused about which kernal I was actually running. 8-(
THIS IS ON THE OLD KERNAL (running Debian 10/Buster but with the old kernal)
Networking works on this kernal.
yeah, to be expected ( if I understand correctly )
the "new" udev rules are a just a hack to keep your network setup scripts happy
they will not work on the older kernel since udev fails to setup the network device ( no enp1s0 to rename ).
you don't need that udevadm one tbh,
we already know you need to replace eth0 with enp1s0
so for each file found with that rgrep
copy line and replace eth0 with enp1s0
comment out the old line, and comment on why
# 2019-08-30 pre-buster net device eth0 now enp1s0
and comment out the udev rule ( annotate that also )
I can't think of any reason would would need to boot the old kernel
It will probably be auto removed in a few months due to kernel updates.
It looks like I should do this myself, I still have the old /etc/udev/rules.d/70-persistent-net.rules , and I'm on Debian Sid.. It will probably break at some point in the future
Note you may need to fix other configs,
might be worth running that rgrep on ~/.config
Sorry about the delay.
After several days of peeking poking into why the latest kernal (4.19.0-5 AMD-64)and Debian-10 (Buster) breaks Debian-10, I have come to the conclusion that this latest kernal for Debian is just not compatible with much of the newer and faster hardware available from popular vendors. For this reason I decided to modify Grub-2 so that it boots to the prior kernal (4.9.0-9 AMD-64) and simply ignore the defective kernal release. Maybe later when a new kernal is released for Debian I can retry it to see if the problem has been fixed. Admittedly this solution is just kicking-the-can-down-the-road but it seems to be the best solution for right now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.