Cara mudah untuk menonaktifkan IPv6 di Linux (Debian, Fedora, Ubuntu, CentOS). Edit file /etc/sysctl.conf dibagian paling bawah tambahkan

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

agar perubahan tersebut diaplikasikan tanpa perlu restart, eksekusi

sysctl -p

Perubahan tersebut permanent, bila anda ingin mengaktifkan fitur IPv6 kembali hapus ketiga baris diatas.

Cara Verifikasi IPv6

Cara untuk mengetahui IPv6 sudah dinonaktifkan atau belum bisa dilihat dengan perintah ping

ping -6 -c5 google.com
# output
PING google.com(si-in-f100.1e100.net (2404:6800:4003:c04::64)) 56 data bytes
64 bytes from si-in-f100.1e100.net (2404:6800:4003:c04::64): icmp_seq=1 ttl=113 time=1.74 ms
64 bytes from si-in-f100.1e100.net (2404:6800:4003:c04::64): icmp_seq=2 ttl=113 time=1.80 ms
64 bytes from si-in-f100.1e100.net (2404:6800:4003:c04::64): icmp_seq=3 ttl=113 time=1.77 ms
64 bytes from si-in-f100.1e100.net (2404:6800:4003:c04::64): icmp_seq=4 ttl=113 time=2.03 ms
64 bytes from si-in-f100.1e100.net (2404:6800:4003:c04::64): icmp_seq=5 ttl=113 time=1.79 ms
 
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 11ms
rtt min/avg/max/mdev = 1.739/1.828/2.034/0.111 ms

pada contoh tersebut anda memiliki IPv6.

Bila anda tidak memiliki akses IPv6, hasilnya

ping -6 -c5 google.com
# output
ping: connect: Network is unreachable

Join the Conversation

1 Comment

Your email address will not be published. Required fields are marked *