Linux disable ipv6 arch linux

Arch Linux

I’ve been trying to disable IPV6 as I think it is making my connection slow. I have looked at the arch wiki (https://wiki.archlinux.org/index.php/IPv6#Disable_IPv6) for how to do this and it recommends adding a few lines to /etc/sysctl.d/40-ipv6.conf. The problem that I have is that that file is missing and when I add I create it and the recommended lines, I still get an IPV6 address. I have added these lines to it:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.enp1s0f0.disable_ipv6 = 1

The output from ifconfig looks like this:

enp3s0: flags=4163 mtu 1500
inet 192.168.1.180 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::7e7f:c4a0:f2b1:b023 prefixlen 64 scopeid 0x20
inet6 2a00:23c4:891b:8201:b95d:ff9f:4df1:cdd6 prefixlen 64 scopeid 0x0
ether fc:aa:14:0d:9a:39 txqueuelen 1000 (Ethernet)
RX packets 6697 bytes 3038492 (2.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6200 bytes 725617 (708.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

I don’t know really know where I’m going wrong, but if someone could explain that would be great. (Also I am using i3-gaps but I don’t think that’s relevant apart from the fact its sort of difficult to use the nm-applet)

Last edited by Liiht (2019-04-13 16:08:27)

Источник

Читайте также:  Get file name linux
Оцените статью
Adblock
detector