安装kvm虚拟机时发现虚拟机没网,原来是未开启核心路由转发 临时开启 echo 1 > /proc/sys/net/ipv4/ip_forward 永久开启写入/etc/sysctl.conf 转载于:https://blog.51cto.com/14012942/2298404