LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-05-2013, 08:59 PM   #1
santhanam2006
LQ Newbie
 
Registered: Mar 2010
Posts: 29

Rep: Reputation: 0
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
 
Old 02-06-2013, 08:24 AM   #2
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
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.
 
Old 02-06-2013, 10:44 AM   #3
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
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.
 
Old 02-06-2013, 01:00 PM   #4
santhanam2006
LQ Newbie
 
Registered: Mar 2010
Posts: 29

Original Poster
Rep: Reputation: 0
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
 
Old 02-06-2013, 07:44 PM   #5
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
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/

Last edited by grim76; 02-06-2013 at 07:51 PM. Reason: Added code block with example
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to know the remote machine is Virtual machine or physical machine pantdk Linux - Server 19 10-16-2014 01:48 PM
bridge two NIC's in virtual OS with NIC's in physical machine m4rtin Linux - Networking 0 01-24-2012 05:58 PM
router - win machine - vmware workstation - solusvm - virtual machine vmicovic Linux - Networking 2 05-01-2011 05:22 PM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM
bridge doesn't work on fedora virtual machine Yuri1312 Linux - Networking 3 11-21-2005 05:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration