Hướng dẫn disable IPv6 trên CentOS

Để disable IPv6 trên hệ điều hành CentOS, vui lòng làm theo hướng dẫn bên dưới:

Cách 1: cấu hình trong file /etc/sysctl.conf

Thực hiện command:

vi /etc/sysctl.conf

Thêm 2 dòng:

net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

Sau đó thực hiện command:

sysctl -p

Cách 2: disable ngay, thực hiện 2 command bên dưới

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

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

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top
Gửi ngay cho tôi
vHost có quà cho bạn
ĐỪNG ĐI
Chỉ ưu tiên cho 10 khách hàng nhanh tay nhất
Day 3: High Availability WordPress website
Thời gian: 10:00 - 11:30 30/10/2025
Đăng ký ngay