From: "Lewis G Rosenthal" Received: from [192.168.100.201] (account lgrosenthal@2rosenthals.com) by 2rosenthals.com (CommuniGate Pro WebUser 5.0.9) with HTTP id 376523 for os2-wireless_users@2rosenthals.com; Sun, 24 Sep 2006 23:07:29 -0400 Subject: Re: [OS2Wireless]Re: T23 internal cards success To: "OS/2 Wireless Users Mailing List" X-Mailer: CommuniGate Pro WebUser v5.0.9 Date: Sun, 24 Sep 2006 23:07:29 -0400 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Transfer-Encoding: 8bit On Sun, 24 Sep 2006 14:03:14 -0700 "Tom Fredrickson" wrote: > On Sunday, 24 September 2006 at 13:39:52 -0500, Al Heath >wrote: > I fixed the encryption. had to set the key and reboot? > I tried 3 or 4 times to just set the key and connect but >it never > worked. > That's interesting. I haven't played with the command line utility much, as XWLAN seems to do what I want, and I find myself connecting to a number of different networks these days, needing to store profiles. > I now have dhcpstrt -i lan0 in startup.cmd > lan0 is wired nic > so I can boot up and if the wire is plugged in it >connects on lan0. > Xwlan will connect lan1 wifi and bring down lan0. > when I turn off wifi in Xwlan it brings down lan1 but >fails to bring > lan0 back up. > You can set a script to do this in XWLAN; check out Christian's docs and the relevant samples he provides. > I don't know relevant steps to bring down one network >and bring up > the other. DHCP won't reconnect on lan0 when I try >setting route it > says network unreachable. > > I saw a thread #5877 on the list that has xwlan_cmd file > It shows the steps > net stop req /y > ifconfig lan0 down > ifconfig lan0 delete > route -fh > arp -f > ifconfig lan1 address netmask 225.225.225.0 metric 0 mtu >1500 > route add default [router address] -hopcount 2 > > so how to get address from dhcp for ifconfig statement? > the script uses a fixed ip address. > I will try later I can fake it as the router is supposed >to issue the > same address to the mac address. I tried the steps above >be form but > not in that order and never "net stop" so maybe the >order is > important? > NET STOP is only of use if you are using PEER services. The simple script to bring down lan0 and bring up lan1 via DHCP is: ifconfig lan0 down ifconfig lan0 delete dhcpmon -t route -fh arp -f dhcpstrt -i lan1 -d 0 You can do this with REXX, as well. The following is courtesy Neil Waldhauer, with a couple tweaks (here, lan1 is wireless and lan0 is wired): NICON.CMD: /* turn off TCP on Wi-Fi & turn on TCP on the NIC * This command Activates the wired interface & deactivates the Wi-Fi * */ say "Deactivating the wireless interface" '@ ifconfig lan1 down' '@ ifconfig lan1 delete' '@ dhcpmon -t' '@ route -fh' '@ arp -f' say "TCP on wireless interface disabled" say "Activating the wired network interface" '@ dhcpstrt -i lan0 -d 0' say "TCP on wired interface enabled" return NICOFF.CMD: /* turn off TCP on the NIC & turn on TCP on Wi-Fi * This command deactivates the wired interface & activates the wireless interface * */ say "Deactivating the wired network interface" '@ ifconfig lan0 down' '@ ifconfig lan0 delete' '@ dhcpmon -t' '@ route -fh' '@ arp -f' say "TCP on wired interface disabled" say "Activating the wireless network interface" '@ dhcpstrt -i lan1 -d 0' say "TCP on wireless interface enabled" return -- Lewis --------------------------------- Lewis G Rosenthal, CNA, CLE, CLP Rosenthal & Rosenthal, LLC Accountants / Network Consultants New York / Northern Virginia http://www.2rosenthals.com ---------------------------------