Difference between revisions of "Netplan: statik"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 7: | Line 7: | ||
network: | network: | ||
− | + | version: 2 | |
− | + | renderer: networkd | |
− | + | ethernets: | |
− | + | enp0s3: | |
− | + | dhcp4: no | |
− | + | addresses: [192.168.1.222/24] | |
− | + | gateway4: 192.168.1.1 | |
− | + | nameservers: | |
− | + | addresses: [8.8.8.8,8.8.4.4] | |
− | |||
− | |||
Latest revision as of 11:03, 23 July 2021
edit file
sudo su vi /etc/netplan/50-cloud-init.yaml
isi
network: version: 2 renderer: networkd ethernets: enp0s3: dhcp4: no addresses: [192.168.1.222/24] gateway4: 192.168.1.1 nameservers: addresses: [8.8.8.8,8.8.4.4]