LinuxQuestions.org
Visit Jeremy's Blog.
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 05-30-2014, 09:48 AM   #1
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Rep: Reputation: 0
Multiple Bridges on Single NIC


I have a machine that will host multiple virtual machines and I'm hoping to have a unique IP for each VM from a single NIC on the host. I successfully created a bridge with
Code:
# ifdown em1
# virsh iface-bridge eth0 br0
# ifup br0
and have a single guest connected to br0 with a unique IP but I'm not sure how to go about adding more virtual NICs for the other guests to use.

Last edited by cowmoo32; 06-02-2014 at 09:10 AM.
 
Old 05-30-2014, 01:20 PM   #2
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Rep: Reputation: 28
I'm not sure how exactly virsh iface-bridge command works, as I have never used that, but why don't you try another approach?

Let configure and activate bridge itself on OS startup and then configure you virtual machine(s) NIC to automatically join bridge. That way when you start virtual machine, it adds it's own NIC to bridge automatically (also set it's IP address and all that jazz...). I can't tell whether it is possible in your setup, because you didn't mention hypervizor you are going to use, but I guess it's worth a try.

I use this setup with KVM and it works like a charm.

Last edited by yenn; 05-30-2014 at 01:20 PM. Reason: formating
 
Old 06-02-2014, 09:09 AM   #3
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Original Poster
Rep: Reputation: 0
^ That's exactly what I ended up doing. I thought I needed a virtual NIC on the host for each guest but the VM creates its own mac/NIC from the bridge automatically.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Multiple IP address on a single NIC mosharaf_linux Linux - Server 1 01-20-2011 08:20 AM
Multiple NIC acting as single IP kromberg Linux - Networking 6 01-08-2008 02:31 AM
Multiple IP address/gateways single nic 1192bo Linux - Networking 2 11-15-2005 07:51 AM
binding multiple IPs to single NIC? lok1 Linux - Networking 2 11-16-2003 02:58 PM
Multiple addresses for a single NIC grub Programming 1 08-04-2003 02:24 AM

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

All times are GMT -5. The time now is 10:55 AM.

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