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

From: Orest Skrypuch <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:17:33 EST5EDT4,M4.1,M10.5
To: os2-wireless_users@2rosenthals.com

Neil Waldhauer wrote:

This is my script. Turning the radio off is left as an exercise for the
student. Please post your answer and we will grade it. :)

/* turn on the radio
* This command activates the 802.11b interface
*
* The wireless NIC should be inserted in the PC Card slot
*/
say "Activating the wireless network card"
'@ ifconfig lan0 down'
'@ ifconfig lan0 delete'
'@ dhcpmon -t'
'@ route -fh'
'@ arp -f'
'@ dhcpstrt -i lan1 -d 0'
say "Wireless networking enabled"
return
 


Wow! Looks great. I did some studying with this as primer -- let me understand it ...

'@ ifconfig lan0 down'
'@ ifconfig lan0 delete'

First of all you bring down the lan0 interface, and then close all routes through it,

'@ dhcpmon -t'

then terminate the dhcp daemon,

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

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


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


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?


Your humble student,

* Orest


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

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