From owner-freebsd-net@FreeBSD.ORG Tue Aug 28 15:40:38 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 871B8106566C for ; Tue, 28 Aug 2012 15:40:38 +0000 (UTC) (envelope-from bthigonnet@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0E9CE8FC1A for ; Tue, 28 Aug 2012 15:40:37 +0000 (UTC) Received: by eeke52 with SMTP id e52so2127581eek.13 for ; Tue, 28 Aug 2012 08:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=KKQy63a/rp0jDbazRoBxbNpwX2FRPdAIcI91FcvBN/8=; b=Ewi3v9TTR/fGO8jEBZPpl2BxhFymoQmWojM1H0QzKhM4hzNb9WLRP3nhTAOfRGiWA2 jSdaZvgrjb5JhyBKZgn9+7NxJhSJg9dwbm7SIjqDaqN2KmLEBtnlkXGgnZmiOfxXeAR6 upHx1aHmqcl7a4uzwpe0u/jsOz9RZlCE57Z6y+8B0XmuDJmNIPF4x70RylUJo3oUr5t5 sXuNbq5ONsId7J2deI30VQ/eiOE4MqMsv81k1g/YZHbQltOEMQKWFXvPoYPIdHRb1Ko8 KVwfvQx7zdt5Xi+MoSlSEiYrEgpYplO+nMxlsA1xS+ZDn0b95cEa6mvU1Z8PqVL04mAk 0RKg== Received: by 10.14.204.72 with SMTP id g48mr22667334eeo.45.1346168431271; Tue, 28 Aug 2012 08:40:31 -0700 (PDT) Received: from [192.168.4.96] (uze30-1-88-126-129-209.fbx.proxad.net. [88.126.129.209]) by mx.google.com with ESMTPS id h42sm62170941eem.5.2012.08.28.08.40.29 (version=SSLv3 cipher=OTHER); Tue, 28 Aug 2012 08:40:30 -0700 (PDT) Message-ID: <503CE66B.8000702@gmail.com> Date: Tue, 28 Aug 2012 17:40:27 +0200 From: Bernard Higonnet User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <503B9298.5060602@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Seems DHCP request is ignoring default route info FreeBSD 9.0 - more info... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2012 15:40:38 -0000 On 28/08/2012 00:37, David Cornejo wrote: > > > On Mon, Aug 27, 2012 at 5:30 AM, Bernard Higonnet > wrote: > > Hello, > > I have two machines running 9.0 and which use DHCP. The DHCP server > is on a third machine using dnsmasq, also under 9.0, and provides an > explicit default router address. > > dnsmasq is sending the right stuff, as evidenced by the dnsmasq log > on the one hand, and by the fact that a Windows7 machine and a > Windows XP machine are using the same DHCP server and those machines > get the proper default gateway info on the other hand. > > Here is output from dnsmasq.log > > Aug 27 16:32:19 dnsmasq-dhcp[922]: 4078691060 sent > size: 4 option: 3 router 192.168.4.1 > > What happens on the two FreeBSD machines is that I end up with no > default gateway at all! > > When the same DHCP server used to provide its default gateway (i.e. > the machine dnsmasq is running on) everything was OK. > > TIA > Bernard Higonnet > _________________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/__mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to > "freebsd-net-unsubscribe@__freebsd.org > " > > > Can you supply the output of "netstat -nr" from the machine that is > missing a default route please? I hope I shall not be flamed too severely, but I did not mention something in my original email because I thought it not pertinent, but it turns out to have been... I have instructed dnsmasq to a) specify a non-standard default gateway and b) add a classless-static-route Each of these instructions are handled correctly by the FreeBSD machines making a DHCP request, but not both at the same time. If dnsmasq sends both, only the classless-static-route will be correctly handled and there will be no default gateway at all. If dnsmasq does not provide the classless-static-route, the desired default gateway works fine ?? Bernard Higonnet