修改 sysctl 以支持IPv6

Signed-off-by: 秋刀狐狸 <9463297+callmer@user.noreply.gitee.com>
This commit is contained in:
秋刀狐狸
2022-09-06 04:01:54 +00:00
committed by Gitee
parent 90c5f696e7
commit 5c55801cb0
+1 -5
View File
@@ -166,16 +166,12 @@ ip a
sudo nano /etc/sysctl.conf
```
在配置文件末尾输入以下内容,注意命令中间的空格
**说明:如果需要使用 `IPv6` ,则去掉 `net.ipv6.conf.all.disable_ipv6 = 1` 项。**
在配置文件末尾输入以下内容,注意命令中间的空格
```bash
net.core.default_qdisc = fq_codel
net.ipv4.tcp_congestion_control = bbr
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv4.tcp_fastopen = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_notsent_lowat = 131072