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

[Xen-users] Re: dhcp service in Dom0 not working properly

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: dhcp service in Dom0 not working properly
From: "Alejandro Martini" <alejandro.martini@xxxxxxxxx>
Date: Mon, 27 Aug 2007 19:07:15 -0300
Delivery-date: Mon, 27 Aug 2007 15:07:52 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=AdeapdBD5DyNydzSopj7OnHat0/4ohaf15KTNe10FjkSWy6oujQt//yI/bwuGo22Y/6kCxHQPYn1AfpHmE2nqWNhh1bVvZFYMecX6k4fLIeF4Fq1iEbLHgd7p4MeT8cNtD0i5E2BkVrbbaUCSzqUfCqqTApLP89ImjzEriDdh8E=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=gHejifSGFPkKqppUCBrnT2L8DZMwsLzYdinCBeB6PXsAoGUFOgNV9QnNTFSZJYbnZ69u0Kp2gqOsTfhMHupnwKbF0AEfKXobE5u5Q2hVrgSSYZBOKNmJENk8h67W6AcIvxN5HiwpAp/HdGLrA/su7ggcDN7Zk7d27fXmklhNO8k=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <942794950708260849j1bb0965rac16dc398e182869@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: <942794950708260849j1bb0965rac16dc398e182869@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Following Tibor's advice, i disabled tx checksums for the eth0 interface, and then run some more tests. Here's what i've found by running two instances of tcpdump simultaneously (one listening on eth0, and the other listening on peth0):

Dump 1 (listening on peth0):

tcpdump -vv -i peth0 'dst port 67 or src port 68'
tcpdump: WARNING: peth0: no IPv4 address assigned
tcpdump: listening on peth0, link-type EN10MB (Ethernet), capture size 96 bytes
18:46:42.413530 IP (tos 0x0, ttl 128, id 6463, offset 0, flags [none], proto: UDP (17), length: 328) 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:16:17:3b:5e:33 (oui Unknown), length 300, xid 0x9f266e11, secs 7168, Flags [ Broadcast ] (0x8000)

Dump 2 (listening on eth0, nothing happens):

tcpdump -vv -i eth0 'dst port 67 or src port 68'
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes

One can conclude that DHCPDISCOVER packets are reaching the server (as peth0 sees them perfectly). However, those same packets don't get to eth0. I repeated the test with tshark, leaving it running for a couple of hours, and while peth0 saw every dhcp broadcast on the network, eth0 didn't see a single one.

Is this an expected Xen behaviour? Is there a solution or workaround to circumvent this problem?


Thanks again,
Alex


2007/8/26, Alejandro Martini < alejandro.martini@xxxxxxxxx>:
I have the following problem. I've set up a dhcp server at Dom0 level, in order to provide ip addresses for the computers on my LAN. However, the dhcp daemon is not answering queries, nor giving addresses.

Dom0 has just one ethernet adapter configured (the physical machine has only one ethernet card, which is connected to the LAN switch).

The dhcp daemon is running and listening (that's at least what netstat shows), with no errors reported to the system logs. I don't think it can be an iptables issue, since it seems that dhcp packets don't pass through the iptables chains (anyways, i also tried allowing all traffic -setting default INPUT policy == ACCEPT-, but that didn't help).

If i try a tcpdump -i eth0 'dst port 67', i can't even see DHCPREQUEST packets reaching the server (client machines, based on W2K, keep retrying until they give up, wihtout getting a valid address). I must note that connectivity on Dom0 works ok, with several services working as expected (dns, http, squid, etc.)

The server is running Debian Etch (the dhcp service configuration was copied from a physical server, in which it was working fine).

Has anyone experienced similar problems? Any ideas on how this can be fixed?


Thanks in advance,
Alex

====================================================

ii  xen-hypervisor-3.0.3-1-i386-pae   3.0.3-0-2                       The Xen Hypervisor on i386 with pae
ii  dhcp3-server                      3.0.4-13                        DHCP server for automatic IP address assignm

Linux version 2.6.18-4-xen-686 (Debian 2.6.18.dfsg.1-12etch2) ( dannf@xxxxxxxxxx) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21))

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>