source: npl/system/net_tools/ipmask.8 @ 26ffad7

Last change on this file since 26ffad7 was 2154c77, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

various updates

  • Property mode set to 100644
File size: 1.3 KB
Line 
1.\" -*- nroff -*-
2.ds g \" empty
3.ds G \" empty
4.\" Like TP, but if specified indent is more than half
5.\" the current line-length - indent, use the default indent.
6.de Tp
7.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
8.el .TP "\\$1"
9..
10.TH IPMASK 8 "29 April 2007" "Slackware Version 12.0.0"
11.SH NAME
12ipmask \- determine network and broadcast addresses given a decimal netmask and IP address.
13.SH SYNOPSIS
14.B ipmask <decimal netmask> <decimal IP address>
15.SH DESCRIPTION
16.B ipmask
17is a simple program to calculate broadcast and network addresses from a decimal netmask and a decimal IP address.  It is used in the Slackware networking script /etc/rc.d/rc.inet1, and in the netconfig script.
18.SH OPTIONS
19.TP
20.B \<decimal netmask>
21A decimal netmask, such as:  255.255.255.0
22.TP
23.B \<decimal IP address>
24A decimal IP address, such as:  192.168.168.168
25.SH EXAMPLE
26Using the above sample netmask and IP address, here's an example:
27.TP
28$ ipmask 255.255.255.0 192.168.168.168
29.TP
30192.168.168.255 192.168.168.0
31.TP
32The program returns first the corresponding broadcast address, and then the network address.
33.SH AUTHOR
34Copyright 1994 by David Niemi.  Written in about 30 minutes on 13 Aug.  The author places no restrictions on the use of this program, provided that this copyright is preserved in any derived source code.
Note: See TracBrowser for help on using the repository browser.