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...")
 
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
  
 
  network:
 
  network:
     ethernets:
+
  version: 2
        enp2s0:
+
  renderer: networkd
            addresses:
+
  ethernets:
            - 192.168.0.2/24
+
     enp0s3:
            dhcp4: false
+
      dhcp4: no
            gateway4: 192.168.0.223
+
      addresses: [192.168.1.222/24]
            nameservers:
+
      gateway4: 192.168.1.1
                addresses:
+
      nameservers:
                - 8.8.8.8
+
        addresses: [8.8.8.8,8.8.4.4]
                search: []
 
    version: 2
 
  
  

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]


Pranala Menarik