mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 15:50:22 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/linux/netplan
Normal file
33
tldr/linux/netplan
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user