Skip to content

Instantly share code, notes, and snippets.

@trojblue
Last active January 19, 2021 19:14
Show Gist options
  • Save trojblue/85cc4d91406a8d7ffee36e730767a95c to your computer and use it in GitHub Desktop.
Save trojblue/85cc4d91406a8d7ffee36e730767a95c to your computer and use it in GitHub Desktop.
Enabling CentOS 7 BBR in 4 lines

install newest kernel & bbr:

sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org && sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.el repo.noarch.rpm && sudo yum --enablerepo=elrepo-kernel install kernel-ml -y &&sudo egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \' 

check bbr ranking on boot list:

 sudo egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'

switch to bbr & reboot:

sudo grub2-set-default <rank>
reboot

bonus: after reboot, check bbr is enabled

sudo sysctl -n net.ipv4.tcp_congestion_control && lsmod | grep bbr

↑ It should show 2 lines with text bbr on each line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment