LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-26-2008, 02:39 PM   #1
sysslack
Member
 
Registered: Feb 2006
Posts: 69

Rep: Reputation: 15
ping -b


I tried simple syntax according to the man page on my slackware 12 system
ping -b 192.168.0.255

but got no reply.

And I wonder if it is possibly to enable ping broadcast just for my home lab in linux, or do I have to compile a new kernel for accepting broadcast request.

It has nothing to do with firewall rules. I can ping my hosts in ordinary way
 
Old 05-26-2008, 03:43 PM   #2
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by sysslack View Post
I tried simple syntax according to the man page on my slackware 12 system
ping -b 192.168.0.255

but got no reply.

And I wonder if it is possibly to enable ping broadcast just for my home lab in linux, or do I have to compile a new kernel for accepting broadcast request.

It has nothing to do with firewall rules. I can ping my hosts in ordinary way
What result are you looking for? Are you trying to map out your network, or trying to conduct/emulate a smurf attack?

I did the same thing and got results, although I didn't get responses from every IP on the network:

Code:
root@slackbox:~# ping -b 10.150.1.255
WARNING: pinging broadcast address
PING 10.150.1.255 (10.150.1.255) 56(84) bytes of data.
64 bytes from 10.150.1.1: icmp_seq=1 ttl=64 time=2.72 ms
64 bytes from 10.150.1.1: icmp_seq=2 ttl=64 time=0.872 ms
64 bytes from 10.150.1.1: icmp_seq=3 ttl=64 time=0.843 ms
64 bytes from 10.150.1.1: icmp_seq=4 ttl=64 time=0.836 ms
64 bytes from 10.150.1.1: icmp_seq=5 ttl=64 time=0.837 ms
64 bytes from 10.150.1.1: icmp_seq=6 ttl=64 time=0.829 ms
64 bytes from 10.150.1.1: icmp_seq=7 ttl=64 time=0.833 ms
64 bytes from 10.150.1.1: icmp_seq=8 ttl=64 time=0.831 ms
It appears that the impact of pinging the broadcast has been lessened considerably. Maybe checking your arp cache after such broadcast pinging may help determine what hosts are live within the network segment...

Last edited by unixfool; 05-26-2008 at 04:16 PM.
 
Old 05-27-2008, 11:55 AM   #3
sysslack
Member
 
Registered: Feb 2006
Posts: 69

Original Poster
Rep: Reputation: 15
Thank you for your reply!

Last edited by sysslack; 05-27-2008 at 12:19 PM.
 
Old 05-27-2008, 12:17 PM   #4
sysslack
Member
 
Registered: Feb 2006
Posts: 69

Original Poster
Rep: Reputation: 15
Thank you for your reply! I understand it is not god to do but if I want to understand networking better. Then I want to test it on my own network, not just read the theory.So it would be valuable to know how to activate it!
 
Old 05-27-2008, 12:28 PM   #5
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by sysslack View Post
Thank you for your reply! I understand it is not god to do but if I want to understand networking better. Then I want to test it on my own network, not just read the theory.So it would be valuable to know how to activate it!
The several pages I visited yesterday hint that kernel code was implemented to lessen the impact of smurf attacks, which is probably why my test results look the way they do.

I suggest perusing Google, just as I did. This isn't a cop-out but just an honest suggestion. All I did was google a bit using the keywords "ping -b" and "ping broadcast"...I got a ton of very good hits.
 
  


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
Simple question about command syntax ping/log ping results ohalnet Linux - Networking 1 07-25-2006 04:46 AM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 07:44 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 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

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

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