WARNING: IPv4 forwarding is disabled. Networking will not work.
vi /etc/sysctl.conf
# 新增一行
net.ipv4.ip_forward=1
# 重启network服务
systemctl restart network
# 查看是否修改成功
sysctl net.ipv4.ip_forward
(返回为“net.ipv4.ip_forward = 1”,表示成功)
WARNING: IPv4 forwarding is disabled. Networking will not work.
vi /etc/sysctl.conf
# 新增一行
net.ipv4.ip_forward=1
# 重启network服务
systemctl restart network
# 查看是否修改成功
sysctl net.ipv4.ip_forward
(返回为“net.ipv4.ip_forward = 1”,表示成功)