| View previous topic :: View next topic |
| Author |
Message |
zimbo Beginner

Joined: Feb 06, 2006 Posts: 84 Location: London UK (Cyprus)
|
Posted: Sat Jun 17, 2006 2:55 pm Post subject: IP Configuration |
|
|
I just removed my DHCP server from my ADSL router and configured my debian box to pick up a static IP. All is well and im glad i learnt another tpoic today! BUT i got a few quick questions..
Let assume this is my interfaces configuration file:
| Code: | # The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.90
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255 |
what is the broadcast in this case? i know what broadcasting is but why do you need to add an address to broadcast?
Thanks! |
|
| Back to top |
|
 |
ffreeloader Master

Joined: Aug 10, 2005 Posts: 579
|
|
| Back to top |
|
 |
zimbo Beginner

Joined: Feb 06, 2006 Posts: 84 Location: London UK (Cyprus)
|
Posted: Sat Jun 17, 2006 7:39 pm Post subject: |
|
|
| thanks freddy so its best that one every host on your network you have 192.168.1.255 as the broadcast right? or not? |
|
| Back to top |
|
 |
ffreeloader Master

Joined: Aug 10, 2005 Posts: 579
|
Posted: Sat Jun 17, 2006 9:47 pm Post subject: |
|
|
| zimbo wrote: | | thanks freddy so its best that one every host on your network you have 192.168.1.255 as the broadcast right? or not? |
Broadcast address on any subnet is based on the subnet mask. In a /24 address scheme it is always x.x.x.255. Using other subnet masks the broadcast address will be different. in a /26 address scheme it will be x.x.x.63, x.x.x.127, x.x.x.191, or x.x.x.255 depending on the network address. Say you have a 192.196.0.0 network address but with a /22 subnet mask. The broadcast address for that subnet would be 192.168.3.255 as the /22 subnet mask has 1024 possible IP addresses in it.
And, yes, if you want your machines to be able to listen to broadcasts, and make the broadcasts they need to, they need to know what the broadcast address will be. |
|
| Back to top |
|
 |
zimbo Beginner

Joined: Feb 06, 2006 Posts: 84 Location: London UK (Cyprus)
|
Posted: Sat Jun 17, 2006 10:07 pm Post subject: |
|
|
so i didnt *need to* give the linux box a broadcast address?  |
|
| Back to top |
|
 |
rijelkentaurus Beginner
![]()
Joined: Aug 23, 2005 Posts: 391 Location: Greensboro, NC, USA
|
Posted: Sun Jun 18, 2006 6:43 pm Post subject: |
|
|
| Say, for instance, that you have a network with 10 users. Your machine would broadcast out to find the other machines on the network and build a picture of the network and its shared resources. You probably didn't *need* a broadcast address for a 1 PC network, or perhaps even 2 or 3...but you'll need to know the IP of the resource you wish to connect to, because your machine will be unable to discover that information on its own. That's the biggest benefit I see. |
|
| Back to top |
|
 |
ffreeloader Master

Joined: Aug 10, 2005 Posts: 579
|
Posted: Sun Jun 18, 2006 7:47 pm Post subject: |
|
|
| Quote: | | so i didnt *need to* give the linux box a broadcast address? |
I am not quite sure how you arrived at this from what I said. I would suggest you install etheral and capture network traffic on your PC for a while. Then go look at what the broadcast address is being used for by what the packets etheral captures on the broadcast address are being used for.
Whenever possible look at real world applications of what your questions are. If you don't know what a broadcast address is look at the packets that are being broadcast. See what they are being used for think about how your computer and the rest of the network would react if your computer didn't know the broadcast address. If you don't understand what a DNS server is doing capture packets on a DNS server and look at the information in them. This will give you a much better understanding than anyone else's answers are likely to give you because even though you read someone else's words you will still have never seen the practical application of the concepts you are asking about if you don't research it out in the real world yourself. |
|
| Back to top |
|
 |
linux_just_in_tim Newbie

Joined: Dec 21, 2006 Posts: 6
|
Posted: Thu Dec 21, 2006 9:20 am Post subject: The Broadcast messege |
|
|
Hi guys,
Broadcast means if you want to send any request from your terminal to all the terminals. Now when you specify any range in your network you can actually send messeges bydefault to those messeges which are valid according to the iprange.
You can specify with the help of /24 or /22 or anything. So if you put all 1's in your broadcast-ipaddress then those ip's which match the range can get the messege which is meant for the whole group others not in the range do not get the message.
Thank You.
$AB$ |
|
| Back to top |
|
 |
swaysmith Newbie

Joined: Jan 09, 2010 Posts: 1
|
Posted: Sat Jan 09, 2010 1:12 pm Post subject: |
|
|
Swaysmith
the subnet mask is based on broadcast ,broadcast is terminal address which broadcast all the terminal If you don't understand what a DNS server is doing capture packets on a DNS server and look at the information in them. |
|
| Back to top |
|
 |
|