PINE64
how to disable ipv6 at kernel level with towboot? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: how to disable ipv6 at kernel level with towboot? (/showthread.php?tid=18389)



how to disable ipv6 at kernel level with towboot? - vusra - 06-19-2023

Adding  U_BOOT_PARAMETERS="ipv6.disable=1"   to /etc/default/u-boot        and run  u-boot-update use to work before tow boot.   What is the new methodology to pass  ipv6.disable=1 to kernel ?


RE: how to disable ipv6 at kernel level with towboot? - zetabeta - 06-19-2023

(06-19-2023, 03:13 PM)vusra Wrote: Adding  U_BOOT_PARAMETERS="ipv6.disable=1"   to /etc/default/u-boot        and run  u-boot-update use to work before tow boot.   What is the new methodology to pass  ipv6.disable=1 to kernel ?

i cannot be certain about kernel parameters with bootloader, but syntax should be same, just inserting the string input is little different, probably different place.

however, you could try sysctl.conf, this happens during boot of course, so it's not immediate.

Code:
# location: /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1



RE: how to disable ipv6 at kernel level with towboot? - vusra - 07-09-2023

superior method    is  edit /usr/share/u-boot-menu/conf.d/mobian.conf

change line
Code:
U_BOOT_PARAMETERS="consoleblank=0 loglevel=7 ro quiet splash plymouth.ignore-serial-consoles vt.global_cursor_default=0"
to
Code:
U_BOOT_PARAMETERS="consoleblank=0 loglevel=7 ro quiet splash plymouth.ignore-serial-consoles vt.global_cursor_default=0 ipv6.disable=1"

and run
Code:
sudo u-boot-update

edits to /usr/share/u-boot-menu/conf.d/mobian.conf can be undone in future rupdates


RE: how to disable ipv6 at kernel level with towboot? - vusra - 10-04-2024

How do we perform this in a separate conf.d file to obviate overwrites when /usr/share/u-boot-menu/conf.d/mobian.conf is updated by package manager?