LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-27-2003, 12:26 AM   #1
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
What is a broadcast ip?


I was looking at my ifconfig output and I'm trying to setup a network. So what is a broadcast ip?
 
Old 01-27-2003, 12:42 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
braodcast ip would be your network with 255 for the last octet


ip 192.168.0.1, netmask 255.255.255.0, network 192.168.0.0, broadcast 192.168.0.255
 
Old 01-27-2003, 02:02 AM   #3
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Original Poster
Rep: Reputation: 30
Ok thanks a bunch.
 
Old 01-27-2003, 05:06 AM   #4
jdc2048
Member
 
Registered: Jul 2002
Location: Ohio, USA
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
What David stated will work on a non-subnet'd class c network. If you subnet that, then it would be the highest IP in the subnet (i.e. network is from 192.168.1.1 to 192.168.1.32, then 32 is the last octet). I figure he knows that, he was just trying to keep it simple.
 
Old 01-27-2003, 12:13 PM   #5
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 877

Rep: Reputation: 184Reputation: 184
umm, .32 would be the network address of the next subnet

192.168.1.1 with a 255.255.255.224 mask as in your example would give you a broadcast address of 192.168.1.31

Basically the broadcast address for any subnet is the value you get when you set all the host bits to 1.

In the above example the .224 mask would give you 3 network bits and 5 bits for the host address. Set all these host bits to a 1 and you get 31.

Sorry to be picky :-)
 
Old 01-27-2003, 06:44 PM   #6
jdc2048
Member
 
Registered: Jul 2002
Location: Ohio, USA
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
You are right sir, I stand corrected.
 
Old 01-28-2003, 08:06 AM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
it can get a lilttle complicated if your on a subnetted network

you can use this

http://www.a-plus.net/Useful_Netmask.htm
 
Old 01-28-2003, 10:56 AM   #8
decates
LQ Newbie
 
Registered: Jan 2003
Location: UK
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
And in case you STILL want to know what a broadcast ip is...

Quote:
Broadcast is the term used to describe communication where a piece of information is sent from one point to all other points. In this case there is just one sender, but the information is sent to all connected receivers.
So the broadcast address can be used to send a message to all the computers connected to a LAN (e.g. ARP uses it to send address resolution queries - try 'tcpdump' and you will get the idea)

'Hey, what is a car?'
'It's a Ford or a Toyota or a Rover... '
'Umm, thanks a bunch.'
 
  


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
Command to broadcast for IP? jeopardyracing Linux - Newbie 5 10-20-2004 03:47 PM
Time Broadcast BigDawg Linux - Networking 4 12-04-2003 01:53 AM
How can I get my broadcast to run hamadashi Linux - Networking 1 09-24-2003 10:12 AM
how to broadcast tv over an ip network? andrewlkho Linux - General 5 08-10-2003 10:46 AM
What does Broadcast mean? BHanrahan Linux - Newbie 3 09-03-2002 01:02 PM


All times are GMT -5. The time now is 01:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration