LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Networking (http://www.linuxquestions.org/questions/forumdisplay.php?f=3)
-   -   one more bridge for another Virtual Machine (http://www.linuxquestions.org/questions/showthread.php?t=4175448787)

santhanam2006 02-05-2013 08:59 PM

one more bridge for another Virtual Machine
 
IBM x 3850 X5 server

RHEL 6 64 bit Host

Rhel 4.8 Guest

both OS running smoothly,

i configured

ifcfg-eth0,
ifcfg-eth1 and
ifcfg-br0 files
in host OS

Now can i add another Virtual Machine,by adding another bridge but i have only two NIC.

can i have sample scripts for ifcfg-eth1,ifcfg-br1,
If possible please guide me guys.


c.santhanakrishnan

grim76 02-06-2013 08:24 AM

You should be able to use that same bridge for your other virtual machines. I have a host running three virtual machines and only one bridge. I am using KVM for virtualization, but the same should apply in most instances.

scheidel21 02-06-2013 10:44 AM

Think of a bridge as it's own interface. A NIC could be a member of several bridges. However, if you can simplify things and use the same bridge you all ready set up. You can add multiple machines to the same as grim stated.

santhanam2006 02-06-2013 01:00 PM

Thankyou somuch for your response,

How to configure same bridge for two virtual machine?

or

sample script (ifcfg-eth0,eth1,bro) for one bridge for two VMs

c.santhanakrishnan

grim76 02-06-2013 07:44 PM

That would depend on what virtualization method you are using and how you are setting up your vms. Here is an example of something that you might use to set them up, but these items would depend on your environment.

Code:

virt-install \
      --name kvm2 \
      --vcpus 2 \
      --ram 1000 \
      --disk path=/dev/mapper/VolGroup00-LogVol03  \
      --network bridge:br0 \
      --arch i686 \
      -l nfs://10.1.1.212/nfsexport/rhel5.4-server-i386-is/



All times are GMT -5. The time now is 05:19 AM.