Mailing List os2-wireless_users@2rosenthals.com Archived Message #1352

From: "Tom Fredrickson" <os2-wireless_users@2rosenthals.com> Full Headers
Undecoded message
Subject: Re: [OS2Wireless]Re: T23 internal cards success
Date: Mon, 25 Sep 2006 22:38:50 -0700
To: Lewis G Rosenthal <os2-wireless_users@2rosenthals.com>

On Sunday, 24 September 2006 at 23:07:29 -0400, Lewis G Rosenthal wrote:
> On Sun, 24 Sep 2006 14:03:14 -0700
>  "Tom Fredrickson" <os2-wireless_users@2rosenthals.com>
> wrote:
> >On Sunday, 24 September 2006 at 13:39:52 -0500, Al Heath
> >wrote:
>
> <snip>
>
> >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
> ---------------------------------

Here is what I get boot up wired lan0.
run NICOFF.CMD brings down lan0 brings up lan1
cant connect to router. ifconfig lan1 shows inet 0.0.0.0
can't ping router. NICON.CMD brings up lan0 and I am connected.
Xwlan will not connect.

If I boot up and bring down lan0 with Xwlan I cant reconnect with lan0
but can turn off and on lan1

Somehow I don't think this is related to genmac or xwlan? Could it be
with my setup? I do have both cards with NETBEUI TCPBEUI.

--
Tom


Subscribe: Feed, Digest, Index.
Unsubscribe
Mail to ListMaster