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

From: Christian Langanke <os2-wireless_users@2rosenthals.com> Full Headers
Undecoded message
Sender: os2-wireless_users-owner <os2-wireless_users-owner@2rosenthals.com>
Subject: [OS2Wireless] default route problem
Date: Tue, 27 Sep 2005 22:27:22 +0200
To: os2-wireless_users@2rosenthals.com

Dave Saville wrote:

I use XWLAN to switch between a wired and wifi connection - depending on me
moving the laptop from my office to the garden :-)

I have noticed that if I boot wired and then switch to wireless the default
route of the wired connections stays. So a netstat -r shows two default routes.
I then have to delete the old one. Going wifi to wired however works as
expected.
 

Hi Dave, long time not read,

I had similar problems reported. In your case the problem gets even worse as the cabled and the wifi nic both connect to the same network. Then the IP stack also may end up playing with the ARP entries, if the old default route is still there. If I try to reproduce that problem, I don't end up with two default routes here, but MPTS creates a host route being implicitely copied from the old default route, pointing to the already disabled interface. Only when I delete this one, the new default route works.

I just am about to add code to XWLAN to remove the current default route before setting the new one, as already some month ago somebody had a similar problem. I am just not sure if there could be any side effects arising out of this in other situations... The drawback for you as the user is that you have to set the default route for the cabled interface in the DISCONNECT event code of your XWLAN script for your home WLAN profile. To avoid coding the same route command in two places, an alternative is to just call the setup.cmd on this event.

Another trick that you can play right now, is to avoid setting the default route for the cabled network at all. Just assign the default broadcast adddress of your IP segment as the IP address to your internet router (DSL router?). As a sample, if your class C network is 192.168.1, then the default broadcast address would be 192.168.1.254. For the class B network10.100. it would be 10.100.254.254. So no default route necessary anymore required for your cabled interfaces, as all IP pakets not matching your subsegment will be catched then by the default router automatically, even without setting an explicit default route on your clients. Note that XWLAN setting a default route to the Wifi access point device will not hurt here.

This trick has one drawback though: the way to the internet will then always be available and can only be interrupted by powering off the router physically. I always found it useful to have a way to make a cutoff for internet connections on my desktop by just deleting the default route, and to "reconnect" by stting the default route again (have two icons for that in my XCenter).

bye, Christian

-------------------------------------------------

Christian Langanke
COS2E & CWSE
Team OS/2 Ruhr e.V.
cla@clanganke.de.

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

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