LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-14-2004, 07:32 PM   #1
woz
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
Linux box cannot talk to Windows XP


My LAN consists of two computers. Computer 1 is a Windows XP machine with an Ethernet card. Computer 2 is a dual bootable machine with windows 98 and SUSE 9 Professional with an Ethernet card. Both computers have their Ethernet cards connected to a 5-port Ethernet hub. When computer 2 is run in Windows the two computers see each other and I am able to read and write files in both directions.

When computer 2 runs Linux the two computers do not seem to see each other. I have assigned internet addresses to both computers. The address of computer 1 is 192.168.0.1. The address of computer 2 is 192.168.0.2. The subnet mask of both machines is 255.255.255.0.

When I am in a terminal on computer 2 running Linux as root I can ping 192.168.0.2 and get a response. If I try to ping 192.168.0.1 I do not get a response. Likewise, when I try to ping 192.168.0.2 from computer 1 when computer 2 is running Linux I do not get a response. I can also ping 127.0.0.0 from computer 2 when it is running Linux.

When I ping 192.168.0.1 from computer 2 while it is running Linux the Link/ACT Led on the 5-port hub blinks, indicating that something is getting out on the ethernet line.

I have previously had Red Hat Linux 9 in place of the SUSE Linux and had the same responses.

When Linux starts up, among the messages that appear on the screen are:

eth0 IP/Netmask: 192.168.0.2 / 255.255.255.0 ERROR: Error while executing:
Command 'ip route replace to 192.168.0.1/24 dev eth0' returned:
RTNELINK answers: Invalid argument
Configuration line 192.168.0.1 0.0.0.0 255.255.255.0 eth0



warning: /etc/resolv.conf not found
warning: No nameservers in /etc/resolv.conf!

Any help would be greatly appreciated.

Ed
 
Old 03-15-2004, 04:07 AM   #2
vbraca
LQ Newbie
 
Registered: Aug 2003
Location: Serbia
Distribution: SuSE
Posts: 29

Rep: Reputation: 15
Well as it says your eth0 interface is set with IP address 192.168.0.1 thus conflicting with your WinXP machine.

Start console and su to root user then edit file /etc/hosts and see if there is a line at a bottom like 192.168.0.1 name_of_your_machine.local - change it to 192.168.0.2 name_of_machine etc.

Here you can also add line describing your WinXP machine:
192.168.0.1 win_xp_machine_name win_xp_machine_name

Regarding resolv.conf file, when you're done with hosts file just open editor and cretae this file as follows:

nameserver your.ISP.DNS1.server
nameserver your.ISP.DNS2.server

save file and that's it.
 
Old 03-16-2004, 07:32 PM   #3
woz
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for replying.

I did not see a line like 192.168.0.1 name_of_your_machine.local in /etc/hosts.

This is the contents of my /etc/hosts file:

127.0.0.1 localhost
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts

192.168.0.2 linux.local linux

Does any of this make sense to you?

Thank you for your help

Ed
 
  


Reply


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
Troubleshooting Slow Transfer Speed Between Linux Box and Windows Box timswim78 Linux - General 1 10-23-2005 11:45 AM
Windows XP box losing connection to Linux box after 30 sec. NeoZeus Linux - Networking 3 07-21-2005 12:02 AM
Linux box with eth0 to cable modem and eth1 to Windows box videojeff Linux - Networking 23 03-03-2005 07:58 PM
Transfairing files from windows xp box to mandrake linux 10.0 box. tyledogg Linux - Newbie 4 07-25-2004 11:24 PM
Linux box calling a batch script on a windows box to run? Is it possible? joelhop Programming 8 05-17-2004 04:49 PM

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

All times are GMT -5. The time now is 07:24 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