参考链接:忘了


 


临时开启:命令

[root@localhost network-scripts]# echo 1 > /proc/sys/net/ipv4/ip_forward

image

 


永久开启:写入配置文件

image

source一下立即生效!