[CentOS-virt] Controlling allocation of ethernet devices and KVM

Fri Nov 27 03:16:53 UTC 2009
Tait Clarridge <tait at clarridge.ca>

On Fri, 2009-11-27 at 14:02 +1300, Steven Ellis wrote:
> Running Centos 5.4 with KVM on a Dell R610 server and I'd like to
> control which of the four ethernet interfaces are used for specific
> tasks
> 
> My ideal configuration would be
> 
> eth0 - Host traffic only, no virtual guests. Used for guest mirroring
> and management.
> eth1 - NAT guest traffic only, no address for local machine and in
> some environments in the same zone as eth0
> eth2/3 - Allocated to two different bridge devices which might be in
> separate network zones.
> 
> The configuration of eth2/3 is fairly simple, my issue is restricting
> any NAT traffic to a specific ethernet devices, and ideally one with
> no local IP.
> 
> Any ideas?
> 
> Steve
> 

So if I have this right, at the basic level you wish to have:

- One interface for Host machine
- Multiple interfaces for guest traffic

If your environment supports VLANs (802.1Q), might I suggest a trunk
port on eth1 split up into different bridges to have the KVM guests go
through to get on different VLANs/address spaces.

This is what I currently do for Xen and it works great. What kind of
network setup to you have?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20091126/70bdabb1/attachment-0004.sig>