Pages

Wednesday, April 24, 2019

Cara setting IP statik di ubuntu server 18.04 dan 18.10


1. Edit file netplannya:
 -> nano /etc/netplan/50-cloud-init.yaml

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.2.100/24]
      gateway4: 192.168.2.10
      nameservers:
        addresses: [8.8.8.8,8.8.4.4]

    -> save (ctrl + x, y, enter)

2. Coba ifconfig :

 3. Coba ping ke google.com :

0 comments:

Post a Comment

 

Alvian Rifki Aufan

Terima Kasih

blog.alvianaufan.my.id