X-UIDL: 1749 X-Mozilla-Keys: Return-Path: os2-wireless_users-owner@2rosenthals.com Received: from mail.2rosenthals.com (localhost [127.0.0.1] ) by mail.2rosenthals.com (Hethmon Brothers Smtpd) ; Mon, 4 Aug 2003 16:17:34 -0400 Received: from mail1.no-ip.com (goodyear.vitalwerks.com [64.156.198.155] ) by mail.2rosenthals.com (Hethmon Brothers Smtpd) ; Mon, 4 Aug 2003 16:17:32 -0400 X-Envelope-To: Received: (qmail 14154 invoked by uid 89); 4 Aug 2003 20:17:24 -0000 Received: from unknown (HELO fep01-mail.bloor.is.net.cable.rogers.com) (66.185.86.71) by mail1.no-ip.com with SMTP; 4 Aug 2003 20:17:24 -0000 Received: from rogers.com ([65.48.33.30]) by fep01-mail.bloor.is.net.cable.rogers.com (InterMail vM.5.01.05.12 201-253-122-126-112-20020820) with ESMTP id <20030804201641.TPKL268566.fep01-mail.bloor.is.net.cable.rogers.com@rogers.com> for ; Mon, 4 Aug 2003 16:16:41 -0400 Message-ID: <3F2EBF5A.4090408@rogers.com> User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 References: <3F2E9BBA.10200@rogers.com> <200308041225.000006WR@dsl3-63-249-70-32.cruzio.com> In-Reply-To: <200308041225.000006WR@dsl3-63-249-70-32.cruzio.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH PLAIN at fep01-mail.bloor.is.net.cable.rogers.com from [65.48.33.30] using ID at Mon, 4 Aug 2003 16:16:41 -0400 Date: Mon, 4 Aug 2003 16:17:33 EST5EDT4,M4.1,M10.5 X-OldDate: Mon, 04 Aug 2003 16:17:30 -0400 Sender: os2-wireless_users-owner X-Listname: os2-wireless_users@2rosenthals.com Reply-To: os2-wireless_users@2rosenthals.com From: Orest Skrypuch To: os2-wireless_users@2rosenthals.com Subject: [OS2Wireless] How to: setup wireless AND wired interface on a laptop? X-List-Unsubscribe: Send email to mailusers-request@2rosenthals.com X-List-Owner: mailusers-owner@2rosenthals.com Neil Waldhauer wrote: >This is my script. Turning the radio off is left as an exercise for the >student. Please post your answer and we will grade it. :) > >/* turn on the radio > * This command activates the 802.11b interface > * > * The wireless NIC should be inserted in the PC Card slot > */ >say "Activating the wireless network card" >'@ ifconfig lan0 down' >'@ ifconfig lan0 delete' >'@ dhcpmon -t' >'@ route -fh' >'@ arp -f' >'@ dhcpstrt -i lan1 -d 0' >say "Wireless networking enabled" >return > > Wow! Looks great. I did some studying with this as primer -- let me understand it ... '@ ifconfig lan0 down' '@ ifconfig lan0 delete' First of all you bring down the lan0 interface, and then close all routes through it, '@ dhcpmon -t' then terminate the dhcp daemon, '@ route -fh' the route command switches you have listed, I can't find in the .hlp files, I assume it flushes all the routes?? That is exactly the command from the mptn\bin\setup.cmd file ... '@ arp -f' then you delete all the entries in the arp table, '@ dhcpstrt -i lan1 -d 0' and then restart dhcp through the lan1 interface. Why did you specify a "0" wait time, might it not take longer ... well, I guess it just keeps retrying so it doesn't really matter how long it waits each time? So to reverse it you would: say "Activating the wired network card" '@ ifconfig lan1 down' '@ ifconfig lan1 delete' '@ dhcpmon -t' '@ route -fh' '@ arp -f' '@ dhcpstrt -i lan0 -d 0' say "Wired networking enabled" return Correct?? Another question, now, how do you know that the wireless MAC is lan1? I guess it would be a reasonable assumption, but is this determined somewhere in the setup files? MPTS lists the tcp/ip protocol through the wireless card as "2", is lan0 the lowest number tcp/ip, lan1 the next highest (in this case 2), and so on? Your humble student, * Orest =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To unsubscribe from this list, send a message to steward@2rosenthals.com with the command "unsubscribe os2-wireless_users" in the body (omit the quotes). For help with other commands, send a message to steward@2rosenthals.com with the command "help" in the body (omit the quotes). =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=