Two network cards

G

Guest

I am having some trouble with netowrking.

I own a laptop which is connected to our buisness network at work (LAN).
This gives me Internet access, limited to web browsing (through a proxy
server) and file sharing over the network. However the internet connection
is slow and very unstable, so management hired another ISP line to give me
stable internet access. The ISP offers a DSL service, with a DSL modem that
is also a wired/wireless router. So, to make things simple (so I thought) I
bought a USB WLAN adapter and hooked it up to my laptop, then things started
acting up.

I have three possible scenarios, none of which I want.
1. Both adaptors are on: Computer insists on accessing internet through my
buisness network, which makes the dedicated ISP line useless. If I remove the
proxy server from the conexion tab, under intert options, then I get no
browsing. If I leave the proxy settings on, then I can browse, so I know
that IE uses the LAN to connect to the Internet

2. WLAN Adaptor off, LAN Adaptor on: Same as case 1.

3. WLAN On, LAN Off: I get a very good internet connection, no problem
there (I of course need to take off the proxy settings for IE). However I
cant connect to the network, which means no file sharing, printer sharing,
etc.

I would really like to get this to work, since enabling and disabling
network adaptors is just silly, there should be a way for windows to
correctly set this up. Thanks.

I have windows xp pro sp1
p4
512 mb ram
 
J

John Wunderlich

I am having some trouble with netowrking.

I own a laptop which is connected to our buisness network at work
(LAN). This gives me Internet access, limited to web browsing
(through a proxy server) and file sharing over the network.
However the internet connection is slow and very unstable, so
management hired another ISP line to give me stable internet
access. The ISP offers a DSL service, with a DSL modem that is
also a wired/wireless router. So, to make things simple (so I
thought) I bought a USB WLAN adapter and hooked it up to my
laptop, then things started acting up.

I have three possible scenarios, none of which I want.
1. Both adaptors are on: Computer insists on accessing internet
through my buisness network, which makes the dedicated ISP line
useless. If I remove the proxy server from the conexion tab, under
intert options, then I get no browsing. If I leave the proxy
settings on, then I can browse, so I know that IE uses the LAN to
connect to the Internet

2. WLAN Adaptor off, LAN Adaptor on: Same as case 1.

3. WLAN On, LAN Off: I get a very good internet connection, no
problem there (I of course need to take off the proxy settings for
IE). However I cant connect to the network, which means no file
sharing, printer sharing, etc.

I would really like to get this to work, since enabling and
disabling network adaptors is just silly, there should be a way
for windows to correctly set this up. Thanks.

I have windows xp pro sp1
p4
512 mb ram

Packets are routed based on their IP address. To solve your
situation, you will have to manually specify packet routing because
the default routing will always prefer a hardwire connection over a
WLAN connection and Windows can't guess which card interfaces to
your local LAN and which to the internet. Routing tables can be
displayed by bringing up a command window and entering the "route
print" command. This default routing table can be modified using
"route add", "route change", and "route delete" commands. When two
identical routes are listed to different NICs, the one with the lowest
Metric is used.

For info about the "route" command, see:

<http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/route.mspx>

HTH,
John
 
G

Guest

OK.. This is good, thanks for the reply, however, Im intermediate at best on
this stuff, so how do I know which packets, or for this matter, what IP range
goes to my local network, and which IP range goes to the internet?
 
G

Guest

Ok extending a bit on my previous entry... I have checked the route print
command on my laptop, and when I have both adapters active I get a lot of
duplicate entrys, like, 0.0.0.0, so how do I go about changing one of them...

You see, I think I kind of get that this is the default Internet IP
destination, so if I were to change this setting to only use the wireless
gateway, how would I go about changing both of the entries, if there are two
of them with the same destination.. Thanks!
 
J

John Wunderlich

Ok extending a bit on my previous entry... I have checked the
route print command on my laptop, and when I have both adapters
active I get a lot of duplicate entrys, like, 0.0.0.0, so how do I
go about changing one of them...

You see, I think I kind of get that this is the default Internet
IP destination, so if I were to change this setting to only use
the wireless gateway, how would I go about changing both of the
entries, if there are two of them with the same destination..
Thanks!

If there are two (or more) entries for the same default route, the
one with the lowest "metric" number will be used. Usually a
wireless connection is assigned a metric of 25 and a wired
connection, maybe 20. So to force the default route through the
wireless, and assuming your default wireless route looks like:

Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.101 25

Then you should use the following command to lower the metric on
your wireless card:

route change 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 5

But by doing this, your local network is probably not defined and it
will use the default gateway (which you don't want)... So assuming
your local network IPs look like: 10.20.X.X
Then you would want to add a route to this subnet using your hardwired
connection. So you probably would want to add another route table entry
like:

route add 10.20.0.0 mask 255.255.0.0 10.20.1.1

where 10.20.0.0 and mask 255.255.0.0 define the subnets and 10.20.1.1 is
the gateway machine on that subnet (probably the gateway you currently see
on your hardwire connection).

HTH,
John
 
G

Guest

Ok.. almost there... I have succesfully routed my internet traffic, and I can
now connect to the internet without disabling the ethernet adaptor .. woot
woot!
Now, here is my problem, I can't route traffic through my LAN, I think that
the problem is that both the LAN and WAN use the 192.168 prefix for networks,
so this might be causing some confusion. I will post my route print command,
see if it helps a bit.

=====================================================
ILista de interfaces
0x1 ........................... MS TCP Loopback interface
0x2 ...00 00 e2 89 68 6c ...... Conexión de red PRO/100 VE de Intel(R) -
Minipuerto del administrador de paquetes
0x10004 ...00 0d 2f 00 08 4e ...... ATMEL 11b USB WLAN - Minipuerto del
administrador de paquetes
=====================================================
=====================================================
Rutas activas:
Destino de red Mascara de red Puerta de acceso Interfaz Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.28
5
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.28 192.168.0.28 30
192.168.0.0 255.255.0.0 192.168.18.137 192.168.18.137 20
192.168.0.28 255.255.255.255 127.0.0.1 127.0.0.1 30
192.168.0.255 255.255.255.255 192.168.0.28 192.168.0.28 30
192.168.1.1 255.255.255.255 192.168.1.254 192.168.18.137 10
192.168.18.137 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.18.255 255.255.255.255 192.168.18.137 192.168.18.137 20
224.0.0.0 240.0.0.0 192.168.0.28 192.168.0.28 30
224.0.0.0 240.0.0.0 192.168.18.137 192.168.18.137 20
255.255.255.255 255.255.255.255 192.168.0.28 192.168.0.28 1
255.255.255.255 255.255.255.255 192.168.18.137 192.168.18.137 1
Puerta de enlace predeterminada: 192.168.0.1
=====================================================
Rutas persistentes:
ninguno

I have tried deleting these routes, to start with nothing, and let me add
the routes that I need, but a lot of these, it wont let me, saying that the
specified destination doesn't exist, even though I can see it right there on
the route print command. Thanks John, you've been great help!!
 
J

John Wunderlich

Ok.. almost there... I have succesfully routed my internet
traffic, and I can now connect to the internet without disabling
the ethernet adaptor .. woot woot!
Now, here is my problem, I can't route traffic through my LAN, I
think that the problem is that both the LAN and WAN use the
192.168 prefix for networks, so this might be causing some
confusion. I will post my route print command, see if it helps a
bit.


I have tried deleting these routes, to start with nothing, and let
me add the routes that I need, but a lot of these, it wont let me,
saying that the specified destination doesn't exist, even though I
can see it right there on the route print command. Thanks John,
you've been great help!!

From the table, since you say the internet is now working, it
appears that the interface to the internet is 192.168.0.1 on your
wireless card and your local hardwared network has IP address
192.168.18.xxx.

Destino de red Mascara de red Puerta de acceso Interfaz Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.28 5
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.28 192.168.0.28 30
192.168.0.0 255.255.0.0 192.168.18.137 192.168.18.137 20
192.168.0.28 255.255.255.255 127.0.0.1 127.0.0.1 30
192.168.0.255 255.255.255.255 192.168.0.28 192.168.0.28 30
192.168.1.1 255.255.255.255 192.168.1.254 192.168.18.137 10
192.168.18.137 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.18.255 255.255.255.255 192.168.18.137 192.168.18.137 20
224.0.0.0 240.0.0.0 192.168.0.28 192.168.0.28 30
224.0.0.0 240.0.0.0 192.168.18.137 192.168.18.137 20
255.255.255.255 255.255.255.255 192.168.0.28 192.168.0.28 1
255.255.255.255 255.255.255.255 192.168.18.137 192.168.18.137 1
Puerta de enlace predeterminada: 192.168.0.1

What you need to do is delete the line for 192.168.0.0 mask 255.255.0.0:
route delete 192.168.0.0 mask 255.255.0.0 192.168.18.137

Then you need to add a route for your local network 192.168.18.xxx:
route add 192.168.18.0 mask 255.255.255.0 192.168.18.137

HTH,
John
 
G

Guest

The problem I mentioned before still persists, whenever I try to delete the
route you mention, it says "Specified Route not found" I have checked, and
triple checked my syntax, but everything is fine, could there be something
else locking or preventing me from altering these routes?
 
J

John Wunderlich

The problem I mentioned before still persists, whenever I try to
delete the route you mention, it says "Specified Route not found"
I have checked, and triple checked my syntax, but everything is
fine, could there be something else locking or preventing me from
altering these routes?

I believe that some routes are set up by default and can't be
modified or deleted and this is one of them. As it is, your routing
looks like it is set up correctly unless you have a local router to
access other local subnets. I see a router at 192.168.1.254,perhaps
that is it?

If you can't delete the "192.168.0.0 mask 255.255.0.0" line then you
can effectively short-circuit it out by adding an identical route
with a lower metric. Assuming the router to your local network is
at 192.168.1.254, then you could try entering the following line:

route add 192.168.0.0 mask 255.255.0.0 192.168.1.254 IF 2 METRIC 10
(where "IF 2" is you wired interface and "IF 3" is your wireless)

The above line has the effect of sending all packets addressed to
192.168.xxx.xxx to the router 192.168.1.254 except for 192.168.0.x
addresses (which are sent to your wireless interface due to line
3 in your "route print" output)


HTH,
John
 
G

Guest

Success!!

Ok, I am now able to use the internet and still access my local LAN. What I
did, to simplify matters was modify the dsl modem router settings, so that
they used a different internal address (172.16.1.0) and that way I just added
routing commands for 0.0.0.0, and since my local network would use the
192.168.0.0 destination, then it would just access my LAN alone by using the
default routes.

Now, I have another issue revolving around this, in my office, my secretary
and my pc (not the laptop) have the same problem. They are both connected to
the business LAN, and I would like to know if there is a way for them to
access the internet through my laptop and that way have all three computers
use the dedicated internet access.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top