Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 2003 13:17:13 -0400
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Martin Blapp <mb@imp.ch>
Cc:        freebsd-current@freebsd.org
Subject:   Re: dhclient problem with xl0
Message-ID:  <20030809171713.GA1206@crodrigues.org>
In-Reply-To: <20030809182031.H89102@cvs.imp.ch>
References:  <20030809072050.GA7547@crodrigues.org> <20030809144556.E49451@cvs.imp.ch> <20030809090403.N87665@sasami.jurai.net> <20030809182031.H89102@cvs.imp.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=8<VLAN_MTU>
	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 <half-duplex>)
	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030809171713.GA1206>