no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | linux:networking:disable_ipv6 [2019/10/31 09:05] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Disable IPv6 on Ubuntu ====== | ||
+ | ===== Method 1: sysctl ===== | ||
+ | < | ||
+ | Append to end of file | ||
+ | < | ||
+ | # IPv6 disabled | ||
+ | net.ipv6.conf.all.disable_ipv6 = 1 | ||
+ | net.ipv6.conf.default.disable_ipv6 = 1 | ||
+ | net.ipv6.conf.lo.disable_ipv6 = 1 | ||
+ | </ | ||
+ | |||
+ | Save the file and close it. Restart sysctl with | ||
+ | < | ||
+ | Run | ||
+ | < | ||
+ | If it reports ‘1′ means you have disabled IPV6. | ||
+ | |||
+ | or | ||
+ | |||
+ | Check the output of ifconfig again and there should be no ipv6 address | ||
+ | < | ||
+ | ifconfig | ||
+ | eth0 Link encap: | ||
+ | inet addr: | ||
+ | UP BROADCAST RUNNING MULTICAST | ||
+ | RX packets: | ||
+ | TX packets:965 errors:0 dropped:0 overruns:0 carrier:0 | ||
+ | ..... | ||
+ | </ | ||
+ | If it does not work, then try rebooting the system and check ifconfig again. | ||
+ | |||
+ | ===== Method 2: grub ===== | ||
+ | < | ||
+ | Look for the line containing " | ||
+ | < | ||
+ | The same can also be added to the value of the variable named " | ||
+ | < | ||
+ | Reboot. Now ipv6 should be disabled. |