mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
修改 sysctl 以支持IPv6
Signed-off-by: 秋刀狐狸 <9463297+callmer@user.noreply.gitee.com>
This commit is contained in:
+1
-5
@@ -166,16 +166,12 @@ ip a
|
|||||||
sudo nano /etc/sysctl.conf
|
sudo nano /etc/sysctl.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
在配置文件末尾输入以下内容,注意命令中间的空格。
|
在配置文件末尾输入以下内容,注意命令中间的空格:
|
||||||
|
|
||||||
**说明:如果需要使用 `IPv6` ,则去掉 `net.ipv6.conf.all.disable_ipv6 = 1` 项。**
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
net.core.default_qdisc = fq_codel
|
net.core.default_qdisc = fq_codel
|
||||||
net.ipv4.tcp_congestion_control = bbr
|
net.ipv4.tcp_congestion_control = bbr
|
||||||
|
|
||||||
net.ipv6.conf.all.disable_ipv6 = 1
|
|
||||||
|
|
||||||
net.ipv4.tcp_fastopen = 1
|
net.ipv4.tcp_fastopen = 1
|
||||||
net.ipv4.tcp_syncookies = 1
|
net.ipv4.tcp_syncookies = 1
|
||||||
net.ipv4.tcp_notsent_lowat = 131072
|
net.ipv4.tcp_notsent_lowat = 131072
|
||||||
|
|||||||
Reference in New Issue
Block a user