home *** CD-ROM | disk | FTP | other *** search
/ ftp.laffeycomputer.com / 2014.06.ftp.laffeycomputer.com.tar / ftp.laffeycomputer.com / netbsdstuff / DESCR next >
Text File  |  2003-12-12  |  2KB  |  54 lines

  1. Whatmask is a small C program that will help you with network settings.
  2.  
  3. Whatmask can work in two modes. The first mode (which is how prior
  4. versions worked) is to invoke Whatmask with only a subnet mask as the
  5. argument. In this mode Whatmask will echo back the subnet mask in four
  6. formats, plus the number of useable addresses in the range.
  7.  
  8. Netmask Notations supported:
  9.  
  10.  Name                  Example
  11. ---------------------------------
  12.  CIDR                         /24
  13.  Netmask            255.255.255.0
  14.  Hex Netmask           0xffffff00
  15.  Wilcard Bits           0.0.0.255
  16.  
  17.  
  18. The above notations are all identical. CIDR notation commonly has a "/" in
  19. front of the number (representing the number of bits). Whatmask can accept
  20. these notations with or without a slash. This notation is used more and
  21. more recently. A lot of popular routers and software support this
  22. notation.
  23.  
  24. Netmask notation is pretty much the standard old-school way of doing it.  
  25. It is supported by most systems (Un*x, Win, Mac, etc.).
  26.  
  27. Netmasks are sometimes represented as hexadecimal values, especially in
  28. the BSDs.
  29.  
  30. Wilcard bits are similar to the netmask, but they are the logical not of
  31. the netmask. This notation is used by a number of popular routers (and
  32. nobody knows why...).
  33.  
  34. To use Whatmask in the original mode simply type "whatmask <notation>" The
  35. notation can be in any of the four formats, and Whatmask will
  36. automagically figure out what it is and display all four notations.
  37.  
  38. To find out more about subnets and netmasks see the References section 
  39. below.
  40.  
  41. To use Whatmask in its second mode execute Whatmask with any ip address
  42. within the subnet, followed by a slash ('/'), followed by the subnet mask
  43. in any format. (e.g. 192.168.0.23/255.255.255.224, or 192.168.0.23/27)
  44.  
  45. Whatmask will echo back the following:
  46.  
  47. - The netmask in the following formats: CIDR, Netmask, Hex, Wildcard Bits
  48. - The Network Address
  49. - The Broadcast Address
  50. - The number of Usable IP Addresses
  51. - The First Usable IP Address
  52. - The Last Usable IP Address
  53.  
  54.