LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-12-2010, 05:49 AM   #1
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Rep: Reputation: 31
xen and trunking


I have a xen server and need to setup a trunk allowing me to specify different IP's for each of the VM's connected. The port the dom0 is connected is already trunk aware.

What do I need to do to make this function properly? Are there any guides/walkthroughs?
 
Old 11-12-2010, 07:06 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
What you need to setup is a network bridge from what I can gather.

Do a quick search of the this forum and you'll definitely find information on how to do this and setup Xen in the process.
 
1 members found this post helpful.
Old 11-12-2010, 07:09 AM   #3
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
Can I not just make my eth0 interface vlan aware. Sounds like a bit of a bugger setting up bridges. I'll take a look though, cheers.

Code:
vconfig add eth0 100
vconfig add eth0 200
vconfig add eth0 300
Was what I had in mind, with bridging my host would do the routing (I think).
 
Old 11-12-2010, 07:15 AM   #4
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi

Not following how making eth0 vlan aware would solve the problem though?

You basically want each VM virtual NIC to share your physical network card; but assign (either dynamic/static) different IP's to these. Bridging really isn't that difficult to do. All you'd need to do is to install bridge-utils and do a bit of interface config.

This link is for setting up KVM on Fedora 10; but I've used a similar way of doing it on F13/F14 and it works perfectly - this will give you an idea of how to setup the bridge.
 
Old 11-12-2010, 07:38 AM   #5
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by alli_yas View Post
Not following how making eth0 vlan aware would solve the problem though?
I want my switch to deal with intervlan communication, not the xen server. If my VM's have an obscure IP address, data will be forwarded out the virtual interface and sent to the dom0 interface which will push traffic to the switch to handle... I was hoping anyway. I've noticed when doing ifconfig -a that there's already - eth0, vif3.0 and xenbr0...
 
Old 11-12-2010, 07:52 AM   #6
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
This looks to be available in xencenter:
click your dom0>click the network tab>add network>external network>specify vlan number when prompted.
 
  


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
Port Trunking Winanjaya Linux - Networking 3 10-04-2010 10:42 AM
802.1q trunking vs. Sub-IP jackawang Linux - Wireless Networking 4 07-20-2007 12:23 AM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 11-05-2006 12:21 PM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 10-21-2006 11:33 PM
need info on trunking with Linux AhYup Linux - Networking 4 03-23-2006 01:36 PM

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

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