LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2009, 06:24 AM   #1
farooqnasim
Member
 
Registered: May 2009
Posts: 30

Rep: Reputation: 15
Red Hat Network Ping issue


i have a local network of 6 linux machines running redhat linux 4.4. i attached a new machine with that lan and configured it for networking.my machine is x7.x.com(192.168.1.7). it can ping all other machines (192.168.1.1 to 6) and all other machines can ping back to this but it can't ping srv.x.com(192.168.1.254) which is gateway for all) and srv(192.168.1.254) can't ping it back while others can ping with srv and srv can ping back, i have rechecked /etc/hosts and other networking files but all the enteries are correct.

how can i rectify this issu
 
Old 08-10-2009, 07:03 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
going by the working and non-working IP's I'd guess that your netmask is wrong, a /25 instead of a /24?
 
Old 08-10-2009, 07:49 AM   #3
farooqnasim
Member
 
Registered: May 2009
Posts: 30

Original Poster
Rep: Reputation: 15
i dont think netmask is wrong or ip is not working. i am new to linux and networking plz explain your answer. plz note that the machine im talking about was working correctly with the same hostname and ipaddress on this network(im new to this network too), due to some reasons i reinstalled red hat 4.4 and tried to connect it to the network

Last edited by farooqnasim; 08-10-2009 at 08:21 AM.
 
Old 08-10-2009, 11:43 AM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
nasim:

just recheck subnetmask if it is uniform between the server and the new machine. reload dhcp if it is running or disable from all. ping again.

if still it doesn't work, try check the cables and the hub, swap the outlet to one that is ping-ing correctly.

hope this can help.

Last edited by malekmustaq; 08-10-2009 at 11:45 AM.
 
Old 08-11-2009, 06:02 AM   #5
farooqnasim
Member
 
Registered: May 2009
Posts: 30

Original Poster
Rep: Reputation: 15
rechecked subnet, its same, no dhcp, all are the static ips within this LAN, rechecked everything but no ping to (192.168.1.254 gateway) while all others can ping x.x.x.7 and x.x.x.7 can ping back to others on this LAN.even i am able to mount remote disks on x.x.x.7 but can't ping x.x.x.254 and vice versa. i have noticed a service ldap running on other clients and server but not on x.x.x7. could it be the reason??? or any other services i need to check
 
Old 08-11-2009, 06:25 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
// The only thing I can suggest is that if you know something is different then by all means do check / enable it and if you have to compare all configs between two machines. Saying "can't ping" doesn't say much. Instead post complete stdout/stderr and if that doesn't show any messages run a strace on it.
 
Old 08-11-2009, 07:31 AM   #7
farooqnasim
Member
 
Registered: May 2009
Posts: 30

Original Poster
Rep: Reputation: 15
ping result to 192.168.1.254
xxxxxxx (xxxx) icmp_seq=1 Destination Host Unreachable
so on
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5001ms, pipe 4

pinging result to 192.168.1.3
64 bytes from xxxxxxxx(xxxxxx) icmp_seq=0 ttl=64 time=0.057 ms
so on
7 packets transmitted, 7 received, 0% packet loss, time 5999ms,
rtt min/avg/max/mdev=0.047/0.050/0.057/0.008 ms, pipe 2

Last edited by farooqnasim; 08-11-2009 at 07:40 AM.
 
Old 08-11-2009, 07:32 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
that's clearly not the *COMPLETE* message now is it?

Post full output of ifconfig, route -n, and arp -n
 
Old 08-11-2009, 09:02 AM   #9
farooqnasim
Member
 
Registered: May 2009
Posts: 30

Original Poster
Rep: Reputation: 15
output from this problematic machine
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.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
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth1
arp -n
Address HWtype HWaddress Flags Mask Iface
192.168.1.11 ether 00:1A:4D:46:51:89 C eth1
ifconfig
eth1 Link encap:Ethernet HWaddr 00:1A:4D:45:5D1
inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21a:4dff:fe45:5dd1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22930 errors:0 dropped:0 overruns:0 frame:0
TX packets:40135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4237352 (4.0 MiB) TX bytes:5524946 (5.2 MiB)
Interrupt:193 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2194 errors:0 dropped:0 overruns:0 frame:0
TX packets:2194 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2317688 (2.2 MiB) TX bytes:2317688 (2.2 MiB)
output from a machine which can ping 192.168.1.254 and can ping the problematic machine as well
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
arp -n
Address HWtype HWaddress Flags Mask Iface
192.168.1.254 ether 00:1A:4B:B0:54:68 C eth0
192.168.1.14 ether 00:1A:4D:45:5D:E9 C eth0
192.168.1.11 ether 00:1A:4D:46:51:89 C eth0
ifconfig
eth0 Link encap:Ethernet HWaddr 00:1A:4D:46:229
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21a:4dff:fe46:22d9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28523503 errors:0 dropped:0 overruns:0 frame:0
TX packets:30854263 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2446167612 (2.2 GiB) TX bytes:2720865479 (2.5 GiB)
Interrupt:193 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5553 errors:0 dropped:0 overruns:0 frame:0
TX packets:5553 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1838053 (1.7 MiB) TX bytes:1838053 (1.7 MiB)

Last edited by farooqnasim; 08-11-2009 at 09:18 AM.
 
Old 08-11-2009, 09:34 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If you post output like 'diff --side-by-side file0 file1' it is easier. Here:
Code:
# output from this problematic machine                        | # output from a machine which can ping 192.168.1.254 and can 
route -n                                                        route -n
Kernel IP routing table                                         Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface          Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1                | 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1                  | 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth1                   | 0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0

arp -n                                                          arp -n
Address HWtype HWaddress Flags Mask Iface                       Address HWtype HWaddress Flags Mask Iface
192.168.1.11 ether 00:1A:4D:46:51:89 C eth1                   | 192.168.1.254 ether 00:1A:4B:B0:54:68 C eth0
                                                              > 192.168.1.14 ether 00:1A:4D:45:5D:E9 C eth0
                                                              > 192.168.1.11 ether 00:1A:4D:46:51:89 C eth0

ifconfig                                                        ifconfig
eth1 Link encap:Ethernet HWaddr 00:1A:4D:45:5D1               | eth0 Link encap:Ethernet HWaddr 00:1A:4D:46:229
inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0  | inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21a:4dff:fe45:5dd1/64 Scope:Link            | inet6 addr: fe80::21a:4dff:fe46:22d9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1                UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

lo Link encap:Local Loopback                                    lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0                              inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host                                  inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1                          UP LOOPBACK RUNNING MTU:16436 Metric:1
So apart from "the problematic machine" using eth1 instead of eth0, "machine which can ping" ARP entries and both machines using IPv^ too I wonder what clues this holds...
 
Old 08-11-2009, 09:42 AM   #11
farooqnasim
Member
 
Registered: May 2009
Posts: 30

Original Poster
Rep: Reputation: 15
do you need any output from 192.168.1.254?
 
Old 08-11-2009, 10:12 AM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by farooqnasim View Post
do you need any output from 192.168.1.254?
If 192.168.1.254 can see 192.168.1.7 OK then not.

I don't have any clues so I'll just fire some shots: Does 192.168.1.11 have an eth0? If so what is it connected to? If not why are you using eth1? Is iptables enabled on 192.168.1.7? Could you, on "the problematic machine", run 'strace -v -T -o /tmp/strace_ping_192.168.1.3 /bin/ping -c1 192.168.1.3' and 'strace -v -T -o /tmp/strace_ping_192.168.1.254 /bin/ping -c1 192.168.1.254' and give use 'diff --side-by-side /tmp/strace_ping_192.168.1.3 /tmp/strace_ping_192.168.1.254'? Another long shot: could you copy over the complete /etc tree from 192.168.1.7 to a machine that works OK, check how many files differ and post filenames? Might want to run a script for that if you copy over the /etc/ tree to /tmp on the "good" machine:
Code:
find /etc -type f | while read FILE; do [ -f "/tmp${FILE}" ] && diff --brief "${FILE}" "/tmp${FILE}"; done

Last edited by unSpawn; 08-11-2009 at 02:20 PM. Reason: // .7/32 not .11/32
 
Old 08-11-2009, 02:09 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I would personally be running tcpdump on the remote server, and be checking to see if it is getting any arp requests when you do try to ping, as you appear to have no entry already in the arp cache. At the same time it might also be worth running tcpdump on a machine that you can ping, whilst pinging the one you can't, to ensure that that machine does see the arp requests.

in both cases I'd suggest you run "tcpdump -vn -i ethX arp or icmp" as root.
 
Old 08-11-2009, 02:21 PM   #14
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Good one. I've thought about the arp/tcpdump combo too. Dunno why I didn't offer it.
 
Old 08-11-2009, 02:42 PM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Every single problem I ever encounter I try to fix with tcpdump or wireshark. I have a tcp connection issue, I use tcpdump. I have an ssl handshake issue, I use tcpdump. I have an ldap bind issue, I use tcpdump. My chair squeaks, I use tcpdump. I want some lunch, I use tcpdump.
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Cant ping red hat by computer name iostreamproductions Red Hat 6 12-18-2008 08:19 AM
Red Hat Network Card Issue shanu_technical Linux - Networking 2 03-10-2006 06:05 PM
Red Hat - Browser does not fetch website but ping works learningkid Red Hat 3 09-12-2004 11:34 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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