LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-11-2005, 08:24 AM   #1
SAnton
LQ Newbie
 
Registered: Sep 2005
Location: Moscow
Distribution: Mandrakelinux 10.0 with kernel 2.6.3-7mdk
Posts: 16

Rep: Reputation: 0
Error: "Do you want to ping broadcast?"


Hello.

My LAN settings is:
IP adress: 192.168.157.2
Mask: 255.255.255.248
GateWay: 192.168.157.1

I have another computers in my LAN. They have following adresses:
192.168.157.1
and
192.168.157.3

I decided to ping those computers:

ping 192.168.157.1
OK

ping 192.168.157.2
OK

ping 192.168.157.3
Do you want to ping broadcast? Then -b

What does this mean?
How can i fix it?
 
Old 10-11-2005, 08:53 AM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Re: Error: "Do you want to ping broadcast?"

Quote:
Originally posted by SAnton
Hello.

My LAN settings is:
IP adress: 192.168.157.2
Mask: 255.255.255.248
GateWay: 192.168.157.1

I have another computers in my LAN. They have following adresses:
192.168.157.1
and
192.168.157.3

I decided to ping those computers:

ping 192.168.157.1
OK

ping 192.168.157.2
OK

ping 192.168.157.3
Do you want to ping broadcast? Then -b

What does this mean?
How can i fix it?
If you are getting a message of "do you want to ping broadcast for 192.168.157.3 " , it means tht you are having netmask of 255.255.255.252 (somehow you aint mentioned)

& in this you can only use ... 2 ip address 192.168.157.1 & 192.168.157.2
192.168.157.3 is your broadcast address in this case.

----------------------

With your settings as mentioned, 192.168.157.7 have to be the broadcast address.

And you can only use 6 valid ip address for your machines.

-----------------------

Go to this site : http://www.subnetmask.info/
For network calculator.

Feedback for any other info.

Last edited by amitsharma_26; 10-11-2005 at 08:56 AM.
 
Old 10-11-2005, 01:59 PM   #3
SAnton
LQ Newbie
 
Registered: Sep 2005
Location: Moscow
Distribution: Mandrakelinux 10.0 with kernel 2.6.3-7mdk
Posts: 16

Original Poster
Rep: Reputation: 0
OK. But I have 255.255.255.248 mask now.
255.255.255.252 was few days ago when I has only 2 computers in my network.

May be utility which I used to change mask doesn't work? How can I prove that my mask is really 255.255.255.248 ?
 
Old 10-11-2005, 02:37 PM   #4
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Quote:
Originally posted by SAnton
OK. But I have 255.255.255.248 mask now.
255.255.255.252 was few days ago when I has only 2 computers in my network.

May be utility which I used to change mask doesn't work? How can I prove that my mask is really 255.255.255.248 ?

Dear m not very sure abt mandrake... But most of the commands are same over all distro's

So you can use the command

ifconfig

Over there n c whts the mask.
Check it all machines.

Which utility you used to change the netmask earlier ???

Also tell me wht is 192.168.157.1 in your network????
Wht you mean by 192.168.157.1 being a gateway ??? You mean some router or switch ?

-------------------------
Good to know tht you are also using acer, mine is acer travelmate 4152 NLCI

Last edited by amitsharma_26; 10-11-2005 at 02:41 PM.
 
Old 10-12-2005, 05:47 AM   #5
SAnton
LQ Newbie
 
Registered: Sep 2005
Location: Moscow
Distribution: Mandrakelinux 10.0 with kernel 2.6.3-7mdk
Posts: 16

Original Poster
Rep: Reputation: 0
Here is result of ifconfig :
Code:
eth0      Link encap:Ethernet  HWaddr 00:00:86:50:77:59  
          inet addr:192.168.157.2  Bcast:192.168.157.3  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7746 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:476460 (465.2 Kb)  TX bytes:682 (682.0 b)
          Interrupt:9 Base address:0x4000 

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:30 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1994 (1.9 Kb)  TX bytes:1994 (1.9 Kb)
Hmm... It is very strange that I have broadcast adress 192.168.157.3 with mask 255.255.255.248.
How can I fix it?

I used Mandrake configuration utility to change the network mask.

192.168.157.1 is just a computer with 2 network cards to connect my network with another (bigger) network.

-----------------------
I don't know how to enable ACPI on my laptop
APM is working but I need sleep mode when close the lid. So I removed APM, but ACPI doesn't work...
 
Old 10-12-2005, 06:35 AM   #6
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
i guess u need just a reboot
 
Old 10-12-2005, 09:18 AM   #7
SAnton
LQ Newbie
 
Registered: Sep 2005
Location: Moscow
Distribution: Mandrakelinux 10.0 with kernel 2.6.3-7mdk
Posts: 16

Original Poster
Rep: Reputation: 0
I thought that reboot will help me. But...
 
Old 10-13-2005, 01:53 AM   #8
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
use the 'netmask' and 'broadcast' options


Quote:
ifconfig netmask <netmask > broadcast <broadcast > interface

http://www.faqs.org/docs/linux_netwo....ifconfig.html

Last edited by jayakrishnan; 10-13-2005 at 01:56 AM.
 
Old 08-22-2014, 03:49 AM   #9
gricks
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
worked example changing ifconfig

Quote:
Originally Posted by jayakrishnan View Post
use the 'netmask' and 'broadcast' options
Worked example using Xubuntu 14.04 (trusty):
Before 'ifconfig eth0' showed Bcast:192.168.0.1
Code:
sudo ifconfig eth0 broadcast 192.168.0.255
After 'ifconfig eth0' showed Bcast:192.168.0.255
Many thanks jayakrishnan!
 
  


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
"mythtv-setup" giving "Session management error: Authentication Rejected" Mitchua Ubuntu 0 10-09-2005 04:32 PM
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 12:49 PM
MA-311 on eth0 inaccessible via Linux, "Network Unreachable" error, no localhost ping LGMike Linux - Networking 14 09-21-2003 11:11 PM
My clients "can browse" outside but "can't ping" outside mrnoe Linux - Networking 1 09-05-2003 02:55 PM
"host" ok, but "ping" can't find ip address hardigunawan Linux - Networking 2 05-16-2002 05:41 PM

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

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