LinuxQuestions.org
Help answer threads with 0 replies.
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 04-15-2003, 06:17 PM   #1
78silversc
LQ Newbie
 
Registered: Apr 2003
Location: NJ
Posts: 5

Rep: Reputation: 0
can ping self but not router


greetings all,

I am setting up a server on my network that is running Redhat, I have no experience with RedHat but have a little in FreeBSD.
The problem I am having is: On theserver I can ping 127.0.0.1 AND the IP that I gave it (itself)...but I can not ping the router (xxx.xxx.xxx.1) nor the nameserver (xxx.xxx.xxx.4) nor anything else .. (except itself) eth0 is up but I just cannot ping anything but 127.0.0.1 and thw ip address I gave it.
I can not ping the router, anything ON my network, anything outside my network.

Now..be nice I have no experience with RedHat.
If there is any other information you require, please let me know.

Thank you
 
Old 04-15-2003, 06:31 PM   #2
basd
Member
 
Registered: Apr 2002
Location: Riverside CA USA
Distribution: SuSE 11
Posts: 83

Rep: Reputation: 15
well, that is interesting since I have precisely the opposite problem -- I can ping my router but not localhost or the IP I assigned to the network adapter.

And yet, my system works ...
 
Old 04-15-2003, 07:18 PM   #3
osfestus
Member
 
Registered: Feb 2003
Posts: 92

Rep: Reputation: 15
Need more info silver. What is the output of ifconfig and what is the router gateway interface ip and subnet mask?
 
Old 04-15-2003, 10:59 PM   #4
reaz82
LQ Newbie
 
Registered: Aug 2002
Location: Austin
Distribution: Gentoo/FreeBSD
Posts: 24

Rep: Reputation: 15
try using dhcpcd eth0 to try to connect to the router and
get an ip for itself rather than supplying it an ip yourself..

that might solve the issue of erroneous subnet parameters
etc.. but give that a shot and report what happens..

thanx
 
Old 04-21-2003, 07:21 PM   #5
78silversc
LQ Newbie
 
Registered: Apr 2003
Location: NJ
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you for the response
The output of ifconfig of course was quite long. Is there anyhting specifically I should look for?

It does see eth0
shows the inet address i gave it, the proper broadcast and netmask too (255.255.255.0)
It says:
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1

It also sees lo the local loopback with inet addr 127.0.0.1

Thanks again.
 
Old 04-21-2003, 07:27 PM   #6
sandy
Member
 
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230

Rep: Reputation: 30
Is your ip static or dynamic ?
 
Old 04-21-2003, 08:01 PM   #7
78silversc
LQ Newbie
 
Registered: Apr 2003
Location: NJ
Posts: 5

Original Poster
Rep: Reputation: 0
sandy, thank you for responding

it is static
 
Old 04-21-2003, 09:14 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,751

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
So whats the error message when you try to ping your router? network unreachable, unknown host etc

Does the router have active link lights and are they on for the ports that your PC's are plugged into?

Do the lights on the router or network card active lihts blink when you ping the router?

From the output of ifconfig are there any rx/tx errors? Any collisions?
 
Old 04-22-2003, 02:00 AM   #9
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
I almost hate to say this, but have you checked your cable? Maybe tried a known good cable?

Last edited by camelrider; 04-22-2003 at 02:02 AM.
 
Old 04-22-2003, 05:28 AM   #10
Anubhuti
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
Hi,
I am facing the same problem....
able to ping myself but not the router...
it says network unreachable...
my IP is static...
the output of my ifconfig -a is.....

[root@localhost root]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:40:CA:BB:FC:A7
inet addr:172.16.56.16 Bcast:172.16.56.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3788 (3.6 Kb) TX bytes:240 (240.0 b)
Interrupt:9 Base address:0x9000

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:192 errors:0 dropped:0 overruns:0 frame:0
TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15764 (15.3 Kb) TX bytes:15764 (15.3 Kb)



tell me what to do???????
 
Old 04-22-2003, 01:49 PM   #11
78silversc
LQ Newbie
 
Registered: Apr 2003
Location: NJ
Posts: 5

Original Poster
Rep: Reputation: 0
ok I should have waited for you guys to respond....instead in all of my OCD based wisdom, I fiddled with netconf ..Now I can only ping 127.0.0.1 no longer the IP I assigned it.

camelrider
Cables...are good tried 3 all came off of working servers / in working ports.

michaelk
Now the message is "network unreachable" whenever I attempt to ping anything but 127.0.0.1
Prior to my insane fiddling I would get "destination host unreachable"

Network card light green router port light green Cables checked using one I know is good.

Replaced NIC with new one...was recognized by redhat and installed.... reason I replaced NIC was that this problem was there with old NIC. Everything looked OK so I changed NIC cards...problem still exists. Put card in different PCI Slot...just in case.
 
Old 04-22-2003, 03:04 PM   #12
sandy
Member
 
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230

Rep: Reputation: 30
I also faced this problem some time before but solved that when i added mac address of my comp corresponding to my ip in the gateway, since your ip is static.
 
Old 04-22-2003, 03:17 PM   #13
osfestus
Member
 
Registered: Feb 2003
Posts: 92

Rep: Reputation: 15
double check that the subnet mask is the same for all devices that you wish to communicate and that the corresponding ip's all fit within the network boundaries set by the mask.
 
Old 04-22-2003, 03:34 PM   #14
78silversc
LQ Newbie
 
Registered: Apr 2003
Location: NJ
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you for the responses.

sandy
Where and how did you do that? I'll try it.

osfestus
Done and subnetmask is ok and IP's fit within boundries

Thanks again..this is very perplexing and very frustratiing.
 
Old 04-22-2003, 03:47 PM   #15
slipsy
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake 8.2 Redhat
Posts: 20

Rep: Reputation: 0
Commiserations

I have a really similar experience with Redhat 8.0 jusat recently and gave up. One minute the router and redhat were fine the next minute they lost contact completely/ Tried it static and dynamic. Hopeless.

Will watch with interest here!

slipsy
 
  


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
Can't even ping my router! krtaeous Linux - Networking 20 11-20-2005 03:07 PM
Cannot Ping a router atitsince82 Linux - Networking 2 05-10-2005 12:37 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
Can't ping router! kalleanka Linux - Networking 2 05-27-2004 01:50 AM
cant ping router johnharry Linux - Networking 3 02-17-2003 01:24 PM

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

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