From owner-freebsd-questions@FreeBSD.ORG Mon Mar 7 19:33:22 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B7AB16A50D for ; Mon, 7 Mar 2005 19:33:22 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6618543D41 for ; Mon, 7 Mar 2005 19:33:21 +0000 (GMT) (envelope-from normal1.lists@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so1263764wri for ; Mon, 07 Mar 2005 11:33:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=jALe8eWKynSl5DDkvbB0xWJ535HRL57wCXHOMdf1N+CqQpjhc0ybmcTooerC+FvvMt37Bei83ysVVSzFIk3xLcIGWuHPvf45sjAflcZqNrlRiDKiIYL+ifzhnTRHgOPUFF9rnfVgEswT8Jqo6eYoxg9DPFLPSR2YS3KPgmlsKLQ= Received: by 10.54.11.19 with SMTP id 19mr43483wrk; Mon, 07 Mar 2005 11:32:37 -0800 (PST) Received: by 10.54.2.45 with HTTP; Mon, 7 Mar 2005 11:32:37 -0800 (PST) Message-ID: Date: Mon, 7 Mar 2005 11:32:37 -0800 From: gabriel To: freebsd-questions In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <422a3b4c.6460c00f.48d7.412b@smtp.gmail.com> <20050306195438.29f69e9d@localhost> Subject: Re: D-Link NIC. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: gabriel List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 19:33:22 -0000 Okay, so I've managed to get the Wless nic talking to the Access Point (per the logs) but I'm having problems getting an ip address. Check out the dhclient output: dolores# dhclient -v ndis0 Internet Systems Consortium DHCP Client V3.0.1 Copyright 2004 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/products/DHCP Listening on BPF/ndis0/00:11:95:87:8b:e4 Sending on BPF/ndis0/00:11:95:87:8b:e4 Sending on Socket/fallback DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 4 DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 11 DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 14 DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 13 DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 19 No DHCPOFFERS received. No working leases in persistent database - sleeping. dolores# here's the ifconfig ndis0 output: ndis0: flags=8843 mtu 1500 inet6 fe80::211:95ff:fe87:8be4%ndis0 prefixlen 64 scopeid 0x4 inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 ether 00:11:95:87:8b:e4 media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) status: associated ssid normal1@gmail.com 1:normal1@gmail.com channel 8 authmode OPEN powersavemode OFF powersavesleep 100 rtsthreshold 2312 protmode CTS wepmode MIXED weptxkey 1 wepkey 1:104-bit Anyone that has experienced this before? Any ideas? Thanks! On Sun, 6 Mar 2005 11:00:58 -0800, gabriel wrote: > Thats a good script. How did you install the ndis driver/wrapper? - > Cause I think some of the problem may be there. > > Cheers! > > On Sun, 6 Mar 2005 19:54:38 +0100, Fabian Keil > wrote: > > "Subhro" wrote: > > > > > > -----Original Message----- > > > > From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > > > > questions@freebsd.org] On Behalf Of gabriel > > > > Sent: Sunday, March 06, 2005 2:57 > > > > To: freebsd-questions > > > > Subject: Re: D-Link NIC. > > > > > > > > Can anyone provide any insight? > > > > > > > > ndis0: flags=8802 mtu 1500 > > > > ether 00:11:95:87:8b:e4 > > > > media: IEEE 802.11 Wireless Ethernet autoselect > > > > status: no carrier > > > > ssid "" > > > > channel -1 authmode OPEN powersavemode OFF powersavesleep 100 > > > > rtsthreshold 2312 protmode CTS > > > > wepmode OFF weptxkey 1 > > > > dolores# > > > > How do you set up the NIC? > > > > I use a small script to load and unload the driver: > > > > #!/bin/sh > > > > case "$1" in > > > > start) > > echo "Activating WLAN" > > kldload ndis > > kldload if_ndis > > > > ifconfig ndis0 ssid ec60bfg3b4 wepkey 1:0x12345678911234567891123456 wepmode on > > ifconfig ndis0 inet 192.168.1.49 > > > > route add 0.0.0.0 192.168.1.1 > > ;; > > stop) > > echo "Deactivating WLAN" > > kldunload if_ndis > > kldunload ndis > > ;; > > esac > > > > exit 0 > > > > DHCP works as well, but I don't use it. > > > > > > if I try to use dhcp the ip address will just go to zeroes. :\ > > > > > > > > > Are you positive that the DHCP function of your AP works perfectly? I am > > > asking thing because I have come across a couple of routers which happily > > > routes packets to static IPs but messes everything up as soon as it is asked > > > to handle DHCP. > > > > I guess the DHCP server is working, but Gabriel's kernel is lacking "device bpf" > > which is needed for dhclient. > > > > Otherwise the IP is set to 0.0.0.0 without error message, just as described. > > > > > Also I strongly feel something fishy in the WLAN interface being detected as > > > ndisX instead of wiX. > > > > This is expected behaviour. > > > > Regards > > Fabian > > -- > > http://www.fabiankeil.de > > > > -- > gabriel, > > Member of: > FreeBSD-Announce > FreeBSD-Hardware > FreeBSD-Multimedia > FreeBSD-questions > -- gabriel, Member of: FreeBSD-Announce FreeBSD-Hardware FreeBSD-Multimedia FreeBSD-questions