Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

38
linux/networkctl Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# networkctl
> Query the status of network links.
> Manage the network configuration using `systemd-networkd`.
> More information: <https://www.freedesktop.org/software/systemd/man/networkctl.html>.
- List existing links with their status:
`networkctl list`
- Show an overall network status:
`networkctl status`
- Bring 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 reload`
- Reconfigure network interfaces (if you edited the config, you need to call `networkctl reload` first):
`networkctl reconfigure {{interface1 interface2 ...}}`