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

From: "Neil Waldhauer" <os2-wireless_users@2rosenthals.com> Full Headers
Undecoded message
Sender: os2-wireless_users-owner <os2-wireless_users-owner@2rosenthals.com>
Subject: [OS2Wireless] How to: setup wireless AND wired interface on a laptop?
Date: Mon, 4 Aug 2003 16:38:00 EST5EDT4,M4.1,M10.5
To: os2-wireless_users@2rosenthals.com

on Mon, 4 Aug 2003 16:17:33 EST5EDT4,M4.1,M10.5, Orest Skrypuch
<oskrypuch@rogers.com> wrote:

>
> '@ 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 ...

You are right. I took it from the setup.cmd file because I really didn't know
any better. I don't see it in the help, either.

>
> '@ 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?

If you specify a 0 for wait time, then it does not pause for DHCP, but it keeps
trying in the background. I found it can take quite a while for DHCP to work on
my machine. For example, I'll run this command, and my friend will then look
for the access point, then look for a power cord, then plug it in, then
configure, and it can take a random amount of 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??

I can't try this right now, but it looks right. I've saved it for future use.

>
>
> 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?

I looked in setup.cmd as my reference. I think the interfaces are called by
some other name in Unix, but this looked good enough. I've never had more than
two network adapters in a machine, so I only assume it works for higher numbers.

best regards,
Neil

Neil Waldhauer  neil@blondeguy.com  www.blondeguy.com
Expert consulting for OS/2 and eComStation

Forget the health food.  I need all the preservatives I can get.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

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).

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




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