1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/netplan.md
Amir H. Moayeri 4cc711e5b2
netplan: add page; hash, hostname, zip, tar, touch: add Farsi translation (#15763)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2025-03-07 09:20:20 +02:00

620 B

netplan

Network configuration utility using YAML. More information: https://netplan.io/.

  • Apply a network configuration and make it persistent:

sudo netplan apply

  • Generate backend configuration files:

sudo netplan generate

  • Configure a network interface to use DHCP:

sudo netplan set ethernets.{{interface_name}}.dhcp4=true

  • Try configuration changes without applying them permanently:

sudo netplan try --timeout={{seconds}}

  • Return to previous working configuration after failed apply:

sudo netplan --debug apply

  • Display the current netplan configuration status:

netplan status