As background for other readers...
There are four types of IPv4 "broadcast" addresses, of which only two
are often used as a broadcast address.
The first is the unconfigured, or all-0s address: 0.0.0.0. However, this
should never be seen as a destination IP address, even for broadcast.
The second is the all-subnets address (probably not it's real name), or
all-1s address: 255.255.255.255. This address should only be used when
the sending interface is in an unconfigured state (ie. DHCP).
The third is the network broadcast, and is deprecated. It's pretty much
equivalent to subnet broadcast addresses when the subnet mask is exactly
divisible by 8.
$ ipsc -a 10.0.0.0/8
Network class: A
Network mask: 255.0.0.0
Network address: 10.0.0.0
Full subnet mask: 255.0.0.0
Bit map: nnnnnnnn.hhhhhhhh.hhhhhhhh.hhhhhhhh
Note that I said /8, which is the same as 255.255.255.0. However, the
first three bits of a 10 network (10.x.x.x) are 00001010, which does not
indicate a Class A network (Class A network, which have a netmask of
255.0.0.0 used to be indicated by the first three bits being 001) But's
that is no longer the case.
$ ipsc -a 10.0.1.0/16
Network class: A
Network mask: 255.0.0.0
Network address: 10.0.0.0
Full subnet mask: 255.255.0.0
Bit map: nnnnnnnn.ssssssss.hhhhhhhh.hhhhhhhh
(Note the ss in the the bit map). In a subnet broadcast address, the
forth type of broadcast address, and the other common type), is one
where all the hs in the the above bitmap are 1, so 10.2.0.0/16 has
a subnet broadcast address (commonly called "broadcast address"). If we
take a slightly more advanced network, such as 10.42.182.40/30
ipsc 10.42.182.40/30
Network class: A
Network mask: 255.0.0.0
Network address: 10.42.182.40
Full subnet mask: 255.255.255.252
Addresses per subnet: 4
Bit map: nnnnnnnn.ssssssss.ssssssss.sssssshh
--
Cameron Kerr
(E-Mail Removed) :
http://nzgeeks.org/cameron/
Empowered by Perl!