LinuxQuestions.org
Review your favorite Linux distribution.
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 02-08-2004, 11:07 AM   #1
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Rep: Reputation: 15
Unhappy RH9 cannot ping WinXP box


I am a newbie who is having trouble setting up a LAN in my home. I have RH9/WinXP dual-boot system running on a PII system. I am connected to the internet with one NIC (eth0). This works fine!

My wife has WinXP running on a PII system. She is also able to connect to internet through one NIC. This also works fine.

Both of the internet connections are through a shared cable modem and router. We have separate internet accounts.

What I am attempting to do is to set up a LAN so that my RH9 box in the basement can access her WinXP box elsewhere in the house.

I have installed a second NIC card in each machine.. They are connected through a separate router.


RH9 (eth1): IP address: 192.168.0.1
submask: 255.255.255.0
I ran 'neat' and put the IP address of the WinXP box (192.168.0.2) and the netmask into the route tab.



WinXP: IP address: 192.168.0.2
submask: 255.255.255.0
Client for Microsoft Networks, File and Printer Sharing for Microsoft Network & QoS packet scheduler are installed.



I have rebooted both machines. I can ping from the WinXP box to 192.168.0.1. I cannot ping from the RH9 box to 192.168.0.2.

If I reboot into WinXP, the LAN works fine and I can share files between the two computers.

Any ideas what I should try to do? What should I be checking? Any help is appreciated.
 
Old 02-08-2004, 12:33 PM   #2
disinformation
Member
 
Registered: Sep 2003
Location: Wakefield, UK
Distribution: Slackware, Debian
Posts: 38

Rep: Reputation: 15
do you have the iptables firewall installed on the redhat box?

run the following command as root iptables -L and post the output (if any here)
 
Old 02-08-2004, 02:50 PM   #3
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Here is the output from the iptables -L command:

[root@localhost michael]# /sbin/iptables -L
/lib/modules/2.4.20-24.9/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busyHint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-24.9/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.20-24.9/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.20-24.9/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed
iptables v1.2.7a: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


Does this mean that I need to upgrade my iptables? Or am I to turn off my iptables? If so how does one do either? Your help is appreciated!
 
Old 02-09-2004, 07:26 AM   #4
disinformation
Member
 
Registered: Sep 2003
Location: Wakefield, UK
Distribution: Slackware, Debian
Posts: 38

Rep: Reputation: 15
ooh, im out of my league now.

Wouldnt want to lead you donw the wrong direction, id wait for another member to take a look
 
Old 02-09-2004, 09:43 AM   #5
Unseen
Member
 
Registered: Feb 2003
Distribution: debian
Posts: 56

Rep: Reputation: 15
If the XP box has the "XP Firewall" settings enabled it apparently does not respond to ping. I just had this problem helping my dad set up a LAN at his house this weekend.

Go into "My Network Places" and right click on the LAN connection and choose Properties. Then go to the Advanced tab (I believe) and uncheck the box. Then give it a try from the linux machine, you should start getting responses back.
 
Old 02-11-2004, 04:44 AM   #6
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
The XP computer does not have the firewall option on, and there are no second-party firewalls running at this time - though there certainly will be once I have resolved this LAN problem.

Is there anything else that I should be doing or checking?
 
Old 02-11-2004, 04:50 AM   #7
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Here is another piece of information. When I run neat as su I receive the following warning message:

redhad-config-network:
Static routes file eth1 is invalid

- eth1 is the NIC for my LAN. I had thought that the problem pinging was causing this warning, but could some other problems on the RH9 box be causing both, this warning and the inability to ping out?
 
Old 02-11-2004, 10:53 AM   #8
Unseen
Member
 
Registered: Feb 2003
Distribution: debian
Posts: 56

Rep: Reputation: 15
When you do a netstat -rn on the red hat machine, what do you get?
 
Old 02-11-2004, 11:31 AM   #9
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
Terms...

First off.... the two machines are on the same subnet, 192.168.0.X. Since that is the case, there is no need to route between them. They should be able to see eachother without any routing entries in "neat."

If you remove that static route you entered in "neat" are you now able to ping?

Also, you mentioned that these machines are connected together through a "seperate router." Do you mean, switch or hub?

MrKnisely
 
Old 02-11-2004, 12:14 PM   #10
fataldata
Member
 
Registered: Jun 2002
Location: Breckenridge, Colorado
Distribution: Ubuntu Hardy 8.04
Posts: 101

Rep: Reputation: 15
You are using a shared cable modem. To get both machines to attach to the modem do you use a hub or are there multiple ports on the modem itself? Also what IP addresses are on the NIC's used to connect to the internet. I only ask b/c most times you have a 192.168.xxx.xxx/16 network on an internal LAN and the client pc's use the modem as the gateway to the internet. If this is the case then installing a second NIC in the two pc's is unnecessary, since both pc's would have compatible network addresses to begin with.

I guess i'm most confused by the statement that:
"Both of the internet connections are through a shared cable modem and router. We have separate internet accounts."
If you share the same proprietary Cable modem then you should be using the same ISP.
 
Old 02-12-2004, 08:51 AM   #11
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Unseen
When you do a netstat -rn on the red hat machine, what do you get?
netstat -rn provides the following output:

[michael@localhost michael]$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
 
Old 02-12-2004, 09:11 AM   #12
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Re: Terms...

Quote:
Originally posted by charon79m
First off.... the two machines are on the same subnet, 192.168.0.X. Since that is the case, there is no need to route between them. They should be able to see eachother without any routing entries in "neat."

If you remove that static route you entered in "neat" are you now able to ping?

Also, you mentioned that these machines are connected together through a "seperate router." Do you mean, switch or hub?

MrKnisely
Removing the static route did resolve the warning that I was receiving. However, I still cannot ping.

This is the configuration of the LAN.

Box 1: HP Vectra VL running RH9 and WinXP (home). Eth0 is cabled to an Etherfast cable DSL router and then to the cable modem.

Box 2: Compaq Presario running WinXP (Home Ed) cabled to same Etherfast cable DSL router.

Using this, both machines obtain separate dynamic IP addresses and access to internet.

Both machines access the internet just fine with this arrangement.

Box 1: Eth1 is cabled separately to Netgear dual speed hub.
Box 2: separate NIC cabled to the same Netgear hub.

I am trying to preserve the separate links to the cable router, and have a separate LAN connecting the 2 computers.

When both machines are running WinXP, either can access the internet, and file sharing can be done between the two computers. The whole system works.

However, when I am running RH9, I cannot ping to my wife's WinXP box.. I can ping from the XP box to the RH9 box. There is no firewall currently running on the XP box.
 
Old 02-12-2004, 09:35 AM   #13
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by fataldata
You are using a shared cable modem. To get both machines to attach to the modem do you use a hub or are there multiple ports on the modem itself? Also what IP addresses are on the NIC's used to connect to the internet. I only ask b/c most times you have a 192.168.xxx.xxx/16 network on an internal LAN and the client pc's use the modem as the gateway to the internet. If this is the case then installing a second NIC in the two pc's is unnecessary, since both pc's would have compatible network addresses to begin with.

I guess i'm most confused by the statement that:
"Both of the internet connections are through a shared cable modem and router. We have separate internet accounts."
If you share the same proprietary Cable modem then you should be using the same ISP.
I appreciate your help. I am probably using the wrong terminology. Both computers are cabled to an Etherfast cable DSL router. From there, only one cable runs to the cable modem. We have separate dynamic IP addresses.

When I run neat and select eth0, it says tht I automatically receive my IP address settings with dhcp. Selecting the DNS tab shows that I have a primary DNS: 24.153.22.67 and a Secondary DNS: 24.153.22.195.

When I select eth1 from the devices tab, I have placed a static IP address of: 192.168.0.1 and a submask of 255.255.255.0. Selecting the DNS tab shows the same primary and secondary DNS listings as for eth0.

Does this help? Clearly I am over my head as I am still only learning about setting up the LAN.
 
  


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
Cannot ping linux box from XP box antare Linux - Networking 10 03-10-2005 10:48 AM
why cant linux and winXP ping each other ? qwijibow Linux - Networking 5 07-23-2004 12:04 PM
XP Box won't connect to internet thru RH9 Box (firewall/dhcpd), it can only ping fire Rhapsodic Linux - Networking 4 07-10-2004 03:02 PM
Can ping box to box thru router - good sign? toastermaker Linux - Networking 15 12-07-2003 12:00 AM
Cannot ping between WinXP and Mandrake 9.1 iannai Linux - Networking 2 06-09-2003 08:01 AM

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

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