Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
GetNetWise: You
e One Click Away

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Recommend Us
Surveys

Features
HOWTOs
News
News Archive
NukeSentinel
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 157 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  
Linux Knowledge Base and Tutorial: Forums



Linux Tutorial :: View topic - IP Configuration
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IP Configuration

 
Post new topic   Reply to topic    Linux Tutorial Forum Index -> Networking
View previous topic :: View next topic  
Author Message
zimbo
Beginner


Joined: Feb 06, 2006
Posts: 84
Location: London UK (Cyprus)

PostPosted: Sat Jun 17, 2006 2:55 pm    Post subject: IP Configuration Reply with quote

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? Embarassed i know what broadcasting is but why do you need to add an address to broadcast?

Thanks!
Back to top
View user's profile Send private message
ffreeloader
Master


Joined: Aug 10, 2005
Posts: 579

PostPosted: Sat Jun 17, 2006 4:50 pm    Post subject: Reply with quote

Here is a pretty good description of the broadcast address and what it used for.

http://www.linktionary.com/b/broadcast_address.html
Back to top
View user's profile Send private message
zimbo
Beginner


Joined: Feb 06, 2006
Posts: 84
Location: London UK (Cyprus)

PostPosted: Sat Jun 17, 2006 7:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
ffreeloader
Master


Joined: Aug 10, 2005
Posts: 579

PostPosted: Sat Jun 17, 2006 9:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
zimbo
Beginner


Joined: Feb 06, 2006
Posts: 84
Location: London UK (Cyprus)

PostPosted: Sat Jun 17, 2006 10:07 pm    Post subject: Reply with quote

so i didnt *need to* give the linux box a broadcast address? Confused
Back to top
View user's profile Send private message
rijelkentaurus
Beginner


Joined: Aug 23, 2005
Posts: 391
Location: Greensboro, NC, USA

PostPosted: Sun Jun 18, 2006 6:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
ffreeloader
Master


Joined: Aug 10, 2005
Posts: 579

PostPosted: Sun Jun 18, 2006 7:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
linux_just_in_tim
Newbie


Joined: Dec 21, 2006
Posts: 6

PostPosted: Thu Dec 21, 2006 9:20 am    Post subject: The Broadcast messege Reply with quote

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
View user's profile Send private message
swaysmith
Newbie


Joined: Jan 09, 2010
Posts: 1

PostPosted: Sat Jan 09, 2010 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Linux Tutorial Forum Index -> Networking All times are GMT
Page 1 of 1

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001-2007 phpBB Group
  




Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content © 1994-2010 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressedly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.14 Seconds