cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

os:linux:network:disble-ipv6.html



Linux

IPv6 - How do I disable IPv6 on Linux?

Note

  • snmpnetstat does not show ipv6 addresses, routes, and services.


Check IPv6

# ip a |grep inet6
# ifconfig |grep inet6


RHEL/CentOS 7

/etc/sysctl.conf or /etc/sysctl.d/disableipv6.conf

# vi /etc/sysctl.conf
...
net.ipv6.conf.all.disable_ipv6 = 1
...

# sysctl -p

temporally

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6

or

sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1


RHEL/CentOS 5.X / 6.X

/etc/modprobe.conf or /etc/modprobe.d/ipv6.conf

options ipv6 disable=1


Ubuntu 16.04

$ sudo vi /etc/sysctl.conf
....
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
....
$ sudo sysctl -p



os/linux/network/disble-ipv6.html.txt ยท Last modified: 2017/06/02 by admin

Page Tools