kvm虚拟机bridge方式,只能ping通宿主机,不能ping通其他ip的解决方法
在宿主机上执行:
修改/etc/sysctl.conf,加入
net.ipv4.tcp_syncookies = 1
net.core.somaxconn = 1024
net.ipv4.tcp_fin_timeout = 10
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 0
net.ipv4.ip_forward = 1
执行sysctl -p

浙公网安备 33010602011771号