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

From: Andy Willis <os2-wireless_users@2rosenthals.com> Full Headers
Undecoded message
Sender: os2-wireless_users-owner <os2-wireless_users-owner@2rosenthals.com>
Subject: [OS2Wireless] Using VPC with wifi
Date: Sat, 05 Feb 2005 11:26:09 -0700
To: os2-wireless_users@2rosenthals.com

Dave Saville wrote:

I tried setting a second instance of the virtual switch, as per the VPC docs,
to see if I could get any VPC session to use the wireless card but it failed. I
seem to remember Christian or Adrian telling me at WSE that it would not work -
they were right :-)

Still, not to be defeated, I started playing. Lets us assume that your network
is 192.168.0.* and you are using dhcp *and* you have the ability to affect
routing on your default router. Now my laptop on the home network uses dhcp and gets a 192.168.0.x address and
the default router of the LAN is a Solaris box running firewall etc and is
connected to my cable modem. With me so far?

Start wireless on the laptop - XWlan will configure LAN1 and disable LAN0. At a
command prompt type

ifconfig lan0 192.168.1.1
ipgate on

Note that you do *not* need anything in the LAN cable socket - it just works.

Start a VPC session and change it to use a fixed ip of 192.168.1.2

set the default route to 192.168.1.1 anything else like DNS will be OK as it
is.

On the default router box

route add net 192.168.1 192.168.0.<whatever address the laptop got>

The VPC session will now go through LAN0, get rerouted to wherever and because
we added the way back to the default router box the reply gets back. This
however most likely will only work *inside* your LAN. To get it to work to the
internet you will need to modify the NAT rules to remap 192.168.1.* - as it now
does with 192.168.0.* or whatever.

Works a treat. I have just been looking up details via wireless on the Zeppelin
Museum in Germany on a NT Virtual machine using IE6 - 'cos the damn site won't
work with Mozilla or Firefox. Anyone been there BTW?

 

I assume then that the virtual switch is on Lan0?  Ok, that would get around putting the wireless card into promiscuous mode.  It is essentially what svista is doing for its networking support.  Do you have a physical card in the machine associated to LAN0?  IOW, I have 2 pcmcia cards - one wirelese, one wired, and they are not in the machine at the same time and I am wondering if the card would have to be present though not in use otherwise.  Unfortunately, my router doesn't allow me to play with the routing in it (going to have to get a new router I think).
Andy
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

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

This list is hosted by Rosenthal & Rosenthal
P.O. Box 281, Deer Park, NY 11729-0281. Non-
electronic communications related to content
contained in these messages should be directed
to the above address. (CAN-SPAM Act of 2003)

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




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