All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sterling Windmill <sterling@ampx.net>
To: kvm <kvm@vger.kernel.org>
Subject: routing vs bridging with tap
Date: Sun, 7 Dec 2008 20:37:58 -0500 (EST)	[thread overview]
Message-ID: <289461627.1191228700278079.JavaMail.root@mail.ampx.net> (raw)

I'm playing with KVM for purposes of eventually deploying it into a hosting environment and am using tap devices for my guest networking.

I've routed a single IP to the tap device of a guest and enabled proxy_arp on the tap device used for the guest and the host's physical ethernet device.

Networking works fine inside of the guest in this configuration, but a side effect seems to be that when migrating this guest from one host to another, the guest holds arp cache entries which point to the old MAC address and cause issues with networking. After clearing the guest's arp table proper network behavior resumes on the new host. Unfortunately, this work around causes a loss in connectivity until the arp cache can be cleared and I won't have access to log into the guests and do this once my setup is in production.

I'm using routed tap devices instead of bridging the tap devices with the physical ethernet on the host because I have it in my mind that routing is better than bridging from a security and isolation standpoint when dealing with potentially untrusted guest virtual machines.

Am I causing myself unnecessary pain? Should I just bridge everything together? Any ideas?

Thanks in advance,
Sterling Windmill

                 reply	other threads:[~2008-12-08  1:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=289461627.1191228700278079.JavaMail.root@mail.ampx.net \
    --to=sterling@ampx.net \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.