Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-14-2002, 09:38 PM   #1
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
Routing Issue

Ok I've got another routing issue that I hope can be answered here.

I just got wireless on my laptop, after 2 days of playing I couldn't get it working in linux(yes I've tried every driver, no none of them worked, it's a USB wireless adapter by belkin if anyone knows a trick). So I reverted to having the usb adapter on my win2k box, and my laptop's wireless pcmcia card on it. Here's the situation in that lovely ASCII that you see everywhere

( - usb wireless
( - ethernet
( - ethernet

I would like to know if it's possible for the ol laptop to get on the internet with this setup? All I need to know is the routing table entries for win2k(and xp since it's on the laptop). Linux is of course doing NAT, and assumably win2k should be doing it as well(tho I have no idea how to set it up).

I've got the win2k's default gateway as but of course it's not forwarding packets out across the internet :/

I've done:
route add -net netmask gw eth0 (linux)
route add mask (xp)

ping from the linux box and
ping from the xp box but
the xp box can't ping #1 anything else on the 10.10.0.x subnet or #2 anything on the internet.
the linux box can't ping anything else on the 192.168.0.x subnet(mainly the machine).

What am I doing wrong?
Old 01-15-2002, 11:58 AM   #2
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31

ok I can help with the Linux questions, but I don't know the correct syntax for the routing on win2000, that's why I post here and not

Can the laptop talk to the ip address ?
Set the laptops default gateway as the ip address to
Don't need NAT on the windows system as it's just routing to the Linux box with internal ip addresses, but you need to tell the windozes system to route all packets from to its other interface on

Then on the Linux box you need to allow the path back to the windows box.
route add -net netmask gw name_of_the_10.10.0.3_system_in_the_hosts_file eth0


route add -net netmask gw win_gw eth0

Then you need to make sure all the systems have routing enabled, ie forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
Then you need to set up a default route for all other traffic to use the other card connected to the router with the real ip address.

Then you need to enable Nat for all packets coming into the internal nic to Nat to external nic.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing Issue marc hall Linux - Networking 4 07-18-2004 11:59 AM
routing issue.. inode100 Linux - Networking 12 02-25-2004 04:52 PM
routing issue RyPingu Linux - Networking 1 08-15-2003 02:39 PM
again: routing issue! mule Linux - Networking 4 08-07-2003 09:43 AM
routing issue tanmaya Linux - Networking 1 10-13-2002 11:36 AM

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration