|
NAMEcidr - RFC 1878 subnet helperSYNOPSIS
DESCRIPTIONcidr is a utility for determining the network address and broadcast address for a CIDR subnet. It takes as input an ip address and netmask in binary, dotted-quad, hexadecimal, decimal or prefix formats. It outputs the network address, broadcast address, and a count (and optionally a list) of valid host addresses for the corresponding subnet.OPTIONS
EXAMPLEScidr 192.168.14.56/27cidr 192.168.14.56/27 -H Note: The above forms only support dotted-quad ip address and prefix netmask. cidr -q 192.168.14.56 -h ffffff00 cidr -q 192.168.14.56 -q 255.255.255.0 -H cidr -h 0xfe12abcf -b 11111111111111111111111100000000 cidr -d 2929937821 -p 32 cidr -b 11110000101010100101010111001100 -p 24 -H BUGSHangs on calculation of 255.255.255.255/32COPYRIGHTcidr.c -- determine CIDR network and broadcast address from IPv4 ip address and netmaskCopyright (C) 2000 Robert L. Lineberger This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA AUTHORRobert L. Lineberger <robert@geeksoul.com>CONTRIBUTORSDavid A. BandelIain Lea Herman Robers SEE ALSORFC 1878 Visit the GSP FreeBSD Man Page Interface. |