snippetbashTip
networkctl — Query the status of network links. Manage the network configuration using `systemd-networkd`. More i
Viewed 0 times
thecommandstatusnetworkctlnetworkcliquerylinks
linux
Problem
How to use the
networkctl command: Query the status of network links. Manage the network configuration using systemd-networkd. More information: <https://www.freedesktop.org/software/systemd/man/latest/networkctl.html>.Solution
networkctl — Query the status of network links. Manage the network configuration using systemd-networkd. More information: <https://www.freedesktop.org/software/systemd/man/latest/networkctl.html>.List existing links with their status:
networkctlShow an overall network status:
networkctl statusBring network devices up:
networkctl up {{interface1 interface2 ...}}Bring network devices down:
networkctl down {{interface1 interface2 ...}}Renew dynamic configurations (e.g. IP addresses received from a DHCP server):
networkctl renew {{interface1 interface2 ...}}Reload configuration files (
.netdev and .network):networkctl reloadReconfigure network interfaces (if you edited the config, you need to call
networkctl reload first):networkctl reconfigure {{interface1 interface2 ...}}Code Snippets
List existing links with their status
networkctlShow an overall network status
networkctl statusBring network devices up
networkctl up {{interface1 interface2 ...}}Bring network devices down
networkctl down {{interface1 interface2 ...}}Renew dynamic configurations (e.g. IP addresses received from a DHCP server)
networkctl renew {{interface1 interface2 ...}}Context
tldr-pages: linux/networkctl
Revisions (0)
No revisions yet.