开启内核转发命令: echo 1 > /proc/sys/net/ipv4/ip_forward 查看开启转态: cat /proc/sys/net/ipv4/ip_forward 结果,1为开启,0为关闭