Main Menu

Search

LINUX: How To Check If IPV6 Is Enabled Or Not

 Below commands can be executed

ip -6 addr >>>>>  displays output showing which interface has ipv6 enabled

ip -4 adds >>>>> displays output showing which interface has ipv6 enabled

Run below command to check if ipv6 is enabled at the system level

cat /sys/module/ipv6/parameters/disable

If the value is 0 in above command, then ipv6 is enabled, if it is 1 it is enabled.

To check if ipv6 is enabled at the interface level, below command can be used.

sysctl -a 2>/dev/null | grep disable_ipv6

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.enp0s3.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.virbr0.disable_ipv6 = 1
net.ipv6.conf.virbr0-nic.disable_ipv6 = 1


If the value is 1 it is disabled, if it is 0 it is enabled.

No comments:

Post a Comment