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:
networkctl
- Show an overall network status:
networkctl status
- Bring network devices up:
sudo networkctl up
- Bring network devices down:
sudo networkctl down
- Renew dynamic configurations (e.g. IP addresses received from a DHCP server):
sudo networkctl renew
- Reload configuration files (
.netdevand.network):
sudo networkctl reload
- Reconfigure network interfaces (if you edited the config, you need to call
networkctl reloadfirst):
sudo networkctl reconfigure
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
