LinuxQuestions.org
Visit Jeremy's Blog.
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 01-02-2009, 07:18 AM   #1
joemon83
Member
 
Registered: Jan 2009
Posts: 71

Rep: Reputation: 11
Pinging Broadcast IP address


When I ping a broadcast IP address, I don't get an icmp reply packets from all the IP address in the subnet. But rather I would only get an icmp reply packet from the first IP address in the subnet. Why is that so ?

Note: All the IP addresses of this subnet belongs to the same server & I am pinging from this server itself.
 
Old 01-02-2009, 10:32 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,103
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
http://linux.die.net/man/8/ping

I recommend fping for that.
http://www.fping.com/
http://fping.sourceforge.net/man/
 
Old 01-02-2009, 11:17 AM   #3
joemon83
Member
 
Registered: Jan 2009
Posts: 71

Original Poster
Rep: Reputation: 11
Thanks for the reply teckk. Well, fping can be used to send ICMP echo request to a large number of hosts simultaneously. But still my question is left unanswered Why is that I only receive reply from the 1st IP address in the subnet & not from other IP addresses in the subnet ?
 
Old 01-02-2009, 06:26 PM   #4
malaprop
LQ Newbie
 
Registered: Dec 2008
Location: TX
Distribution: Ubuntu 8.10
Posts: 26

Rep: Reputation: 16
quick read

http://en.wikipedia.org/wiki/Smurf_attack
 
Old 01-02-2009, 11:25 PM   #5
joemon83
Member
 
Registered: Jan 2009
Posts: 71

Original Poster
Rep: Reputation: 11
Hi malaprop,

Thanks for the link. So most hosts won't respond to ping sent to broadcast IP address. As a said before, is there any special reason that only the first IP in the subnet responds to the ping ?
 
Old 01-03-2009, 08:17 AM   #6
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Dumb question, is the first IP a x.x.x.1 address?
 
Old 01-03-2009, 11:54 PM   #7
joemon83
Member
 
Registered: Jan 2009
Posts: 71

Original Poster
Rep: Reputation: 11
The subnet which I am talking about is x.x.x.40/29 ; the first IP address is x.x.x.41 ; the broadcast IP is x.x.x.47
Hope this will give u an idea....

Last edited by joemon83; 01-03-2009 at 11:55 PM. Reason: spelling mistake
 
Old 01-04-2009, 09:14 AM   #8
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Okay, so what's the gateway for that subnet?

I only ask because when I ping broadcast on all my subnets, it's always my router that answers back.
 
  


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
broadcast pinging help bruse Mandriva 4 04-02-2005 07:51 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
-b Allow pinging a broadcast address. suguname Linux - Newbie 2 02-24-2005 07:42 AM
Don't know what broadcast address is? blmartin777 Debian 10 05-07-2004 02:06 PM
question about network address and broadcast address yuzuohong Linux - Networking 1 09-18-2002 11:47 AM

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

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