X-Account-Key: account1 X-UIDL: 18413 X-Mozilla-Keys: Return-Path: os2-wireless_users-owner@2rosenthals.com Received: from 192.168.100.5 (hawking [192.168.100.5]) by 2rosenthals.com (Hethmon Brothers Smtpd) id 20040702012718-5828-7 ; Fri, 02 Jul 2004 01:27:18 -0400 (Hethmon Brothers Smtpd) id 20040702012714-36558-7 ; Fri, 02 Jul 2004 01:27:14 -0400 Received: from mx1.mailhop.org ([63.208.196.170] ident=mailnull) by mxout-1.mailhop.org with esmtp (Exim 4.34) id 1BgGZp-0002BB-Hc for os2-wireless_users@2rosenthals.com; Fri, 02 Jul 2004 01:27:15 -0400 Received: from smtp3.fuse.net ([216.68.8.173]) by mx1.mailhop.org with esmtp (Exim 4.20) id 1BgGZp-0008wl-AF for os2-wireless_users@2rosenthals.com; Fri, 02 Jul 2004 01:27:09 -0400 Received: from Carl-A30p ([66.42.227.237]) by smtp3.fuse.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with SMTP id <20040702052703.VZGC27242.smtp3.fuse.net@Carl-A30p> for ; Fri, 2 Jul 2004 01:27:03 -0400 X-Mailer: PMMail 2.10.2010 for OS/2 Warp 4.05 In-Reply-To: <40E4544C.3060000@clanganke.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <20040702052703.VZGC27242.smtp3.fuse.net@Carl-A30p> X-Mail-Handler: MailHop by DynDNS.org X-Spam-Score: -4.1 (----) Date: Fri, 02 Jul 2004 01:27:03 -0400 (EDT) Sender: os2-wireless_users-owner X-Listname: os2-wireless_users@2rosenthals.com Reply-To: os2-wireless_users@2rosenthals.com From: "Carl Gehr" To: "os2-wireless_users@2rosenthals.com" Subject: [OS2Wireless] switching nics without rebooting X-List-Unsubscribe: Send email to mailusers-request@2rosenthals.com X-List-Owner: mailusers-owner@2rosenthals.com On Thu, 01 Jul 2004 20:13:32 +0200, Christian Langanke wrote: >Carl Gehr wrote: > >>I've been using Neil's script [slightly modified, but THANK YOU very >>much!] for a while. One thing to note: Even if you have DHCPMON >>running, it will only show that the lease that you had for your wired >>connection is no longer there. It does NOT pick up the WiFi lease >>status. >> >Would love to see that script (everybody is talking about it here...) Here are the two commands that I am using... >------------------------------------------------------------------- > ActWiFi.Cmd >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >say "Turn the Wireless Radio ON " >say "Activating the Wireless Network Card" >'@ ifconfig lan0 down' >'@ ifconfig lan0 delete' >'@ dhcpmon -t' >'@ route -fh' >'@ arp -f' >'@ dhcpstrt -i lan1 -d 10' >say "Wireless Networking Enabled" >return > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >------------------------------------------------------------------- > ActENet.Cmd >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >'@ ifconfig lan1 down' >'@ ifconfig lan1 delete' >'@ dhcpmon -t' >'@ route -fh' >'@ arp -f' >'@ dhcpstrt -i lan0 -d 10' >say "Ethernet Networking Enabled" >return > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I should make it perfectly clear: I really have very little idea WHAT these commands are really doing or why some other commands should or should not be included. As I indicated: I COPIED what was posted here a while back. And, while it is not 100% because it does not change the DHCPMON so it looks at the WiFi, it DOES switch the connectivity. That is the important factor from my perspective. And, when I use the ActENet.Cmd after I've reconnected to the wired connection, DHCPMON picks back up and recognizes that the lease for that connection is back. It just never shows the lease for the WiFi connection... :-( > >> >>My ignorant explanation is: The monitor is only looking at LAN0. And, >>the Settings->MonitorInterface only shows LAN0. I have never been able >>to figure out from any documentation how to get it to switch and look >>at LAN1. >> >Nope. As pointed out in a previous mail: the DHCP client can handle only >one DHCP configured interface at a time. In order to configure a second >interface with DHCPSTRT, you need to kill the DHCP client deamon >dhcpcd.exe. And DHCPMON can only show the status for the interface being >configured with the current active dhcpcd, as DHCPMON does interprogram >communication with that piece of software (only). > BUT, even with the above commands, that kill the DHCPSTRT for LAN0 and restarts it for LAN1, the DHCPMON insists on monitoring *only* LAN0. I did try adding a command in the Cmd files above to try to switch the monitor: '@ start dhcpmon -LANn' with n=0 or n=1 But, it made no difference whatsoever. Later... Carl >bye, Christian > >------------------------------------------------- > >Christian Langanke >COS2E & CWSE >Team OS/2 Ruhr e.V. >cla@clanganke.de > >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > >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). > >This list is hosted by Rosenthal & Rosenthal >P.O. Box 281, Deer Park, NY 11729-0281. Non- >electronic communications related to content >contained in these messages should be directed >to the above address. (CAN-SPAM Act of 2003) > >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 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). This list is hosted by Rosenthal & Rosenthal P.O. Box 281, Deer Park, NY 11729-0281. Non- electronic communications related to content contained in these messages should be directed to the above address. (CAN-SPAM Act of 2003) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=