FreeBSD Manual Pages
CIDR(1) General Commands Manual CIDR(1) NAME cidr - RFC 1878 subnet helper SYNOPSIS cidr [-v] cidr <ipaddress/prefix> [-H] cidr <-b|-q|-h|-d> <ipaddress> <-b|-q|-h|-d|-p> <mask|prefix> [-H] DESCRIPTION cidr is a utility for determining the network address and broadcast ad- dress 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 op- tionally a list) of valid host addresses for the corresponding subnet. OPTIONS -v print version information -b <ipaddress|mask> IP address or mask as a binary number -q <ipaddress|mask> ip address or mask as a dotted-quad -h <ipaddress|mask> ip address or mask as a hexadecimal number -d <ipaddress|mask> ip address or mask as a decimal number -p <prefix> netmask as a CIDR prefix (decimal integer 1-32) -H print a list of valid host addresses ipaddress ip address in the form specified by option -b, -q, -h, or -d mask netmask in the form specified by option -b, -q, -h, or -d prefix netmask as a CIDR prefix (decimal integer 1-32) EXAMPLES cidr 192.168.14.56/27 cidr 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 BUGS Hangs on calculation of 255.255.255.255/32 COPYRIGHT cidr.c -- determine CIDR network and broadcast address from IPv4 ip ad- dress and netmask Copyright (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 MER- CHANTABILITY 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 AUTHOR Robert L. Lineberger <robert@geeksoul.com> CONTRIBUTORS David A. Bandel Iain Lea Herman Robers SEE ALSO RFC 1878 CIDR(1)
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES | BUGS | COPYRIGHT | AUTHOR | CONTRIBUTORS | SEE ALSO
Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=cidr&sektion=1&manpath=FreeBSD+12.2-RELEASE+and+Ports>