{
    "mode": "man",
    "parameter": "NETWORKCTL",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/NETWORKCTL/1/json",
    "generated": "2026-08-14T04:33:42Z",
    "synopsis": "networkctl [OPTIONS...] COMMAND [LINK...]",
    "sections": {
        "NAME": {
            "content": "networkctl - Query or modify the status of network links\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "networkctl [OPTIONS...] COMMAND [LINK...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "networkctl may be used to query or modify the state of the network links as seen by\nsystemd-networkd. Please refer to systemd-networkd.service(8) for an introduction to the\nbasic concepts, functionality, and configuration syntax.\n",
            "subsections": []
        },
        "COMMANDS": {
            "content": "The following commands are understood:\n\nlist [PATTERN...]\nShow a list of existing links and their status. If one or more PATTERNs are specified,\nonly links matching one of them are shown. If no further arguments are specified shows\nall links, otherwise just the specified links. Produces output similar to:\n\nIDX LINK         TYPE     OPERATIONAL SETUP\n1 lo           loopback carrier     unmanaged\n2 eth0         ether    routable    configured\n3 virbr0       ether    no-carrier  unmanaged\n4 virbr0-nic   ether    off         unmanaged\n\n4 links listed.\n\nThe operational status is one of the following:\n\nmissing\nThe device is missing.\n\nAdded in version 245.\n\noff\nThe device is powered down.\n\nAdded in version 240.\n\nno-carrier\nThe device is powered up, but does not yet have a carrier.\n\nAdded in version 240.\n\ndormant\nThe device has a carrier, but is not yet ready for normal traffic.\n\nAdded in version 240.\n\ndegraded-carrier\nOne of the bonding or bridge slave network interfaces is in off, no-carrier, or\ndormant state, and the master interface has no address.\n\nAdded in version 242.\n\ncarrier\nThe link has carrier, or for bond or bridge master, all bonding or bridge slave\nnetwork interfaces are enslaved to the master.\n\nAdded in version 240.\n\ndegraded\nThe link has carrier and addresses valid on the local link configured. For bond or\nbridge master this means that not all slave network interfaces have carrier but at\nleast one does.\n\nAdded in version 240.\n\nenslaved\nThe link has carrier and is enslaved to bond or bridge master network interface.\n\nAdded in version 242.\n\nroutable\nThe link has carrier and routable address configured. For bond or bridge master it is\nnot necessary for all slave network interfaces to have carrier, but at least one\nmust.\n\nAdded in version 240.\n\nThe setup status is one of the following:\n\npending\nsystemd-udevd(8) is still processing the link, we don't yet know if we will manage\nit.\n\nAdded in version 240.\n\ninitialized\nsystemd-udevd(8) has processed the link, but we don't yet know if we will manage it.\n\nAdded in version 251.\n\nconfiguring\nConfiguration for the link is being retrieved or the link is being configured.\n\nAdded in version 240.\n\nconfigured\nLink has been configured successfully.\n\nAdded in version 240.\n\nunmanaged\nsystemd-networkd is not handling the link.\n\nAdded in version 240.\n\nfailed\nsystemd-networkd failed to configure the link.\n\nAdded in version 240.\n\nlinger\nThe link is gone, but has not yet been dropped by systemd-networkd.\n\nAdded in version 240.\n\nAdded in version 219.\n\nstatus [PATTERN...]\nShow information about the specified links: type, state, kernel module driver, hardware\nand IP address, configured DNS servers, etc. If one or more PATTERNs are specified, only\nlinks matching one of them are shown.\n\nWhen no links are specified, an overall network status is shown. Also see the option\n--all.\n\nProduces output similar to:\n\n●        State: routable\nOnline state: online\nAddress: 10.193.76.5 on eth0\n192.168.122.1 on virbr0\n169.254.190.105 on eth0\nfe80::5054:aa:bbbb:cccc on eth0\nGateway: 10.193.11.1 (CISCO SYSTEMS, INC.) on eth0\nDNS: 8.8.8.8\n8.8.4.4\n\nIn the overall network status, the online state depends on the individual online state of\nall required links. Managed links are required for online by default. In this case, the\nonline state is one of the following:\n\nunknown\nAll links have unknown online status (i.e. there are no required links).\n\nAdded in version 249.\n\noffline\nAll required links are offline.\n\nAdded in version 249.\n\npartial\nSome, but not all, required links are online.\n\nAdded in version 249.\n\nonline\nAll required links are online.\n\nAdded in version 249.\n\nAdded in version 219.\n\nlldp [PATTERN...]\nShow discovered LLDP (Link Layer Discovery Protocol) neighbors. If one or more PATTERNs\nare specified only neighbors on those interfaces are shown. Otherwise shows discovered\nneighbors on all interfaces. Note that for this feature to work, LLDP= must be turned on\nfor the specific interface, see systemd.network(5) for details.\n\nProduces output similar to:\n\nLINK             CHASSIS ID        SYSTEM NAME      CAPS        PORT ID           PORT DESCRIPTION\nenp0s25          00:e0:4c:00:00:00 GS1900           ..b........ 2                 Port #2\n\nCapability Flags:\no - Other; p - Repeater;  b - Bridge; w - WLAN Access Point; r - Router;\nt - Telephone; d - DOCSIS cable device; a - Station; c - Customer VLAN;\ns - Service VLAN, m - Two-port MAC Relay (TPMR)\n\n1 neighbors listed.\n\nAdded in version 219.\n",
            "subsections": [
                {
                    "name": "label",
                    "content": "Show numerical address labels that can be used for address selection. This is the same\ninformation that ip-addrlabel(8) shows. See \u001b[34mRFC 3484[1] for a discussion of address\nlabels.\n\nProduces output similar to:\n\nPrefix/Prefixlen                          Label\n::/0                                  1\nfc00::/7                                  5\nfec0::/10                                11\n2002::/16                                 2\n3ffe::/16                                12\n2001:10::/28                                 7\n2001::/32                                 6\n::ffff:0.0.0.0/96                             4\n::/96                                 3\n::1/128                                0\n\nAdded in version 234.\n\ndelete DEVICE...\nDeletes virtual netdevs. Takes interface name or index number.\n\nAdded in version 243.\n\nup DEVICE...\nBring devices up. Takes interface name or index number.\n\nAdded in version 246.\n\ndown DEVICE...\nBring devices down. Takes interface name or index number.\n\nAdded in version 246.\n\nrenew DEVICE...\nRenew dynamic configurations e.g. addresses received from DHCP server. Takes interface\nname or index number.\n\nAdded in version 244.\n\nforcerenew DEVICE...\nSend a FORCERENEW message to all connected clients, triggering DHCP reconfiguration.\nTakes interface name or index number.\n\nAdded in version 246.\n\nreconfigure DEVICE...\nReconfigure network interfaces. Takes interface name or index number. Note that this does\nnot reload .netdev or .network corresponding to the specified interface. So, if you edit\nconfig files, it is necessary to call networkctl reload first to apply new settings.\n\nAdded in version 244.\n"
                },
                {
                    "name": "reload",
                    "content": "Reload .netdev and .network files. If a new .netdev file is found, then the corresponding\nnetdev is created. Note that even if an existing .netdev is modified or removed,\nsystemd-networkd does not update or remove the netdev. If a new, modified or removed\n.network file is found, then all interfaces which match the file are reconfigured.\n\nAdded in version 244.\n\nedit FILE|@DEVICE...\nEdit network configuration files, which include .network, .netdev, and .link files. If no\nnetwork config file matching the given name is found, a new one will be created under\n/etc/. Specially, if the name is prefixed by \"@\", it will be treated as a network\ninterface, and editing will be performed on the network config files associated with it.\nAdditionally, the interface name can be suffixed with \":network\" (default) or \":link\", in\norder to choose the type of network config to operate on.\n\nIf --drop-in= is specified, edit the drop-in file instead of the main configuration file.\nUnless --no-reload is specified, systemd-networkd will be reloaded after the edit of the\n.network or .netdev files finishes. The same applies for .link files and systemd-\nudevd(8). Note that the changed link settings are not automatically applied after\nreloading. To achieve that, trigger uevents for the corresponding interface. Refer to\nsystemd.link(5) for more information.\n\nAdded in version 254.\n\ncat FILE|@DEVICE...\nShow network configuration files. This command honors the \"@\" prefix in the same way as\nedit.\n\nAdded in version 254.\n"
                }
            ]
        },
        "OPTIONS": {
            "content": "The following options are understood:\n",
            "subsections": [
                {
                    "name": "-a --all",
                    "content": "Show all links with status.\n\nAdded in version 219.\n",
                    "flag": "-a",
                    "long": "--all"
                },
                {
                    "name": "-s --stats",
                    "content": "Show link statistics with status.\n\nAdded in version 243.\n",
                    "flag": "-s",
                    "long": "--stats"
                },
                {
                    "name": "-l --full",
                    "content": "Do not ellipsize the output.\n\nAdded in version 245.\n",
                    "flag": "-l",
                    "long": "--full"
                },
                {
                    "name": "-n --lines=",
                    "content": "When used with status, controls the number of journal lines to show, counting from the\nmost recent ones. Takes a positive integer argument. Defaults to 10.\n\nAdded in version 245.\n\n--drop-in=NAME\nWhen used with edit, edit the drop-in file NAME instead of the main configuration file.\n\nAdded in version 254.\n",
                    "flag": "-n"
                },
                {
                    "name": "--no-reload",
                    "content": "When used with edit, systemd-networkd.service(8) or systemd-udevd.service(8) will not be\nreloaded after the editing finishes.\n\nAdded in version 254.\n\n--json=MODE\nShows output formatted as JSON. Expects one of \"short\" (for the shortest possible output\nwithout any redundant whitespace or line breaks), \"pretty\" (for a pretty version of the\nsame, with indentation and line breaks) or \"off\" (to turn off JSON output, the default).\n",
                    "long": "--no-reload"
                },
                {
                    "name": "-h --help",
                    "content": "Print a short help text and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "--version",
                    "content": "Print a short version string and exit.\n",
                    "long": "--version"
                },
                {
                    "name": "--no-legend",
                    "content": "Do not print the legend, i.e. column headers and the footer with hints.\n",
                    "long": "--no-legend"
                },
                {
                    "name": "--no-pager",
                    "content": "Do not pipe output into a pager.\n",
                    "long": "--no-pager"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "On success, 0 is returned, a non-zero failure code otherwise.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "systemd-networkd.service(8), systemd.network(5), systemd.netdev(5), ip(8)\n",
            "subsections": []
        },
        "NOTES": {
            "content": "1. RFC 3484\nhttps://tools.ietf.org/html/rfc3484\n\nsystemd 255                                                                            NETWORKCTL(1)",
            "subsections": []
        }
    },
    "summary": "networkctl - Query or modify the status of network links",
    "flags": [
        {
            "flag": "-a",
            "long": "--all",
            "arg": null,
            "description": "Show all links with status. Added in version 219."
        },
        {
            "flag": "-s",
            "long": "--stats",
            "arg": null,
            "description": "Show link statistics with status. Added in version 243."
        },
        {
            "flag": "-l",
            "long": "--full",
            "arg": null,
            "description": "Do not ellipsize the output. Added in version 245."
        },
        {
            "flag": "-n",
            "long": null,
            "arg": null,
            "description": "When used with status, controls the number of journal lines to show, counting from the most recent ones. Takes a positive integer argument. Defaults to 10. Added in version 245. --drop-in=NAME When used with edit, edit the drop-in file NAME instead of the main configuration file. Added in version 254."
        },
        {
            "flag": "",
            "long": "--no-reload",
            "arg": null,
            "description": "When used with edit, systemd-networkd.service(8) or systemd-udevd.service(8) will not be reloaded after the editing finishes. Added in version 254. --json=MODE Shows output formatted as JSON. Expects one of \"short\" (for the shortest possible output without any redundant whitespace or line breaks), \"pretty\" (for a pretty version of the same, with indentation and line breaks) or \"off\" (to turn off JSON output, the default)."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Print a short help text and exit."
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Print a short version string and exit."
        },
        {
            "flag": "",
            "long": "--no-legend",
            "arg": null,
            "description": "Do not print the legend, i.e. column headers and the footer with hints."
        },
        {
            "flag": "",
            "long": "--no-pager",
            "arg": null,
            "description": "Do not pipe output into a pager."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "systemd-networkd.service",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/systemd-networkd.service/8/json"
        },
        {
            "name": "systemd.network",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.network/5/json"
        },
        {
            "name": "systemd.netdev",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.netdev/5/json"
        },
        {
            "name": "ip",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/ip/8/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Query the status of network links.",
        "examples": [
            {
                "description": "List existing links with their status",
                "command": "networkctl"
            },
            {
                "description": "Show an overall network status",
                "command": "networkctl status"
            },
            {
                "description": "Bring network devices up",
                "command": "sudo networkctl up {{interface1 interface2 ...}}"
            },
            {
                "description": "Bring network devices down",
                "command": "sudo networkctl down {{interface1 interface2 ...}}"
            },
            {
                "description": "Renew dynamic configurations (e.g. IP addresses received from a DHCP server)",
                "command": "sudo networkctl renew {{interface1 interface2 ...}}"
            },
            {
                "description": "Reload configuration files (`.netdev` and `.network`)",
                "command": "sudo networkctl reload"
            },
            {
                "description": "Reconfigure network interfaces (if you edited the config, you need to call `networkctl reload` first)",
                "command": "sudo networkctl reconfigure {{interface1 interface2 ...}}"
            }
        ]
    }
}