Debian 11.11 BBR Ultimate Guide: Manually Write Parameters into /etc/sysctl.conf and Keep Them After Reboot

Rey Posted on 18 days ago 35 Views


Most tutorials only tell you to “append the parameters to /etc/sysctl.conf,” but they never explain where to put them, how to format them, or how to recover if you mess up. This guide is written from a plain-human point of view—no copy-paste black magic, just clear steps to get BBR running on Debian 11.11 and surviving every reboot.

1. Backup First—Because Murphy’s Law Loves Sysctl

# Create a dated backup
sudo cp /etc/sysctl.conf /etc/sysctl.conf.bak.$(date +%F)

If anything goes sideways, restore with one command:

sudo mv /etc/sysctl.conf.bak.YYYY-MM-DD /etc/sysctl.conf

2. Open the File with Your Favorite Editor

# nano squad
sudo nano /etc/sysctl.conf

# vim squad
sudo vim /etc/sysctl.conf

3. Add BBR Parameters at the Bottom

Scroll to the end, insert a blank line for readability, then add:

# Enable BBR congestion control
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr

Formatting tips:

  • Keep spaces around the equal sign; Debian’s sysctl is picky.
  • Do NOT prefix these lines with #; that would comment them out.

4. Save & Exit

  • nano: Ctrl+O → Enter → Ctrl+X
  • vim: Esc:wq → Enter

5. Apply Changes Immediately—No Reboot Required

sudo sysctl -p

If you see the two new lines echoed back, the kernel just swallowed them.

6. Verify They’re Actually Working

# Check active congestion algorithm
cat /proc/sys/net/ipv4/tcp_congestion_control
# Expected output: bbr

# Check default queuing discipline
cat /proc/sys/net/core/default_qdisc
# Expected output: fq

7. Reboot & Double-Check Persistence

sudo reboot

After the machine comes back up, re-run the two cat commands above. Still bbr + fq? Perfect—permanently written.

8. Quick Recovery (If You Accidentally Break Something)

# Restore backup
sudo cp /etc/sysctl.conf.bak.YYYY-MM-DD /etc/sysctl.conf
# Reload settings
sudo sysctl -p

9. One-Click Bash Script (Optional)

#!/bin/bash
# Append BBR parameters and reload
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
echo "BBR parameters written to /etc/sysctl.conf and activated."

Save as bbr-debian.sh, chmod +x bbr-debian.sh, and run on any Debian 11.11 box.

10. TL;DR

Add two lines to /etc/sysctl.conf, reload once, and forget about it. Your Debian 11.11 server now enjoys BBR-accelerated network speeds across reboots.

This author has not provided a description.
Last updated on 2025-08-25