vi /usr/lib/sysctl.d/00-system.conf net.ipv4.ip_forward=1 systemctl restart network 或者 service network restart