Bugzilla – Bug 1214191
cannot disable IPv6 persistent
Last modified: 2023-10-11 19:05:05 UTC
Created attachment 868766 [details] yast logs check at first: rpi4mb:~ # 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 proto kernel_lo valid_lft forever preferred_lft forever 2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether dc:a6:32:61:23:d8 brd ff:ff:ff:ff:ff:ff inet 192.168.8.148/24 brd 192.168.8.255 scope global dynamic noprefixroute end0 valid_lft 42767sec preferred_lft 42767sec inet6 ddc2:9f5e:9e08::8823/128 scope global dynamic noprefixroute valid_lft 42771sec preferred_lft 42771sec inet6 ddc2:9f5e:9e08:0:b68c:4f73:974b:22b9/64 scope global temporary dynamic valid_lft 4556sec preferred_lft 4556sec inet6 ddc2:9f5e:9e08:0:af7a:2fda:16bd:2985/64 scope global dynamic mngtmpaddr noprefixroute valid_lft 4556sec preferred_lft 4556sec inet6 fe80::a365:bf94:1892:25c5/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether fe:18:92:a6:4d:30 brd ff:ff:ff:ff:ff:ff permaddr dc:a6:32:61:23:da rpi4mb:~ # ping heise.de PING heise.de(redirector.heise.de (2a02:2e0:3fe:1001:302::)) 56 data bytes ^C --- heise.de ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1012ms In the file /etc/sysctl.conf add the following lines: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 rpi4mb:~ # sysctl -p net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 rpi4mb:~ # 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 2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether dc:a6:32:61:23:d8 brd ff:ff:ff:ff:ff:ff inet 192.168.8.148/24 brd 192.168.8.255 scope global dynamic noprefixroute end0 valid_lft 42676sec preferred_lft 42676sec 3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether fe:18:92:a6:4d:30 brd ff:ff:ff:ff:ff:ff permaddr dc:a6:32:61:23:da -- so far it looks good, ipv6 got disabled, but after reboot ipv6 got enabled again. it won't change even I disable ipv6 for network device via yast network.
I tested this on RPi 4
actually I have same issue on x86_64.
(In reply to Zaoliang Luo from comment #2) > actually I have same issue on x86_64. Are you using yast or sysctl on x86? Can you list the steps for x86?
(In reply to Santiago Zarate from comment #3) > (In reply to Zaoliang Luo from comment #2) > > actually I have same issue on x86_64. > > Are you using yast or sysctl on x86? > > Can you list the steps for x86? I use sysctl, same steps as I provided as on RPi.
I spent sometime to compare with sles 15sp5 and current sles 15 snapshot, there is no issue so far. So this issue happens at moment on Tumbleweed.
Report here /sbin/sysctl -a --pattern '^net.ipv6.*.disable_ipv6' after (re)boot ... beside this systemd uses its own sysctl known as systemd-sysctl (8) ... therfore the link find /usr/lib/sysctl.d/ -type l -ls 1570460 0 lrwxrwxrwx 1 root root 24 Jul 4 15:59 /usr/lib/sysctl.d/99-sysctl.conf -> ../../../etc/sysctl.conf should exist as otherwise /etc/sysctl.conf is ignored by systemd
(In reply to Zaoliang Luo from comment #0) > In the file /etc/sysctl.conf add the following lines: > > net.ipv6.conf.all.disable_ipv6 = 1 > net.ipv6.conf.default.disable_ipv6 = 1 > net.ipv6.conf.lo.disable_ipv6 = 1 Please read the comment in that file before deleting/overwriting it. /etc/sysctl.conf should not be used on Tumbleweed and SLES15! So nothing new, but common best practice since many, many years. Please fix your setup, test again and if it is still failing, report here.
checked /usr/lib/sysctl.d/99-sysctl.conf and verified this on Tumbleweed, thanks!
This is weird, it is not working on my Tumbleweed with Network-Manager(wifi). zaoliang@dell-5320:~> 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 2: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 9c:fc:e8:d1:c2:9d brd ff:ff:ff:ff:ff:ff altname wlp0s20f3 inet 192.168.8.128/24 brd 192.168.8.255 scope global dynamic noprefixroute wlo1 valid_lft 43192sec preferred_lft 43192sec inet6 fe80::c72c:3d4:8466:ddf4/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: enp57s0u1u4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether 70:b5:e8:8c:2c:c6 brd ff:ff:ff:ff:ff:ff 4: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 72:51:a1:17:f8:0c brd ff:ff:ff:ff:ff:ff zaoliang@dell-5320:~> find /usr/lib/sysctl.d/ -type l -ls 531891 4 lrwxrwxrwx 1 root root 24 Oct 9 11:11 /usr/lib/sysctl.d/99-sysctl.conf -> ../../../etc/sysctl.conf zaoliang@dell-5320:~> cat /usr/lib/sysctl.d/99-sysctl.conf #### # # To disable or override a distribution provided file just place a # file with the same name in /etc/sysctl.d/ # # See sysctl.conf(5), sysctl.d(5) and sysctl(8) for more information # #### net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 zaoliang@dell-5320:~> cat /etc/os-release NAME="openSUSE Tumbleweed" # VERSION="20231010" ID="opensuse-tumbleweed" ID_LIKE="opensuse suse" VERSION_ID="20231010" PRETTY_NAME="openSUSE Tumbleweed" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:tumbleweed:20231010" BUG_REPORT_URL="https://bugzilla.opensuse.org" SUPPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org" DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed" LOGO="distributor-logo-Tumbleweed"
please give a comment on https://bugzilla.suse.com/show_bug.cgi?id=1214191#c9 thanks!