From owner-freebsd-current@FreeBSD.ORG Sat Aug 9 10:18:58 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34E0837B40D for ; Sat, 9 Aug 2003 10:18:58 -0700 (PDT) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [66.31.45.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EAEC43F75 for ; Sat, 9 Aug 2003 10:18:57 -0700 (PDT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1])h79HHEJm002642; Sat, 9 Aug 2003 13:17:14 -0400 (EDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)h79HHD55002641; Sat, 9 Aug 2003 13:17:13 -0400 (EDT) Date: Sat, 9 Aug 2003 13:17:13 -0400 From: Craig Rodrigues To: Martin Blapp Message-ID: <20030809171713.GA1206@crodrigues.org> References: <20030809072050.GA7547@crodrigues.org> <20030809144556.E49451@cvs.imp.ch> <20030809090403.N87665@sasami.jurai.net> <20030809182031.H89102@cvs.imp.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030809182031.H89102@cvs.imp.ch> User-Agent: Mutt/1.4i cc: freebsd-current@freebsd.org Subject: Re: dhclient problem with xl0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2003 17:18:58 -0000 On Sat, Aug 09, 2003 at 06:21:43PM +0200, Martin Blapp wrote: > > Hi, > > Adapted to the newst source-version, the patch will look like > this. After I got home, I'll test it. OK, this is weird. I did not use your change to dhclient. However, I did use Matthew Dodd's change to if_xl.c. I rebuilt the kernel, powered down, rebooted, and things seem to work better. Before Matthew's patch, ifconfig xl0 would never print out "status:" Now, ifconfig xl0, *always* prints out: "status: no carrier" even if I do have carrier. If I run dhclient (without your patch, but with debugging), I get: =================================================================== Internet Software Consortium DHCP Client V3.0.1rc1 Copyright 1995-2002 Internet Software Consortium All rights reserved For info, please visit http://www.isc.org/products/DHCP Listening on BPF/xl0/00:60:97:72:ad:f0 Sending on BPF/xl0/00:60:97:72:ad:f0 Sending on Socket/fallback xl0: Polling interface state xl0: client state of 2 xl0: link = 0 xl0: No Link on interface xl0: Polling interface state xl0: client state of 2 xl0: link = 0 xl0: No Link on interface xl0: Polling interface state xl0: client state of 2 xl0: link = 0 xl0: No Link on interface =================================================================== Now, if I add the following lines to /etc/dhclient.conf (I've never had to modify this file before): interface "xl0" { media "autoselect"; } I then get the following from dhclient: =================================================================== Script started on Sat Aug 9 13:11:42 2003 Internet Software Consortium DHCP Client V3.0.1rc11 Copyright 1995-2002 Internet Software Consortium. All rights reserved. For info, please visit http://www.isc.org/products/DHCP Listening on BPF/xl0/00:60:97:72:ad:f0 Sending on BPF/xl0/00:60:97:72:ad:f0 Sending on Socket/fallback xl0: Polling interface state xl0: client state of 2 xl0: link = 0 xl0: Trying media settings on interface DHCPREQUEST on xl0 to 255.255.255.255 port 67 DHCPACK from 10.208.128.1 bound to 66.31.45.197 -- renewal in 156736 seconds. xl0: Polling interface state xl0: client state of 5 xl0: link = 1 xl0: Lost Link on interface DHCPREQUEST on xl0 to 255.255.255.255 port 67 DHCPACK from 10.208.128.1 bound to 66.31.45.197 -- renewal in 149325 seconds. xl0: Polling interface state xl0: client state of 5 xl0: link = 1 xl0: Lost Link on interface DHCPREQUEST on xl0 to 255.255.255.255 port 67 DHCPACK from 10.208.128.1 bound to 66.31.45.197 -- renewal in 158190 seconds. xl0: Polling interface state xl0: client state of 5 xl0: link = 1 xl0: Lost Link on interface DHCPREQUEST on xl0 to 255.255.255.255 port 67 DHCPACK from 10.208.128.1 bound to 66.31.45.197 -- renewal in 144066 seconds. xl0: Polling interface state xl0: client state of 5 xl0: link = 1 xl0: Lost Link on interface DHCPREQUEST on xl0 to 255.255.255.255 port 67 DHCPACK from 10.208.128.1 bound to 66.31.45.197 -- renewal in 156702 seconds. =================================================================== Note, now that I am online, if I do ifconfig xl0, I get the following: xl0: flags=8843 mtu 1500 options=8 inet6 fe80::260:97ff:fe72:adf0%xl0 prefixlen 64 scopeid 0x2 inet 66.31.45.197 netmask 0xfffff800 broadcast 255.255.255.255 ether 00:60:97:72:ad:f0 media: Ethernet 10baseT/UTP (10baseT/UTP ) status: no carrier So it looks like maybe there is a problem with the xl driver? (Note I am running with Matthew Dodd's patch). It would be nice to get this to work so that I don't have to edit /etc/dhclient.conf, since I never had to do it before. -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org