windows as router

A

adamfulman

Hi,

I'm trying to allow a unix machine to access the internet from its
subnet.


My network looks like this:


unix machine's ip(ethernet):192.168.2.5
|
|
edimax wifi router (not connected to the internet)ip: 192.168.2.1
|
|
Windows XP machine's ip(wifi):192.168.2.55
Windows XP machine's ip(ethernet):192.168.3.70
|
|
edimax hub (which keeps the internet connection active)
|
|
router (with internet connection) (10.X.X.X)


I added
route add -inet 192.168.3.0 -netmask 255.255.255.0 192.168.2.55
to the unix machine and now the XP 2nd nic answers to
ping (192.168.3.70) but i cant ping any other internet ip like
72.14.221.147 even after adding
route add -inet 0.0.0.0 -netmask 0.0.0.0 192.168.2.55
or
route add -inet 0.0.0.0 -netmask 0.0.0.0 192.168.3.70


I enabled ip forwarding on the XP (registry key) but still no luck.


What am I doing wrong?
Could it be something with the Edimax wifi routing table?


Many Thanks,


Adam
 
K

Kurt

From the information you have provided, the problem is likely that the
internet router does not have a route back to the 192.168.2.0 network. Most
SOHO routers will only NAT for one Class-C size ( /24 ) subnet. So what you
really want to do is enable Internet Connection Sharing on the XP box and
have it translate the 192.168.2 address to a 192.168.3 address. I am
assuming that the 10.x.x.x is the routers Public-side IP address, so you're
already NATted there (10.x.x.x is a private range). You are NATted again at
the router and you will be NATted a third time with ICS. Ther'es not a
problem with this, but don't expect to get a torrent connection on the Linux
box with this setup.

....kurt
 
J

John Wunderlich

(e-mail address removed) wrote in @i3g2000cwc.googlegroups.com:
Hi,

I'm trying to allow a unix machine to access the internet from its
subnet.
My network looks like this:


unix machine's ip(ethernet):192.168.2.5
|
|
edimax wifi router (not connected to the internet)ip: 192.168.2.1
|
|
Windows XP machine's ip(wifi):192.168.2.55
Windows XP machine's ip(ethernet):192.168.3.70
|
|
edimax hub (which keeps the internet connection active)
|
|
router (with internet connection) (10.X.X.X)


I added
route add -inet 192.168.3.0 -netmask 255.255.255.0 192.168.2.55
to the unix machine and now the XP 2nd nic answers to
ping (192.168.3.70) but i cant ping any other internet ip like
72.14.221.147 even after adding
route add -inet 0.0.0.0 -netmask 0.0.0.0 192.168.2.55
or
route add -inet 0.0.0.0 -netmask 0.0.0.0 192.168.3.70


I enabled ip forwarding on the XP (registry key) but still no luck.


What am I doing wrong?
Could it be something with the Edimax wifi routing table?

A couple of things might be wrong...

When you added the route to 0.0.0.0 did you check to see if there
already was a route to 0.0.0.0? If so, did you delete that route?
Note that all route adds must be to devices on the same subnet, so
your line:
route add -inet 0.0.0.0 -netmask 0.0.0.0 192.168.3.70
shouldn't work (if you are using the standard subnet mask of
255.255.255.0).

Is the Windows machine configured to do NAT routing? (i.e. "Internet
Connection Sharing") between the wireless and wired ports? If not,
the 192.168.2.x addresses may not be routable on the return trip
(assuming the standard subnet mask of 255.255.255.0).

HTH,
John
 

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