LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-13-2012, 10:09 AM   #1
slimjim
Member
 
Registered: Apr 2004
Location: east midlands, england
Distribution: Ubuntu 9.04
Posts: 56

Rep: Reputation: 15
Physical host of KVM VMs with bonded interface - bridging necessary?


Hi,

I have a RedHat machine running a number KVM VM guests. Its two ethernet interfaces are bonded, for redundancy - each running to a separate switch in the data centre.

I inherited this server. It's evident, although I'm not entirely sure, that the ethernet interfaces are bridged as well as bonded. Which is fine, since it all seems to work nicely.

However I'm moving it, along with a number of other servers, to a new data centre soon. The new data centre tells me that in order to use the two network feeds into the rack, I can't have the two interfaces bridged.

So my question is - is the bridging necessary for KVM hosts? I know there's an internal, "virtual" bridge, but do the physical interfaces have to be bridged as well, for some reason?

From ifconfig -a:

Code:
bond0     Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX  
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:1410305578 errors:14927 dropped:0 overruns:0 frame:14927
          TX packets:671693186 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1116561859775 (1.0 TiB)  TX bytes:566748542669 (527.8 GiB)

br0       Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX  
          inet addr:200.99.99.75  Bcast:200.99.99.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1221480801 errors:0 dropped:0 overruns:0 frame:0
          TX packets:352449231 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1016259239672 (946.4 GiB)  TX bytes:490177928634 (456.5 GiB)

eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:1382952331 errors:14927 dropped:0 overruns:0 frame:14927
          TX packets:671693186 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1113483862074 (1.0 TiB)  TX bytes:566748542669 (527.8 GiB)
          Interrupt:185 Memory:e4000000-e4012800 

eth1      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:27353247 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3077997701 (2.8 GiB)  TX bytes:0 (0.0 b)
          Interrupt:185 Memory:e2000000-e2012800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:35685773 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35685773 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2800744716 (2.6 GiB)  TX bytes:2800744716 (2.6 GiB)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:274 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:57713 (56.3 KiB)

vnet1     Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1146411 errors:0 dropped:0 overruns:0 frame:0
          TX packets:97725361 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:194260293 (185.2 MiB)  TX bytes:14792144821 (13.7 GiB)
 
Old 06-13-2012, 03:08 PM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Why can't you have bridged interfaces?


In any case, the bridge is essentially like a virtual switch, that has a leg (in your case it's a bond) into the physical network, and into which VMs plug in as well.

You can, instead, use NAT, but it's usually not recommended, especially because of the extra diffculty with managing the port forwarding
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to view installed VMs after Physical machine restart vicky7038 Linux - Newbie 3 03-15-2011 06:23 AM
Bridging over a bonded interface on ubuntu server 10.04 (lucid) chienpo Linux - Networking 0 06-15-2010 06:22 PM
Any way to access old VMs after reinstalling KVM? shadowbox12 Linux - Virtualization and Cloud 3 03-19-2010 10:09 PM
KVM Bridging tap0 to Bonded adapters swiftnet Linux - Networking 4 03-19-2009 07:52 AM
How to find the physical MAC of bonded NICs lhiggie Linux - Networking 4 06-06-2006 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 09:02 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