2018年8月22日星期三

Ubuntu 16.04 开启 BBR

转自于:

https://imtx.me/archives/2379.html#comment-33302

首先SSH连接ubuntu 16.04,敲入
sudo apt-get install linux-generic-hwe-16.04
安装好后重启,输入:
uname -a
看看是不是变成 4.10 或更新的内核
Linux hostname 4.10.0-33-generic

为 Ubuntu 16.04 启用 BBR

开启新方式:

敲入
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
启动BBR。


输入
sysctl net.core.default_qdisc
显示fq

输入
lsmod | grep bbr
返回值有 tcp_bbr 模块

即说明 bbr 已启动。




------------------------------------旧方式---------------------------------------------------------
ssh一行行输入:

sudo modprobe tcp_bbr
echo "tcp_bbr" | sudo tee -a /etc/modules-load.d/modules.conf
echo "net.core.default_qdisc=fq" | sudo tee -a /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
执行完这几条指令后,再用 sysctl net.ipv4.tcp_congestion_control 验证一下,看到返回结果是:
net.ipv4.tcp_congestion_control = bbr
It works!

没有评论:

发表评论

openwrt在线编译 插件名字查找

openwrt在线编译 https://firmware-selector.staging.immortalwrt.org/ 插件名字查找 https://downloads.staging.immortalwrt.org/releases/23.05.1/packages/x8...