1、编辑 vi /etc/sysctl.conf

2、添加 net.ipv4.ip_forward=1

3、重启network服务 systemctl restart network