Difference between revisions of "Netplan: statik"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "edit file sudo su vi /etc/netplan/50-cloud-init.yaml isi network: ethernets: enp2s0: addresses: - 192.168.0.2/24 dhc...")
 
Line 8: Line 8:
 
  network:
 
  network:
 
     ethernets:
 
     ethernets:
         enp2s0:
+
         enp3s0:
 
             addresses:
 
             addresses:
             - 192.168.0.2/24
+
             - 192.168.0.10/24
 
             dhcp4: false
 
             dhcp4: false
 
             gateway4: 192.168.0.223
 
             gateway4: 192.168.0.223

Revision as of 06:49, 29 January 2019

edit file

sudo su
vi /etc/netplan/50-cloud-init.yaml

isi

network:
    ethernets:
        enp3s0:
            addresses:
            - 192.168.0.10/24
            dhcp4: false
            gateway4: 192.168.0.223
            nameservers:
                addresses:
                - 8.8.8.8
                search: []
    version: 2


Pranala Menarik