LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-29-2012, 09:22 AM   #1
Need2BaGeek
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Rep: Reputation: Disabled
Networking with KVM virtualization


Hi everyone,

I have an IBM HS22 blade running KVM on Red Hat 6.2. This physical blade has 4 NICs and I'd like to use them in 2 bonds, each bond carrying certain VLAN traffic. From what I've read, it sounds like I have to use bridges to accomplish the VLAN tagging. So, does this mean I would have to configure each eth interface in a bond, then assign each bond to a bridge? Let me illustrate what I mean:

eth0 & eth1 --> bond0 --> br0

eth2 & eth3 --> bond1 --> br1


I've been trying to accomplish this and can't even seem to get the bonds to have connectivity. But if I use a single eth interface directly on a bridge (skipping bonds), then I'm able to get network connectivity without VLAN tagging.

I guess I'm just trying to gain an understanding of how networking works in KVM. If anyone can lend advice or point me in the direction of a clear How-To guide, that would be greatly appreciated. I've been trying to get this working for several days now. I'm not sure why it's so difficult to get two ethernet interfaces to work as a bonded interface and carry VLAN traffic to the VM guests.

Thanks
 
Old 05-29-2012, 03:26 PM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Very easy
first the bonding
eth0+eth1. Make sure you use a supported mode (modes 0 and 6 especially don't like to work under bridges, I recommend mode-4 if your switches allow for it)
then the bridging comes on top. So your diagram was correct:
Code:
eth0+eth1 -> bond0 -> br0 <- vm
If you also need to use vlan tags, then you need to place them on the bond, so that the bridges are in top of the tagged interfaces:

Code:
eth0+eth1 -> bond0 -> bond0.100 -> br0 <- vm 
                  \-> bond0.101 -> br1 <- vm
hope it makes sense, if not, look on the redhat user portal, there are KBs that describe this
 
  


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
Which is best for Linux KVM virtualization.??? K@te Linux - Virtualization and Cloud 8 05-12-2011 04:17 PM
KVM virtualization on centos linuxguy08 Linux - Server 1 09-14-2010 01:15 PM
CentOS 5 KVM virtualization danicg Linux - Newbie 1 08-19-2010 02:04 PM
virtualization with kvm-84 on slackware 12.2 [GOD]Anck Slackware 6 03-26-2009 04:21 PM
F7 KVM Virtualization Crito Fedora 2 06-05-2007 07:58 AM

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

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