Skip to content

using IP6 can cause issues , and it is normally not needed unless you use the internet of things

to unbind ( = disable = true) : use sysctl command
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 && sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
both commands are required

or use : [ dit is waarschijnlijk enkel geldig gedurende de huidige user session ]
– disable : sudo sh -c ‘echo 1 > /proc/sys/net/ipv6/conf/wlp2s0//disable_ipv6’
– enable : sudo sh -c ‘echo 0 > /proc/sys/net/ipv6/conf/wlp2s0//disable_ipv6’

hierna network service herstarten
// ubuntu & co gebruiken de systemd network manager service , niet meer de (core?) service network
sudo systemctl restart systemd-networkd

On successful execution, the command output should return a result like :
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

check with ifconfig if the network adaptor in use is binded to both ip4 and ip6 or binded to ip4 only

important !

ipv6.disable_ipv6=1 : it prevents (?new) ipv6 address assignment
versus
ipv6.disable=1 : disable ipv6,

ok : net.ipv6.conf.eth0.disable_ipv6 = 1 net.ipv6.conf.eth0.ipv6.disable=1
nok : net.ipv6.conf.eth0.disable_ipv6=1

other info

net.ipv6.conf.$IFACE.disable_ipv6=1
=>
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
net.ipv6.conf.enp3s0f1.disable_ipv6 = 1 // lapwm

via command line : duration = session

disable permanently

 !  wiki.archlinux.org/index.php/IPv6#Disable_functionality
 >  network manager !
  • /etc/sysctl.conf
    - which sysctl.conf : not found ?
    - cat /etc/sysctl.conf
    - change /etc/sysctl.conf : sudo xed /etc/sysctl.conf
    - add line :
    net.ipv6.conf.eth0.disable_ipv6 = 1
    nok : net.ipv6.conf.enp3s0f1.ipv6.disable=1 net.ipv6.conf.all.ipv6.disable=1
    => error : sysctl: cannot stat /proc/sys/net/ipv6/conf/all/ipv6/disable: No such file or directory
    ok : net.ipv6.conf.all.disable_ipv6 = 1
    - apply the changes : sudo sysctl -p : this aplies the custom lines in /etc/sysctl.conf

  • /etc/hosts
    - all ipv6 is commented out in
    BUT : for some applications it’s mandatory to have IPv6 entry in /etc/hosts.
    - cat xed /etc/hosts
    - sudo xed /etc/hosts
    # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback # fe00::0 ip6-localnet # ff00::0 ip6-mcastprefix # ff02::1 ip6-allnodes # ff02::2 ip6-allrouters
    commented 4 lines , but not the first

restarted network
sudo systemctl restart systemd-networkd ==> everthing works fine , no ip6 & browsing is noticiable faster
reboot laptop :

See https://wiki.archlinux.org/index.php/IPv6#Disable_functionality

TODO : modify /mnt/data/SYS/scripts/scripts.bash/2.config/ enable / disable scripts with new info

but normally these scripts are no longer needed

disable ipv6 at the kernel level so that it gets never enabled

xed /etc/default/grub
find the line: GRUB_CMDLINE_LINUX=”“
change the line to GRUB_CMDLINE_LINUX=”ipv6.disable=1” (this will disable ipv6 completely)
alternatively, to leave the ipv6 stack functional but to disable assignment of ipv6 addresses you can use the following option instead:
GRUB_CMDLINE_LINUX=”ipv6.disable_ipv6=1”

run: sudo update-grub
and reboot to apply the changes.

#### dhcpcd

dhcpcd will continue to harmlessly attempt to perform IPv6 router solicitation.
To disable this, as stated in the dhcpcd.conf(5) man page, add the following to /etc/dhcpcd.conf:
noipv6rs
noipv6

cat: /etc/dhcpcd.conf: No such file or directory