IPv6 disable

Some users might want to disable IPv6 on the system (if it’s not disabled in the image release). The best way to disable it on router. Nevertheless here is how to do it for one host by executing the following one-liner.

This adds ipv6.disable=1 to GRUB options, updates it and reboots

sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="text consoleblank=0 intel_pstate=disable net.ifnames=0 ipv6.disable=1 pci=noaer iommu=soft amdgpu.vm_fragment_size=9 radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1"/g' /etc/default/grub && update-grub && reboot

Run this from terminal or from web “Linux Shell”.

1 Like

This is great. Does this persist over Hive OS upgrades?

How to enable IPv6 ?

My VPN provider told me it’s probably the reason for my failed connection attempt.

2021-05-10 19:12:03 us=853845 sitnl_send: rtnl: generic error (-95): Operation not supported 2021-05-10 19:12:03 us=853857 ROUTE6: default_gateway=UNDEF 2021-05-10 19:12:03 us=855415 TUN/TAP device tun0 opened 2021-05-10 19:12:03 us=855620 do_ifconfig, ipv4=1, ipv6=1 2021-05-10 19:12:03 us=855705 /sbin/ip link set dev tun0 up mtu 1500 2021-05-10 19:12:03 us=858197 /sbin/ip link set dev tun0 up 2021-05-10 19:12:03 us=865637 /sbin/ip addr add dev tun0 10.3.4.242/24 2021-05-10 19:12:03 us=869028 /sbin/ip link set dev tun0 up mtu 1500 2021-05-10 19:12:03 us=870873 /sbin/ip link set dev tun0 up 2021-05-10 19:12:03 us=872128 /sbin/ip -6 addr add fdbf:1d37:bbe0:0:48:4:0:f2/112 dev tun0 RTNETLINK answers: Operation not supported 2021-05-10 19:12:03 us=873863 Linux ip -6 addr add failed: external program exited with error status: 2 2021-05-10 19:12:03 us=873891 Exiting due to fatal error root@ETH_Test:/etc/openvpn# exit

How to enable IPv6 ? Or is there another root cause ?

BR