Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-12-2010, 10:07 AM   #1
Registered: Jan 2007
Posts: 49

Rep: Reputation: 15
unable to ping the linux machine

i have two linux machines(machine1(rhel client) and machine2(rhel server))
i am able to login the machine2 from machine1
but i am unable to ping machine1 from machine2
fire wall is stoped in both machine
could you please help me on this
Old 07-12-2010, 11:09 AM   #2
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
may be the ICMP request disabled
Refer this
Old 07-12-2010, 11:43 AM   #3
Registered: Jan 2007
Posts: 49

Original Poster
Rep: Reputation: 15
thanks for your replay

still i am unable to ping
after adding the below line to /etc/sysctl.conf file:
net.ipv4.icmp_echo_ignore_all = 1
Old 07-12-2010, 11:10 PM   #4
LQ Newbie
Registered: Mar 2010
Location: Shanghai,China
Posts: 4

Rep: Reputation: 1
ping hostname or ping IP_addr?
Old 07-15-2010, 02:29 AM   #5
Registered: Nov 2006
Distribution: Fedora 7 & 9, Ubuntu
Posts: 41

Rep: Reputation: 15
hi chakribobby...

you misunderstood.. from the link

To enable ping request type the command:
echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_all
Old 07-15-2010, 02:40 AM   #6
LQ Newbie
Registered: Jul 2010
Distribution: Ubuntu 10.4, Fedora 13
Posts: 25

Rep: Reputation: 16
Use iptables to Allow ping request

maybe your linux firewal is blocking the request.

Iptables -A INPUT -p icmp -j ACCEPT
Old 07-15-2010, 06:17 PM   #7
Registered: Mar 2008
Posts: 18,550

Rep: Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778
What do you hope to gain from ping?


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
Can't Ping Linux CentOS 5.3 Machine to XP SP2 Windows Machine Moderns Linux - Networking 20 11-04-2009 12:33 AM
(Mepis) Windows machine cannot ping linux machine by IP mabtjie Linux - Networking 1 11-08-2008 09:54 AM
Unable to use wget and unable to ping machine from external source grunshaw Linux - Networking 3 10-24-2006 08:46 AM
Can't ping linux machine from windows Drunkalot Linux - General 1 10-14-2005 08:53 AM
Can't ping my linux machine by hostaname jdklein1975 Linux - Newbie 5 02-26-2003 05:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration