July 2, 2015

Disable IPv6 on Linux

Check IPv6 is Enabled/Disabled

[mitesh@Matrix ~]$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6
NOTE! If above command return
1 means ipv6 is completely disabled
0 means ipv6 is not completely disabled

Disable IPv6

Temporary Disable IPv6

[mitesh@Matrix ~]$ echo "1" > /proc/sys/net/ipv6/conf/all/disable_ipv6
NOTE!: Above command disable IPv6 untill your system reboot.

Permantly Disable IPv6

  • Open /etc/sysctl.conf file and add following lines
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
  • Now run following command
[mitesh@Matrix ~]$ sudo sysctl -p

Related Posts:

  • Hướng dẫn resize phân vùng /tmp Trong bài viết này, Hostvn sẽ hướng dẫn các bạn thay đổi dung lượng phần vùng /tmp thông qua scripts của cPanel. Các bạn làm tuần tự theo các bước dưới đây để tránh gặp lỗi trong quá trình resize. 1. Đầu tiên… Read More
  • Hướng dẫn reset password cho VPS Linux Có thể vì 1 nguyên nhân nào đó, chủ quan hay khách quan khiến thông tin quản trị hiện tại của bạn không kết nối SSH đến server VPS linux đặt tại hệ thống của chúng tôi. Hoặc bạn không thể nhớ chính xác thông tin q… Read More
  • 50 UNIX / Linux Sysadmin Tutorials I’ve collected 50 UNIX / Linux sysadmin related tutorials that we’ve posted so far. This is lot of reading. Bookmark this article for your future reference and read it whenever you get free time. Disk to disk backup using d… Read More
  • 10 quick tar command examples to create/extract archives in Linux Tar command on Linux The tar (tape archive) command is a frequently used command on linux that allows you to store files into an archive. The commonly seen file extensions are .tar.gz and .tar.bz2 which is a… Read More
  • Xem lượng RAM đã dùng trên Linux đúng cách Có rất nhiều bạn phàn nàn vấn đề rằng VPS luôn sử dụng full RAM, lượng RAM trống lúc nào cũng rất ít. Tuy nhiên, các bạn đã xem thông tin RAM đúng cách chưa? Hãy tham khảo bài viết bên dưới. Để xem lượng RAM đã sử dụng chún… Read More

0 comments:

Post a Comment