LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 08-13-2009, 09:35 AM   #1
deadeyes
Member
 
Registered: Aug 2006
Posts: 603

Rep: Reputation: 78
Xen virtual using bridging


Hi all,

A year ago I installed CentOS and configured Xen.

Recently I upgraded to 3.3.x

First my network wouldnt work and after a long time of trying I seem to have it fixed (I used the libvirtd networking guide to fix this)

Now, a few months later, I reboot my server and networking is again not working anymore.

The setup is as follows:
1 Dom0
1 DomU
1 Laptop
1 Router

The goal is to have all these accessible from/to any of these devices

I need a bridge for this so I configured it.
The Dom0 I want to be accessible trough 192.168.1.11 and the DomU through 192.168.1.10
There is no dhcp needed.
I added a ifcfg-br0 config (with "Bridge" and not "bridge"/"BRIDGE" in it)
ifcfg-eth0 I configured to use br0.
In example configs I have seen that the bridge IP was assigned through dhcp. But I dont want to assign it through dhcp. So I configured the 192.168.1.11 address for it.
When I restart the networking service the Dom0 is accessible through 192.168.1.11 and can ping any other except the DomU.

If I do arp -n then I see that the HWaddress for the DomU is incomplete (aka no answer?).
If I do the same on the DomU (through the console) I see a HWaddress for the Dom0 (192.168.1.11), however this is the address of the br0 interface.

Now I wonder if eth0 is the physical interface, or br0.
I would think some interface in ifconfig should have an HWaddress that accepts all traffic.

The interface of the DomU (vifx.0 or something) and eth0 is added to the br0.

Does anyone knows what I do/understand wrong and explain to me?
Maybe I do not understand the bridge workings correctly.

THanks alot in advance!

EDIT: in the output of arp -n on the DomU I meant that the mac was shown of a tap interface instead of the br0 interface

Last edited by deadeyes; 08-13-2009 at 02:15 PM.
 
Old 08-13-2009, 04:18 PM   #2
deadeyes
Member
 
Registered: Aug 2006
Posts: 603

Original Poster
Rep: Reputation: 78
I couldn't seem to find what was causing the problem but I fixed it as explained below.

The only thing weird for me was that I couldn't see a "Source Device" in virtmanager. And there is no way to select anything.
So I added a new NIC and had the possibilty to select a bridge, br0. I selected this one and created it.
After rebooting the DomU and configuring an IP on that interface, I was able to connect it.

So deleting the old one and adding a new one on the bridge interface should solve this.

I think this might be a bug as no Source Device was selected.

EDIT:
for anyone trying to solve this instead of using the previous workaround, you can try to edit the config file in: /usr/lib/xend/domains/

Last edited by deadeyes; 08-14-2009 at 04:14 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xen Transparent Bridging jamied66 Linux - Software 2 07-15-2009 03:12 PM
Configuring manual network bridging for Xen in Debian djbon2112 Debian 1 07-09-2009 09:06 AM
Xen DoS'd my network after setting up bridging abefroman Linux - Server 4 08-12-2008 04:20 PM
Bridging, NAT, and the use of virtual servers hashbangbinbash Linux - Newbie 6 07-19-2008 08:32 PM
VMWare's bridging vs Window's bridging - routing is messed up when Windows bridging brenan99 General 0 05-04-2008 10:24 PM


All times are GMT -5. The time now is 02:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration