WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Strange Networking Issue

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Strange Networking Issue
From: Jonathon Jones <xen@xxxxxxxxxx>
Date: Fri, 09 Mar 2007 16:06:12 -0500
Delivery-date: Fri, 09 Mar 2007 13:05:34 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4eb282840703091143n6e133e32sdcf7984b2ec61a2b@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <45F12237.9040308@xxxxxxxxxx> <45F19FA2.5080103@xxxxxxxxxx> <4eb282840703091143n6e133e32sdcf7984b2ec61a2b@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0b2 (Macintosh/20070116)
Thanks so much for your response.

Martin Hierling wrote:
Hi,
instead of eth0 or somehow my bridge is screwed up.  If I remove .242
below from the domU and add it to the dom0 it begins to work just fine.
I'm still trying to figure out how .241 is working fine from the domU
when it is a secondary IP and no other secondary IP's work from the domU.

Are you sure nobody else uses the ip by accident? Whats the mac address from 242? (arp -n). Is that the mac from your DomU.

Yes, I'm quite certain since I can swap the IP back and forth between the dom0 and domU at will and it always will work on the dom0 but not in the domU.  Using arp -n doesn't show me anything that seems usable.  The following is the output from arp -n.  It is the same in both the dom0 and domU except that the Iface changes from eth1 to eth0 when going from dom0 to domU.

[root@secure network-scripts]# arp -n
Address                  HWtype  HWaddress           Flags Mask            Iface
75.126.153.177           ether   00:1A:30:38:90:00   C                     eth0
Does anybody know if the public IP has to be on eth0 in dom0 for
bridging to work properly?

Public IP has to be on the interface where the public net is! Are eth0 and eth1 in different VLANs?
Right, the public IP is on eth1 in dom0.  Which is how the provider set it up  Everything seems to work fine in this setup other than adding secondary IP's to domU's.  Yes, in the dom0, eth0 is on 10.10.16.2/26 vlan while eth1 is on public IP xxx.xxx.153.178/29

It looks like your provider set up another IP network for Dom0 and DomU. Are they on the same Layer 2 Network?
Well, my provider isn't aware of my xen setup.  They just gave me .153.178 and .154.240-.247 as usable IP's with a gateway of .153.177.

I dont know the exact setup of sour provider but the 2 networks you have are not fitting together.

Gateway: xxx.xxx.153.177
dom0: xxx.xxx.153.178 (on eth1, eth0 is assigned a 10.x.x.x IP.  This is
how my provider set it up)

dom1: xxx.xxx.154.240 (domU primary IP)
          xxx.xxx.154.241
          xxx.xxx.154.242

dom2: xxx.xxx.154.244 (domU primary IP)
          xxx.xxx.154.245
          xxx.xxx.154.246
 
Do you route or bridge? With bridge you need a netmask of 255.255.252.0 to reach the gateway from your DomUs.
So, you have to route the 154.240/29 network to your DomUs.

Martin

It is bridge.  I am not a networking guru or even a xen guru but i have been using xen for some time now and have set up several servers with it.  This is the first I have run into this type of situation.  The domU's do have a netmask of 255.255.252.0 so that they can reach the gateway and the primary IP I assign to eth0 in the domU works just fine every time.

How do I go about routing the 154.240/29 network to my domU's beyond what I have already done?  And why is it that the primary IP works fine and then strangely .241 works also but no other IP's do?  The inconsistency is nagging at me.

Thanks again for your help.  I am trying to migrate servers from one provider to another and this is holding me up.

Jon
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users