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

Steven Ellis steven.ellis at bulletin.net
Mon Nov 30 03:15:17 UTC 2009

Tait Clarridge wrote:
> 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?
Not quite what I'm after.

My issue is I can't see any way to bring up NAT guests unless they are
using a ethernet interface that has a address for the host OS.

eth0 - Host OS Traffic only
eth1 - NAT traffic for any guests I don't want to bridge
eth2 - Bridge traffic zone 1
eth3 - Bridge traffic zone 2

Setting up eth0/2/3 is ok, but eth1 is the issue.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos-virt/attachments/20091130/f16a353c/attachment.html 

More information about the CentOS-virt mailing list