networkctl: add sudo (#23166)

This commit is contained in:
Managor
2026-07-13 06:17:26 +03:00
committed by GitHub
parent cc1ae58e60
commit 3e4ccb929f
+5 -5
View File
@@ -14,20 +14,20 @@
- Bring network devices up:
`networkctl up {{interface1 interface2 ...}}`
`sudo networkctl up {{interface1 interface2 ...}}`
- Bring network devices down:
`networkctl down {{interface1 interface2 ...}}`
`sudo networkctl down {{interface1 interface2 ...}}`
- Renew dynamic configurations (e.g. IP addresses received from a DHCP server):
`networkctl renew {{interface1 interface2 ...}}`
`sudo networkctl renew {{interface1 interface2 ...}}`
- Reload configuration files (`.netdev` and `.network`):
`networkctl reload`
`sudo networkctl reload`
- Reconfigure network interfaces (if you edited the config, you need to call `networkctl reload` first):
`networkctl reconfigure {{interface1 interface2 ...}}`
`sudo networkctl reconfigure {{interface1 interface2 ...}}`