From owner-freebsd-questions@FreeBSD.ORG Mon Jun 27 10:12:03 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 E7EF916A41C for ; Mon, 27 Jun 2005 10:12:02 +0000 (GMT) (envelope-from bt@ccgis.de) Received: from vogon.ccgis.de (vogon.ccgis.de [212.79.172.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67D6C43D1F for ; Mon, 27 Jun 2005 10:12:02 +0000 (GMT) (envelope-from bt@ccgis.de) Received: from amavis by vogon.ccgis.de with virus-scanned (Exim 3.36 #1 (Debian)) id 1Dmqrx-00079Z-00 for ; Mon, 27 Jun 2005 12:29:37 +0200 Received: from center.sz ([192.168.1.20] helo=center.shared) by vogon.ccgis.de with esmtp (Exim 3.36 #1 (Debian)) id 1Dmqrm-00079G-00; Mon, 27 Jun 2005 12:29:26 +0200 Received: from [192.168.2.66] (helo=[192.168.2.66]) by center.shared with esmtp (Exim 4.50) id 1DmqaR-0004Lu-JP; Mon, 27 Jun 2005 12:11:31 +0200 Message-ID: <42BFD169.5020501@ccgis.de> Date: Mon, 27 Jun 2005 12:14:01 +0200 From: Benjamin Thelen User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bryan Maynard References: <20050625131800.nh323ywrupxc4s4w@webmail.reallm.com> In-Reply-To: <20050625131800.nh323ywrupxc4s4w@webmail.reallm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: AMaViS-ng at Geo-Consortium Bonn Cc: "freebsd-questions@freebsd.org" Subject: Re: ndis0 dhcp question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2005 10:12:03 -0000 Bryan Maynard wrote: > Hello all! :-D > > I have a Linksys WPC11 ver.4 wireless NIC. I got it setup using ndisgen (very > cool tool by the way). Now when kldload /root/rtl8180_sys.ko (the location of > my wireless kernel object) dmesg shows this: > > ndis0: port 0x1000-0x10ff mem 0x88 > 000000-0x880001ff irq 11 at device 0.0 on cardbus1 > ndis0: NDIS API version: 5.1 > ndis0: Ethernet address: 00:0f:66:cf:10:7e > ndis0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps > > and when I run ifconfig -a I get this: > > ::My onboard ethernet NIC > xl0: flags=8843 mtu 1500 > options=9 > inet6 fe80::204:76ff:fe48:9301%xl0 prefixlen 64 scopeid 0x1 > inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255 > ether 00:04:76:48:93:01 > media: Ethernet autoselect (100baseTX ) > status: active > > ::I don't know what this is. . . > plip0: flags=108810 mtu 1500 > > ::Loopback device > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > > ::My Linksys WPC11 ver.4 > ndis0: flags=8802 mtu 1500 > ether 00:0f:66:cf:10:7e > 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 > > I have several questions, but I'll ask them one at a time. . . > > I have a Linksys WRT54G Wireless Router. Currently my onboard NIC is what I use > to access the net and stuff. How do I assign an IP address - and any other > needed parameters - to my wireless NIC, activate it, and use it instead of (or > along with) my onboard ethernet NIC? > > I know about using ifconfig blah blah blah, but what paramaters > do I pass and where do I get them? > > Thanks, > > Bryan Hi Bryan, something like this: ifconfig ndis0 ssid wepmode on wepkey 0x<1234567> I alway had to issue this command-line twice - don't know why. To automate this on boot-time using dhcp, there is /etc/dhclient.conf, where you have to add the parameters like ssid, wepmode and wepkey. I didn't try this yet. I haven't been able to use my ndis-card with dhcp (issuing "killall dhclient" && "dhclient ndis0" by hand), while my ath-card at least got a "dhcp-address" once :-). Ben