From: "Julian Thomas" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.1.16) with ESMTP id 2648521 for os2-wireless_users@2rosenthals.com; Tue, 14 Jul 2009 16:44:59 -0400 Received: from static-71-171-102-26.clppva.fios.verizon.net ([71.171.102.26] helo=mail2.2rosenthals.com) by secmgr-ny.randr with esmtps (TLSv1:AES256-SHA:256) (Exim 4.43) id 1MQoru-0006aD-3F for os2-wireless_users@2rosenthals.com; Tue, 14 Jul 2009 16:44:58 -0400 Received: from relay02.pair.com ([209.68.5.16]:2532) by mail2.2rosenthals.com with smtp (Exim 4.69) (envelope-from ) id 1MQorr-00030A-0p for os2-wireless_users@2rosenthals.com; Tue, 14 Jul 2009 16:44:51 -0400 Received: (qmail 12783 invoked from network); 14 Jul 2009 20:44:49 -0000 Received: from 66.66.77.114 (HELO asus) (66.66.77.114) by relay02.pair.com with SMTP; 14 Jul 2009 20:44:49 -0000 X-CTCH-RefID: str=0001.0A020202.4A5CEE43.00CF,ss=1,fgs=0 X-pair-Authenticated: 66.66.77.114 Message-ID: <100.9881090041ee5c4a.003@jt-mj.net> To: "os2wireless" Date: Tue, 14 Jul 2009 16:44:49 -0400 (EDT) Priority: Normal User-Agent: PMMail/3.04 (os/2; U; Warp 4.5; en-US; i386; ver 3.04.49.1356) X-Mailer: PMMail 3.04.49.1356 for OS/2 Warp 4.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: Someone (Stu?) wanted scripts X-Spam-Score: 0.0 (/) X-Spam-Report: _SUMMARY_ to switch between fixed IP and DHCP. Here's what I use (lan 0 is wired; lan 1 is wireless). /* Start wireless wih dhcp */ say "Activating the wireless network card" 'ifconfig lan0 down' 'ifconfig lan0 delete' 'ifconfig lan1 down' 'ifconfig lan1 delete' 'dhcpmon -l' /* release lease */ 'dhcpmon -t' /* terminate dhcp */ 'route flush' 'arp -f' 'dhcpstrt -i lan1 -d 10' /* 'start' wifiProg */ 'start dhcpmon' say "Wireless networking enabled" return /* start wireless with fixed IP */ /* * change to fixed IP */ 'killem dhcpmon.exe' 'ifconfig lan0 down' 'ifconfig lan0 delete' 'ifconfig lan1 down' 'ifconfig lan1 delete' 'dhcpmon -l' /* release lease */ 'dhcpmon -t' /* terminate dhcp */ 'route -fh' 'arp -f' 'ifconfig lo 127.0.0.1' /* fixed ip =3D 192.168.2.60 **/ 'ifconfig lan1 192.168.2.60 netmask 255.255.255.0 metric 1 mtu 1500' /* router =3D 192.168.2.9 **/ 'route add default 192.168.2.9 -hopcount' 'ipgate off' say "Now fixed ip 192.168.2.60" -- Julian Thomas: jt@jt-mj.net http://jt-mj.net In the beautiful Genesee Valley of Western New York State! -- -- Blessed are the pessimists, for they have made backups. --=20 This email was Anti Virus checked by Astaro Security Gateway. http://www.as= taro.com=