[SATLUG] kvm networking

David Kowis dkowis at shlrm.org
Mon Jan 23 22:31:06 CST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/23/2012 05:04 PM, Bruce Dubbs wrote:
> #route -n Kernel IP routing table Destination     Gateway
> Genmask         Flags Metric Ref Use Iface 0.0.0.0
> 192.168.0.1  0.0.0.0         UG    0      0   0   eth0 10.0.2.15
> 0.0.0.0      255.255.255.255 UH    0      0   0   tap0 192.168.0.0
> 0.0.0.0      255.255.255.0   U     0      0   0   eth0
> 
> And the following on the client:
> 
> 192.168.0.22    0.0.0.0      255.255.255.255 UH    0      0   0
> tap0

Did you set your host as the default gateway on the client? I suspect
that packets are getting to your client, but not to your host.

Mentioned here:
http://www.linux-kvm.org/page/Networking#iptables.2Frouting

Clientside v2: Since your guest VM is not on the same subnet as your
host you have to add host, and then set the default gateway.

Hrm, wait, I'm assuming that your hosts' box is 192.168.0.22? Then
you've probably already got a route to the host. But you said that the
client has a gateway of 10.0.2.2. Try setting that to the IP of your
host box?

After this stuff, I'd check on tcpdump to see if packets are getting
one way but not the other. Just to make sure.

David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGcBAEBAgAGBQJPHjQKAAoJEMnf+vRw63ObYQIMAKHLMhI0lJIRJV1w9FH53nsi
fupeG+BtklwZjfr3CZSgYum1CBxMoeP+W5n2b7rKbrQi2ZtzR+6E9XrjiKhb4zoD
yE86ehvTHJ50zZSfwbQMvjEFG+FqfORpYvP+uf5tPijdrxG16BIcrCr1N0x0yDeH
7FMVg5ZWXR4ftucQpXKsthzKxZrRzyH921PoPzgAZF/HysROKsza4u9H/ToixtZy
4qry4c5CYzo1DJKKobBGHHLqMxbKaPw6CLb9YQiIlP58E7tm1EL5iCaBu75gUmr/
NQfTzo+M1QITCTNk8tOu4IDHMrCaYQdvbJXaZsUtAwWc85NffTrbcqrhp+o/VmZp
nu2/0rwOdrMNlAoQIQN0f1rH8pqaWmdW6crna9oD89qxQpdnIri9NOA5Y4byyLEk
hAAxA8rrH1wKMAThMthWxwqAwPmKuUu8IOkDwW5fNDHjtPTsRiXg31mO57kFM7dH
WnCsKFRd9rDWqz8n47eKukUrplMolkVkRA1tSTua2Q==
=l2ac
-----END PGP SIGNATURE-----


More information about the SATLUG mailing list