KVM/Bridge: No Route To Host

点点圈 提交于 2019-12-01 13:19:45

Also ensure that the kernel is configure for ip forwarding:

$ sudo sysctl -a | grep net.ipv4.ip_forward
net.ipv4.ip_forward = 1

It should have a value of 1, not 0. If needed, enable with these commands:

echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
sudo sysctl -p /etc/sysctl.conf

There are two ways :

* Using proxy tunnel to create a channel for host from guest : From guest run following command : ssh -L 2000:localhost_ip:2000 username@hostip

explore ssh man to get the inside.

* Difficult to setup, but proper configuration while running guest : follow http://www.cse.iitd.ernet.in/~prathmesh/random.html#Connecting_qemu_guest_to_real_network

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!