LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-20-2001, 06:11 PM   #1
houlster
LQ Newbie
 
Registered: Jul 2001
Posts: 1

Rep: Reputation: 0
Can't network linux with windows


Hi,

I'm having a problem with a home network of 3 machines.

First is "desktop". A win2k machine with 2 NIC's. It acts as a gateway to my @HOME cable modem. The internal NIC has an IP of 10.0.0.1
I run WinProxy 4.x on it for:

The second machine is "laptop". A win2k laptop. It has an IP of 10.0.0.2 and uses "desktop" as it's gateway, DNS and http proxy.

Now I'm trying to add a 3rd machine "linux". It's RedHat 6.1 and it's IP is 10.0.0.3
Initially, I set it's default gateway and DNS to 10.0.0.1 ("desktop").

All 3 machines use a net mask of 255.255.255.0

"desktop" and "laptop" talk and can ping each other, but not to "linux". Pinging a win box from "linux" gives "Destination host unreachable" errors. Ping "linux" from a win box gives timeout errors.

"linux" can ping "localhost", "linux" and 127.0.0.1, but not either of the win2k machines (using either their names or IP's).

I then removed the gateway and DNS settings from the linux box and put the win2k machines in the /etc/hosts file. No change.

To rule out hardware, I connected my linux box directly to the cable modem, and assigned eth0 the IP, gateway and DNS assigned by my ISP. All worked. I could ping, telnet, etc. out to the internet so I'm sure the hardware and drivers are right. I'm using a LinkSys NIC and tulip driver BTW.


Ignoring for the moment that I'm trying to use "desktop" as my gateway (backward from most linux/windows networks), why can't my linux box talk to the win2k machines?

I've literally spent about 10 hours the last 2 days trying to figure it out. I've found several references to setting routes, ip masquerading, ip chains, etc. None of this seems to apply in my case, but I've tried several things without any change.


I want to eventually share files with Samba and the cable connection as well, but right now I can't even get ping to work.

Any ideas what to do or check? I shouldn't have to set a route should I? All machines are on the same subnet. "ifconfig" on the linux box shows eth0 as up and running with the correct IP and mask. It also shows a broadcast of 90.0.0.255 Not sure what that is and I never set it.

Any ideas at all????

thanks
--Dan
 
Old 07-20-2001, 09:01 PM   #2
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Hi..

Check the Cables u are usig to connect the Linux Machine.

GIve netstat -rn and check u are getting the proper routing table.


Run tcpdump in one temrinal and try to ping ur laptop and other pc anc check the tcpdump outputs. u may get some solutions.

I am suspecting the cable.
siddiqu.T
 
Old 07-21-2001, 01:00 AM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
broadcast 90.0.0.255 address is rather odd. You sure you got the correct modules loaded for your Linux NIC?

Can your linux NIC ping 10.0.0.3?

Get the basic networking figgerd out before playing with ipchains/tables.
 
Old 07-21-2001, 11:12 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Do this

ifconfig eth0 10.0.0.3 netmask 255.255.255.0

Since your default route is screwy you may want to do

route del default

first

then you should be able to

ping 10.0.0.1

and

ping 10.0.0.2


You can do this if you want a default route for internet access, your browser will be requesting ip addresses out of your network so this is required.

route add default gw 10.0.0.1


then edit /etc/resolv.conf



nameserver 24.18.24.15



substitute your local dns.


that's all thats required,

except for browser proxy settings for netscape, this depends on how you are sharing the connection, proxy port, etc. If your other computer, 10.0.0.2 works then use it's browser settings.

Last edited by DavidPhillips; 07-21-2001 at 11:24 PM.
 
  


Reply



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
linux shuts down built in network card then windows tells me network card is unplugge lesmoxhaybaker SUSE / openSUSE 8 08-29-2006 05:10 PM
Integrating Linux Network into a Windows Network Crash64 Linux - General 3 04-30-2005 08:42 PM
linux machine does not connect to the network in windows network Bzuco Linux - Networking 2 07-19-2004 04:44 AM
windows nt network and linux newbe200615 Linux - Networking 4 06-25-2003 02:16 AM
accessing a windows network from a linux network and vise vesra uche okorie Linux - Networking 0 12-16-2001 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:26 AM.

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