LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-28-2005, 04:40 PM   #1
noahzenzen
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Rep: Reputation: 0
can't ping other systems


I am having kind of a unique problem (or at least I think). I had my linux box off of my network for a week or two and when I brought it back up I am running into a problem where I can't ping other devices on my network. The weird thing is that other devices can ping my linux box.

I am pretty new to linux and I was trying to configure the box as a router but was unsuccesfull. I didn't think that I changed enough configurations to do this.

I am wondering if anyone has any ideas, I need this fixed as quickly as possible because I am now at the stage I can implement my server in my business.

I am using this server as a webserver and email server. Right now I can't get the the websites that I have on the box so even though I get a reply from the linux box when I ping it, it isn't responding to other requests.

If someone would like to email or talk directly I would be extremely happy to do so.

Thanks for your help.

Noah

Last edited by noahzenzen; 07-28-2005 at 04:42 PM.
 
Old 07-29-2005, 10:13 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
post the output of
ifconfig
route -n
iptables -nvL
iptables -nvL -t nat

good luck.
 
Old 07-29-2005, 04:34 PM   #3
noahzenzen
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Here is the output of those commands

IFCONFIG:

eth0 Link encap: Ethernet HWaddr 00:60:97:CF:4D:FB
inet addr: 192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:129 dropped:0 overruns:131 carrier:131
collisions:0 txqueuelen:1000
RX bytes:10240 (10.0 Kb) TX bytes:0 (0.0b)
Interrupt: 11 Based address:0xa000

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:3766 errors:0 dropped:0 overruns:0 frame:0
TX packets:3766 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:356328 (347.9 kb) TX bytes:356328 (347.9 kb)


ROUTE -N:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0eth0


IPTABLES -NVL:

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCETP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination


IPTABLES -NVL -T NAT:

Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination


Above is the output of the commands that you said I should put in. I do want to let you know that I was case sensive I just capitalized everything for header purposes. I hope this helps because I'm out of guesses. I just uninstalled the NICs that were in the box and made sure that the profile for the NICs weren't there anymore. I did reboots between uninstalls and reinstalls and I am having the same issue.

If there is anything else that you might have me run I would be happy to do it.

Thanks for the help so far!!! I really need this fixed.

Noah
 
Old 07-29-2005, 10:22 PM   #4
noahzenzen
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
new information

Ok.... I feel a bit stupid but it still isn't working. The whole computer isn't on the network at all. I mean, I can't ping it or ping from it. I have a wireless node on my network pushing out a wireless signal to my surrounding area that I must have gave the 192.168.0.4 address to and that is what was replying. The only thing that doesn't make sense is that it was replying to the host name of the linux box which is RHLINUX.

I have since gave the linux box (RHLINUX) a new IP address of 192.168.0.5 and it still can't ping anything and no other computer on my network can ping it. Basically it isn't on the network at all. Below is how I have my other computers on the network configured and each of them work just fine.

Computer 1 192.168.0.2 (functional)
Computer 2 192.168.0.3 (functional)
Wireless node: 192.168.0.4 (functional)

Linux box: 192.168.0.5 (not functional)

All have the same subnet mask of 255.255.255.0 and the same gateway of 192.168.0.1

I don't know if this new information will help any or not. I am hoping that the above commands will help out. I really don't want to reinstall the OS because there is a piece of software that installed that was kind of difficult to configure.

Thanks again for your help!!!!

Noah

Last edited by noahzenzen; 07-29-2005 at 10:24 PM.
 
Old 07-30-2005, 04:17 AM   #5
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
Re: Here is the output of those commands

Quote:
Originally posted by noahzenzen
IFCONFIG:

eth0 Link encap: Ethernet HWaddr 00:60:97:CF:4D:FB
inet addr: 192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:129 dropped:0 overruns:131 carrier:131
collisions:0 txqueuelen:1000
RX bytes:10240 (10.0 Kb) TX bytes:0 (0.0b)
Interrupt: 11 Based address:0xa000
i asked u to post the iptables rules cos it might block network activity. but it is empty and accepts all of requests.

take a look at the errors in TX packets. after u changed the ip of linux have u had same TX/RX errors?

good luck.

Last edited by maxut; 07-30-2005 at 04:18 AM.
 
Old 07-30-2005, 10:30 AM   #6
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Howzit

Well the reason why it responds to RHLINUX is because u are ping the localhost name which is being resolved by you local machine, in other words if u run this Cmdr the results will be the same ping 127.0.0.1. It seems that that it is a physical connection problem. Check the connections between the LAN card and the Transmitter it may be some interference or something like that. If possible try placing a NIC instead of the WLAN card.

cheers
 
Old 07-30-2005, 01:47 PM   #7
noahzenzen
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
I replaced the network cable thinking it might be that but that didn't work out. I do have lights both on the NIC and the switch that it is plugged into so I don't think that it's a connection problem. About the only other thing that I was going to try physically would be another NIC to see if that helps.

From here I really don't know how to get it on the network or what files to look at to see if they are different than the default. I am thinking about reinstalling the system and going through that pain process because I can't think of anymore avenues.

I guess I know now not to mess around with trying to make a router out of my linux box.
 
Old 07-30-2005, 05:16 PM   #8
Walman
Member
 
Registered: Jun 2004
Location: Venezuela
Distribution: RHEL ,Ubuntu, Slax, Kali
Posts: 95

Rep: Reputation: 15
Hi

I would first of all , will check if I can ping to myself . If you can , then will look on the /etc/hosts
file to see if is properly configured . THe machine you are trying to ping must be listed in that
file
 
Old 07-30-2005, 05:52 PM   #9
noahzenzen
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Ok..... I've got something for you! I just said screw it and reinstalled the whole OS (Red Hat Linux Enterprise AS v3). You will never guess.... I'm still can't get it on the network. Here is what I know.

Fresh install of OS
Can't grab a dynamic IP from cable router/modem
If I give it an IP it can't ping out or will not reply (says destination host unreachable).
I have tried two different network cards
I have tried three different network cables
I have tried two different ports on my NEW switch that my other boxes are attached to just fine.

I really don't know what else to try. I guess I've determined that I didn't screw anything up in the iptables while trying to configure the router.

The only thing else that I can think of that you should know is the computer is physically located in my basement by my utilities (water heater, air circulation unit, heater etc...) I can't believe that has an impact but the system was working when I had it upstairs so I just don't know what to do.

Does anyone have any ideas?!?!!?

I'll rerun the above commands and let you know if anything has changed since the first output.

Thanks for everyones help so far!

Noah
 
Old 07-30-2005, 09:16 PM   #10
noahzenzen
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Totally confused

Ok... I've come to some kind of conclusion that my next step should be hardware diagnosis. Does anyone know of a hardware troubleshooting program that I could put on disk that will test out all of my components?

I don't know if there is something internal to linux that I can run or if I need to create a bootable cd.

Thanks for the help.

Noah Zenzen
 
Old 07-31-2005, 01:30 PM   #11
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Howzit

Try running a command called tcpdump and try capture this output to a file so that u can analyse later. You said that this machine is getting the IP via DHCP if this is thte case then there should be a entry or a request to the DHCO machine and a answer that will prove that the NIC is up and running. If nothing comes up then there is a problem with your machine.

What distro are u running?

Di u have other machines on your network and if so are they recieveing the IP from the modem/router

cheers
 
Old 07-31-2005, 03:37 PM   #12
noahzenzen
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
I will try that tcpdump and see what happens.

Here is what I have...

Red Hat Linux Enterprise server AS version 3

I was trying to set the server up either DHCP or STATIC. I would of course prefer static but right now I am just trying to get the thing on the network. I do have other machines on the network (all windows machines). The only other thing that I have on my network is a linux based wireless node to distribute a wireless signal. The other systems online are able to run either DHCP or Static but as of right now I turned the DHCP service off of my router/modem just in case that was doing something weird.

I will try and post the results of the tcpdump very soon.
 
Old 08-01-2005, 09:07 PM   #13
noahzenzen
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
RESOLUTION

Sorry it took me so long to post this. I just want everyone to know that I was able to fix the problem. What it boils down to was a compatibility issue between my cable modem/router device that was just installed an Red Hat Enterprise 3. I was able to down grade my Linux OS to Red Hat 7.3 and it popped online just fine.

Don't ask me why there is an issue with that modem/router but I guess I found out the hard way. My provider (comcast) never thought and right now still doesn't think (until I call them back) that there is an issue with that version of Linux. Unfortunately it also is the only modem/router they support for my service that I am getting.... so I am stuck. At least it works now.

Thanks for all the help everyone, I really appreciate it.

Noah Zenzen
 
Old 08-02-2005, 08:47 AM   #14
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Howzit

I saw that u where using a version of RH AS which ia server based OS which will have less compatibility for home use I thinkm it would a wise idea to change that version to WS which is more suited for a workstation or maby try dnld Fedora and replace the RH 7.3

Glad everthing is working

cheers
 
Old 08-03-2005, 04:34 PM   #15
noahzenzen
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
I appreciate the reply and idea. I have an issue with the software that I need to run on this box. First of all I didn't have a version of WS and I don't know if that would work because my guess is it had to do with the kernel version. The software that I need to run does work on Fedora 2 but the kernel still might be an issue and I am not impressed with the stability of FC2.

Thanks for all the help everyone!

Noah
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
I can ping google.com successfully,but ping client(in my intranet) failed.Why? whepin Linux - Newbie 4 12-30-2001 04:54 AM

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

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