错误:
解决:
cat /etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv4.tcp_syncookies = 1net.ipv4.tcp_tw_recycle = 1重启network:
systemctl restart network
验证:
sysctl net.ipv4.ip_forward
如果返回为“net.ipv4.ip_forward = 1”则表示成功了
本文共 264 字,大约阅读时间需要 1 分钟。
错误:
解决:
cat /etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv4.tcp_syncookies = 1net.ipv4.tcp_tw_recycle = 1重启network:
systemctl restart network
验证:
sysctl net.ipv4.ip_forward
如果返回为“net.ipv4.ip_forward = 1”则表示成功了
转载于:https://www.cnblogs.com/fuhai0815/p/9230590.html