Ubuntu禁用ipv6 ( Disable IPv6 If your Internet is Working Slow in Ubuntu)

本文介绍如何通过禁用IPv6来提高Ubuntu及Linux Mint系统的网络速度。操作包括编辑sysctl.conf文件并重启设置,适用于Ubuntu 12.04及Linux Mint 13等版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Disable IPv6 If your internet is working Slow in Ubuntu 12.04 Precise Pangolin/Linux Mint 13/Any Ubuntu or Mint Version

Follow this to Disable IPv6, So we have to edit the sysctl.conf file.

To do this open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:

sudo gedit /etc/sysctl.conf

 

Now add these lines at the end of file:

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

  

Now Save sysctl.conf file and close.

 

ubuntu ipv6 disable


Enter following command to restart sysctrl settings:

sudo sysctl -p

 

Check IPv6 is disabled on Ubuntu Server

root@ip-10-48-234-13:/# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 12:31:3c:03:e9:fb brd ff:ff:ff:ff:ff:ff
inet 10.48.234.13/23 brd 10.48.235.255 scope global eth0
root@ip-10-48-234-13:/#

 

That's it, Enjoy

 

 

from: http://www.noobslab.com/2012/05/disable-ipv6-if-your-internet-is.html

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值