Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I was configuring my wireless usb device one of the things that I needed to know was a Broadcast number which has the same setup as an ip number. So my question is what is this number and where can I find what mine is. By the way I have the device working in windows xp, does anyone know what the corresponding number is in that os.
Thanks,
Ben
Originally posted by BHanrahan
When I was configuring my wireless usb device one of the things that I needed to know was a Broadcast number which has the same setup as an ip number.
It is normally the last number of your subnet, this is usually xxx.xxx.xxx.255 assuming you are using a full class C network.
Quote:
So my question is what is this number and where can I find what mine is. By the way I have the device working in windows xp, does anyone know what the corresponding number is in that os.
At a command prompt (start -> run -> cmd), type "ipconfig" and I *think* it should tell you.
As to what the Broadcast address *is*, it's actually surprisingly simple, but perhaps a little tricky to explain.
Many network media types - a good example is Ethernet - have a broadcast facility, which allows one station (computer wth a network card) to send a frame (in our case, holding an IP packet) that's intended to be received by every connected station.
Normally, you only send an Ethernet frame to one particular station, using an Ethernet address, which is also known as a MAC address. Your computer gets these from IP addresses by using a protocol called ARP.
But if you want to send - using IP - a packet to all computers on your IP network, then we need to set aside a special address that all the computers agree on, which gets translated to the special Ethernet broadcast address.
This *used* to be traditionally the "all zero" address - that is, all the bits in the subnet part of the IP address were all zeros - but this was switched some time ago to be the "all ones" address.
Hence on what used to be a class C, now known as a /24, the last number of your broadcast address will indeed be "255". Each number is 8 bits long, by the way, and is known as an "octet". On a /25 address, half the size of a /24, the broadcast address is still "all ones", which means it's likely to be either "255" or "127", depending on which half you have.
Thankfully, because these things are rather easier for computers to calculate than humans, there's copious tools to do it.
For instance, on RedHat, you needn't enter the broadcast address at all - you always need the netmask (which is, actually, that /24 or /25 or whatever in a different notation) - and it'll figure out the broadcast based on that, using ipcalc:
If you know the netmask, but need that /24 style - known as a "prefix length" or "CIDR notation" - then ipcalc will also do this for you, and vice versa. Try the above examples using "-p" and "-m" instead of (or as well as ) the -b.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.