[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Weird: networking problem?



On Mar 6, Yanhui Liu wrote
> I connected my desktop and notebook computers, both are running linux
> 2.0.27, using the plip module. The desktop is set up as the gateway. The
> strange thing is that the notebook can ping the desktop, but the desktop
> cannot ping the notebook. I am new to networking. Does anybody know
> what's wrong?

My first guess is the routing tables on the laptop.  There is a program
called "route" which shows and sets the routing tables for linux.  Routes
tell the kernel where to send things--if it doesn't know where to
send them, they don't go anywhere.
So, on you desktop, if you type in "route -n", you should see something 
like:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
127.0.0.1	0.0.0.0		255.255.255.255	UH	0    0      ...  lo
<IPaddress>	0.0.0.0		255.255.255.0   ...

Where <IPaddress> is the address of your laptop.  My guess is, your lap-
top doesn't have one of these lines.  To fix that, try
"route add <IPaddress-of-desktop>" on your laptop.

If this doesn't work, or you want to know exactly how these routes work,
write me some email off the list.
-- 
				- John Larkin	
				- jlarkin@hmc.edu
				- http://aij.st.hmc.edu/~jlarkin


Reply to: