Editing Netplan examples
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
[[Netplan]] examples, https://netplan.io/examples | [[Netplan]] examples, https://netplan.io/examples | ||
− | |||
− | |||
− | + | == Static [[IP]] configuration == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
network: | network: | ||
− | + | renderer: networkd | |
ethernets: | ethernets: | ||
eno1: | eno1: | ||
Line 40: | Line 13: | ||
gateway4: 10.10.xx.1 | gateway4: 10.10.xx.1 | ||
[[nameservers]]: | [[nameservers]]: | ||
− | search: | + | search: your_domain.com |
− | addresses: [8.8.8.8, 1.1.1.1] | + | addresses: [8.8.8.8], 1.1.1.1] |
version: 2 | version: 2 | ||
+ | |||
== [[DHCP]] configuration == | == [[DHCP]] configuration == | ||
Minimal configuration file: | Minimal configuration file: | ||
− | + | <pre> | |
− | + | network: | |
− | + | ethernets: | |
− | + | eno0: | |
− | + | dhcp4: true | |
+ | </pre> | ||
Line 63: | Line 38: | ||
version: 2 | version: 2 | ||
</pre> | </pre> | ||
+ | |||
+ | |||
== See also == | == See also == |
Advertising: