LinuxQuestions.org
Visit Jeremy's Blog.
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 02-04-2004, 02:13 PM   #1
ElijahLofgren
LQ Newbie
 
Registered: Oct 2003
Location: Alabama
Distribution: Gentoo 2004.1, RH 9
Posts: 21

Rep: Reputation: 15
Problems networking Linux and Windows. Pinging does not work.


I'm try to get Red Hat Linux 9 machine networked with a Windows 98 machine so that I can share files and share my dail-up connection with the Windows box.
I'm unable to ping the Linux box from the Windows box, and pinging the Windows one from the Linux one does not work either.
I get a " Destination Host Unreachable" error.
How can I fix this?
I know that everything is connected right because when I boot the Linux machine into Windows, pinging the other Windows machine works. (I'm dual-booting).
The ips go like this:
Linux: 192.168.1.1
Subnet: 255.255.255.0
Windows: 192.168.1.2
Subnet: 255.255.255.0

Here are the results of ifconfig:

[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:6E:B3:A0:C0
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:548 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:5 Base address:0x1400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:137510 errors:0 dropped:0 overruns:0 frame:0
TX packets:137510 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9641847 (9.1 Mb) TX bytes:9641847 (9.1 Mb)

Does "TX packets:0 errors:548 dropped:0 overruns:0 carrier:0" mean something?
Here are the results of route:
(dashed added to preserve spacing
[root@localhost root]# route
Kernel IP routing table
Destination-----Gateway----Genmask---------Flags--Metric-Ref---Use---- Iface
1.1.21.2------------*----------255.255.255.255 ---UH-----0------0------0------ ppp0
192.168.1.0-------*----------255.255.255.0--------U------0------0------0------ eth0
169.254.0.0-------*----------255.255.0.0-----------U------0------0------0------ eth0
127.0.0.0----------*----------255.0.0.0--------------U-------0------0------0------ lo
default-------------1.1.21.2--0.0.0.0---------------UG------0------0------0------ ppp0




I've been working on this for the past couple of days. I have tried many things that I have seen on other posts in this forum.

Thanks for helping me,

Elijah

Last edited by ElijahLofgren; 02-04-2004 at 02:22 PM.
 
Old 02-04-2004, 02:46 PM   #2
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Are you going though a hub or switch to connect the two computers, or are just connecting the computers together with a single ethernet cable?

If you are using a single cable it has to be a cross-over cable.

Last edited by fur; 02-04-2004 at 02:51 PM.
 
Old 02-04-2004, 04:09 PM   #3
ElijahLofgren
LQ Newbie
 
Registered: Oct 2003
Location: Alabama
Distribution: Gentoo 2004.1, RH 9
Posts: 21

Original Poster
Rep: Reputation: 15
Sorry, I forgot to mention. I'm going through an ethernet hub to connect the computers together. I know that everthing is cabled right becuase when I boot the Linux machine into Windows the LAN works.

I wonder why pinging does not work from the Linux machine. Any ideas?

Thanks for your help so far,
Elijah
 
Old 02-04-2004, 04:14 PM   #4
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
I know this sounds silly, but this seems like a firewall in the way. Are you running a software firewall on either machine?
 
Old 02-04-2004, 04:16 PM   #5
ElijahLofgren
LQ Newbie
 
Registered: Oct 2003
Location: Alabama
Distribution: Gentoo 2004.1, RH 9
Posts: 21

Original Poster
Rep: Reputation: 15
I have the security level set to: No Firewall on the linux machine. There is not firewall on the Windows machine.
 
Old 02-04-2004, 04:18 PM   #6
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Try pinging the Windows machine with itself. ping 127.0.0.1 It should yeild results. BTW, are you pinging IPs or hostnames?
 
Old 02-04-2004, 04:24 PM   #7
ElijahLofgren
LQ Newbie
 
Registered: Oct 2003
Location: Alabama
Distribution: Gentoo 2004.1, RH 9
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Try pinging the Windows machine with itself. ping 127.0.0.1 It should yeild results
That works fine. It says recieved data etc..
The Linux machine can ping itself also.
Quote:
BTW, are you pinging IPs or hostnames?
I'm pinging IPs.
The linux machine's ip is: 192.168.1.1
The Windows machine's ip is: 192.168.1.2

Thanks again for you help,
Elijah
 
Old 02-04-2004, 04:27 PM   #8
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Should have asked before. Can either or both machines reach the internet? What machine is connected to the phone line? How are you sharing your connection? ICS? NAT? Proxy program? I'll try to stop the questions and aim an answer on ya after this, I promise. (I did say 'try'
)
 
Old 02-04-2004, 04:32 PM   #9
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I'm kinda guessing here.
When you are booted up to Windows, is that machine set to do Internet Connection Sharing?
If so, the second box gets it's ip address from the first one. right?
Now if you boot to Linux with box one, the other windows box has no instructions on how to get an address from the Linux machine.

To prove that, at Windows box two, type winipcfg while the first box is booted up to Linux.
You may get something like 169...... That means the Windows machine is set to obtain address automatically, but doesn't have any place set up to obtain it from.

Easy solution, Install Firestarter on the Linux box.
 
Old 02-04-2004, 07:17 PM   #10
ElijahLofgren
LQ Newbie
 
Registered: Oct 2003
Location: Alabama
Distribution: Gentoo 2004.1, RH 9
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Can either or both machines reach the internet?
Only the Linux machine can connect to the internet right now.
Quote:
What machine is connected to the phone line?
The Linux machine is connected to the phone line via a serial external modem.
Quote:
How are you sharing your connection? ICS? NAT? Proxy program?
Currently I'm not sharing the connection at all. I first need to get the Linux and Windows machine to be able to talk to each other. I thought that Squid was the proxy program I should use to let the Windows machine use the Linux machine as a proxy to access the internet. Is that correct? But first I need the machines to at least be able to ping each other. Correct?
Quote:
When you are booted up to Windows, is that machine set to do Internet Connection Sharing?
No, I'm going to try to get the Linux machine to share its connection with the Windows machine. e.g. the windows machine will use the linux machine as a proxy to connect to the internet.
Quote:
If so, the second box gets it's ip address from the first one. right?
Now if you boot to Linux with box one, the other windows box has no instructions on how to get an address from the Linux machine.
Both machines have static ips for the ethernet card.
The Linux machine connects to the internet through an external dail-up modem.

I was looking through: /var/log/messages
and I found the following.
Quote:
Feb 4 17:55:18 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Feb 4 17:55:18 localhost kernel: eth0: Transmit timed out, status 0002, PHY status 786d, resetting...
Feb 4 17:55:22 localhost kernel: NETDEV WATCHDOG: eth0: transmit timed out
Feb 4 17:55:22 localhost kernel: eth0: Transmit timed out, status 0002, PHY status 786d, resetting...
What do those errors mean? Is that my problem?

Thanks again guys!
Awaiting your helpful replies,
Elijah

Last edited by ElijahLofgren; 02-04-2004 at 07:19 PM.
 
Old 02-04-2004, 07:45 PM   #11
berserker_b2k
LQ Newbie
 
Registered: Feb 2004
Location: Argentina
Distribution: Slackware 9.1
Posts: 8

Rep: Reputation: 0
you should check that there's no filtering rules active (besides you chosed NO FIREWALL).

To do so, type: IPTABLES -L
You should see 3 entries: INPUT, OUTPUT and FORWARD
All of them should say ACCEPT
 
Old 02-04-2004, 07:54 PM   #12
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Does your NIC in your Linux box happen to be a 3Com 3c905?
 
Old 02-04-2004, 09:35 PM   #13
ElijahLofgren
LQ Newbie
 
Registered: Oct 2003
Location: Alabama
Distribution: Gentoo 2004.1, RH 9
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
you should check that there's no filtering rules active (besides you chosed NO FIREWALL).
To do so, type: IPTABLES -L
You should see 3 entries: INPUT, OUTPUT and FORWARD
All of them should say ACCEPT
Looks like that is fine.
Here is the output:
Quote:
[root@localhost root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Quote:
Does your NIC in your Linux box happen to be a 3Com 3c905?
No its integrated with my motherboard. It's a Onboard LAN Asus A7V8X-X (VT6102 [Rhine-II])
Does this work with Linux? It seems like Linux has detected it ok.

Thanks again,
Elijah
 
Old 02-04-2004, 09:46 PM   #14
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
I think your problem may reside with a wonky driver for your card. It may be negotiating the wrong way. It is suggested to set it to auto (had to do that with my rtl8139 for any amount of speed with my cable modem). There's a bit about that on a few kernel newsgroups. The 3com has the same problem and its more common. Check this out: http://www.scyld.com/pipermail/netdr...ay/000022.html

and this:
http://www.scyld.com/network/ethercard.html

There might be light at the end of the tunnel.

On the network sharing, you might wanna try NAT instead of a proxy. Much less configuration, I believe. There is a good howto (but RH should do it automatically): http://www.netfilter.org/documentati...NAT-HOWTO.html

Good luck.
 
Old 02-04-2004, 09:49 PM   #15
berserker_b2k
LQ Newbie
 
Registered: Feb 2004
Location: Argentina
Distribution: Slackware 9.1
Posts: 8

Rep: Reputation: 0
I have the same mobo & I have no problems...
 
  


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
linux and windows networking penguin12 Linux - Networking 2 07-14-2005 03:51 AM
Windows and Linux Networking Jason1 Linux - Networking 3 07-20-2004 12:50 AM
Windows Networking Problems in RHEL 3 WS sfagundes Red Hat 1 07-08-2004 08:55 AM
Networking Linux and Windows - Ping doesn't work njs12345 Linux - Wireless Networking 5 02-20-2004 04:29 PM
Networking Linux to Windows bubba169 Linux - General 5 06-12-2002 04:52 AM

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

All times are GMT -5. The time now is 12:16 PM.

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