Question : Using a wireless connection for Internet when LAN cable is connected

Hi, I have a laptop set up and have an Internet connection available with a Local Area Connection or a connection using a Wireless Router.  What I am hoping to do is have all network recourses available with the LAN cable connected apart from the Internet.  I would like to Internet to connect using the Wireless Network.
I thought this would be quite straightforward but can't see any options in the Internet Connection settings.  If I am connected to the Internet using the Wireless Network Connection and I connect the LAN cable, the Internet automatically starts using that connection.
Do I need to use an automatic configuration script of some sort to get around this?
The laptop is running XP and I am connecting to the Internet with IE6.
I would appreciate any help or advice.
Many thanks!

Answer : Using a wireless connection for Internet when LAN cable is connected

You will need to configure routes on the PC to point at the various networks.

First, clear out your existing routes:

route -f

Then define the gateway via the wireless card (assume 192.168.0.1 is gateway)

route add 0.0.0.0 mask 0.0.0.0 192.168.0.1 metric 5

Then define routes to any internal networks via your LAN (assume local LAN is 192.168.1.0 network, with a gateway of 192.168.1.1)

route add x.0.0.0 mask 255.0.0.0 192.168.1.1 metric 5
route add x.x.x.0 mask 255.255.255.0 192.168.1.1 metric 5
ect

This will allow you to route both ways.




Random Solutions  
 
programming4us programming4us