{
    "mode": "man",
    "parameter": "ipcalc",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ipcalc/1/json",
    "generated": "2026-05-30T05:10:03Z",
    "synopsis": "ipcalc  [options] ADDRESS[[/]NETMASK] [NETMASK]",
    "sections": {
        "NAME": {
            "content": "ipcalc - An IPv4 Netmask/broadcast/etc calculator\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ipcalc  [options] ADDRESS[[/]NETMASK] [NETMASK]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "ipcalc  takes  an  IPv4  address and netmask and calculates the resulting broadcast, network,\nCisco wildcard mask, and host range. By giving a second netmask, you can design sub- and  su‐\npernetworks.  It  is also intended to be a teaching tool and presents the results as easy-to-\nunderstand binary values.\n\n--help Display help usage\n",
            "subsections": [
                {
                    "name": "-n --nocolor",
                    "content": "Don't display ANSI color codes\n",
                    "flag": "-n",
                    "long": "--nocolor"
                },
                {
                    "name": "-b --nobinary",
                    "content": "Suppress the bitwise output\n",
                    "flag": "-b",
                    "long": "--nobinary"
                },
                {
                    "name": "-c --class",
                    "content": "Just print bit-count-mask of given address\n",
                    "flag": "-c",
                    "long": "--class"
                },
                {
                    "name": "-h --html",
                    "content": "Display results as HTML\n",
                    "flag": "-h",
                    "long": "--html"
                },
                {
                    "name": "-v --version",
                    "content": "Print Version\n",
                    "flag": "-v",
                    "long": "--version"
                },
                {
                    "name": "-s --split",
                    "content": "Split into networks of size n1, n2, n3\n",
                    "flag": "-s",
                    "long": "--split"
                },
                {
                    "name": "-r --range",
                    "content": "Deaggregate address range\n",
                    "flag": "-r",
                    "long": "--range"
                }
            ]
        },
        "EXAMPLES": {
            "content": "ipcalc 192.168.0.1/24\n\nipcalc 192.168.0.1/255.255.128.0\n\nipcalc 192.168.0.1 255.255.128.0 255.255.192.0\n\nipcalc 192.168.0.1 0.0.63.255\n\ndeaggregate address range\nipcalc <ADDRESS1> - <ADDRESS2>\n\nsplit network to subnets where a b c fits in\nipcalc <ADDRESS>/<NETMASK> -s a b c\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Written by Krischan Jodies <krischan@jodies.de>\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ipsc(1) gipsc(1)\n\nThe ipcalc website: http://jodies.de/ipcalc\n\n\n\n\n.                                        ipcalc(1)",
            "subsections": []
        }
    },
    "summary": "ipcalc - An IPv4 Netmask/broadcast/etc calculator",
    "flags": [
        {
            "flag": "-n",
            "long": "--nocolor",
            "arg": null,
            "description": "Don't display ANSI color codes"
        },
        {
            "flag": "-b",
            "long": "--nobinary",
            "arg": null,
            "description": "Suppress the bitwise output"
        },
        {
            "flag": "-c",
            "long": "--class",
            "arg": null,
            "description": "Just print bit-count-mask of given address"
        },
        {
            "flag": "-h",
            "long": "--html",
            "arg": null,
            "description": "Display results as HTML"
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "Print Version"
        },
        {
            "flag": "-s",
            "long": "--split",
            "arg": null,
            "description": "Split into networks of size n1, n2, n3"
        },
        {
            "flag": "-r",
            "long": "--range",
            "arg": null,
            "description": "Deaggregate address range"
        }
    ],
    "examples": [
        "ipcalc 192.168.0.1/24",
        "ipcalc 192.168.0.1/255.255.128.0",
        "ipcalc 192.168.0.1 255.255.128.0 255.255.192.0",
        "ipcalc 192.168.0.1 0.0.63.255",
        "deaggregate address range",
        "ipcalc <ADDRESS1> - <ADDRESS2>",
        "split network to subnets where a b c fits in",
        "ipcalc <ADDRESS>/<NETMASK> -s a b c"
    ],
    "see_also": [
        {
            "name": "ipsc",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ipsc/1/json"
        },
        {
            "name": "gipsc",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gipsc/1/json"
        }
    ]
}