All of lore.kernel.org
 help / color / mirror / Atom feed
* Do I set up separate bridges for each guest?
@ 2009-10-20  2:37 Neil Aggarwal
  2009-10-20  8:20 ` Dor Laor
  0 siblings, 1 reply; 4+ messages in thread
From: Neil Aggarwal @ 2009-10-20  2:37 UTC (permalink / raw)
  To: kvm

Hello:

I am installing KVM on top of CentOS 5.4 so I can
have two guests running on my host. I would like to 
have the host and guests accessible from my
network.

Do I set up separate bridges for each guest or would
they somehow be shared?

If I set up separate bridges, I think I need to do
in /etc/sysconfig/network-scripts on the host machine:

1. Set up ifcfg-eth0 with the ip information of the 
	host (For example 192.168.2.200)
2. Set up ifcfg-eth0:1 for the first guest.  It will
	have BRIDGE=br1
3. Create ifcfg-br1 with the IP info for the first
	guest (For example 192.168.2.201)
4. Set up ifcfg-eth0:2 for the second guest.  It will
	have BRIDGE=br2
5. Create ifcfg-br2 with the IP info for the second
	guest (For example 192.168.2.202)

Is this correct or did I miss something?

Thanks,
	Neil


--
Neil Aggarwal, (281)846-8957, www.JAMMConsulting.com
Will your e-commerce site go offline if you have
a DB server failure, fiber cut, flood, fire, or other disaster?
If so, ask about our geographically redundant database system.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Do I set up separate bridges for each guest?
  2009-10-20  2:37 Do I set up separate bridges for each guest? Neil Aggarwal
@ 2009-10-20  8:20 ` Dor Laor
  2009-10-20 13:46   ` Neil Aggarwal
  0 siblings, 1 reply; 4+ messages in thread
From: Dor Laor @ 2009-10-20  8:20 UTC (permalink / raw)
  To: Neil Aggarwal; +Cc: kvm

On 10/20/2009 04:37 AM, Neil Aggarwal wrote:
> Hello:
>
> I am installing KVM on top of CentOS 5.4 so I can
> have two guests running on my host. I would like to
> have the host and guests accessible from my
> network.
>
> Do I set up separate bridges for each guest or would
> they somehow be shared?
>
> If I set up separate bridges, I think I need to do
> in /etc/sysconfig/network-scripts on the host machine:
>
> 1. Set up ifcfg-eth0 with the ip information of the
> 	host (For example 192.168.2.200)
> 2. Set up ifcfg-eth0:1 for the first guest.  It will
> 	have BRIDGE=br1
> 3. Create ifcfg-br1 with the IP info for the first
> 	guest (For example 192.168.2.201)
> 4. Set up ifcfg-eth0:2 for the second guest.  It will
> 	have BRIDGE=br2
> 5. Create ifcfg-br2 with the IP info for the second
> 	guest (For example 192.168.2.202)
>
> Is this correct or did I miss something?

The simplest thing is to use a single bridge for all -
The physical nic should be part of it and supply the outside world 
connection. The physical nic doesn't need an IP and the bridge should 
own it. All vms can use this bridge.

cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
ONBOOT=yes
GATEWAYDEV=''
BOOTPROTO=dhcp
DELAY=0
HWADDR=00:14:5E:17:D0:04
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
HWADDR=00:14:5E:17:D0:04
BRIDGE=br0


>
> Thanks,
> 	Neil
>
>
> --
> Neil Aggarwal, (281)846-8957, www.JAMMConsulting.com
> Will your e-commerce site go offline if you have
> a DB server failure, fiber cut, flood, fire, or other disaster?
> If so, ask about our geographically redundant database system.
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Do I set up separate bridges for each guest?
  2009-10-20  8:20 ` Dor Laor
@ 2009-10-20 13:46   ` Neil Aggarwal
  2009-10-21  6:17     ` Thomas Besser
  0 siblings, 1 reply; 4+ messages in thread
From: Neil Aggarwal @ 2009-10-20 13:46 UTC (permalink / raw)
  To: dlaor; +Cc: kvm

Dor:

> The simplest thing is to use a single bridge for all -
> The physical nic should be part of it and supply the outside world 
> connection. The physical nic doesn't need an IP and the bridge should 
> own it. All vms can use this bridge.

I want to assign a static IP to each of the guests,
how would I do that with a single bridge?

Thanks,
	Neil

--
Neil Aggarwal, (281)846-8957, www.JAMMConsulting.com
Will your e-commerce site go offline if you have
a DB server failure, fiber cut, flood, fire, or other disaster?
If so, ask about our geographically redundant database system. 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Do I set up separate bridges for each guest?
  2009-10-20 13:46   ` Neil Aggarwal
@ 2009-10-21  6:17     ` Thomas Besser
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Besser @ 2009-10-21  6:17 UTC (permalink / raw)
  To: kvm

Neil Aggarwal wrote:
> Dor:
>> The simplest thing is to use a single bridge for all -
>> The physical nic should be part of it and supply the outside world
>> connection. The physical nic doesn't need an IP and the bridge should
>> own it. All vms can use this bridge.
> 
> I want to assign a static IP to each of the guests,
> how would I do that with a single bridge?

Whats the problem? Define the static IP in your guests and it should work.

Regards
Thomas


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-21  6:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-20  2:37 Do I set up separate bridges for each guest? Neil Aggarwal
2009-10-20  8:20 ` Dor Laor
2009-10-20 13:46   ` Neil Aggarwal
2009-10-21  6:17     ` Thomas Besser

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.