Setting IP Static
periksa interface :
ifonfig
misal interfacenya enp0s3
sudo su
nano /etc/netplan/00-installer-config.yaml
ganti isinya dengan :
# ini utk ip dinamis
# network:
# ethernets:
# enp0s3:
# dhcp4: true
# version: 2
# ini utk ip statis
network:
version: 2
renderer: networkd #opsional
ethernets:
enp0s3: # interface
dhcp4: false
addresses: [192.168.43.207/24] # ip yg ingin di set
gateway4: 192.168.43.1 # gateway / ip server (HP :v)
nameservers:
addresses: [8.8.8.8,8.8.4.4,1.1.1.1] # server dns, persis gini jg gpp
tinggal reboot :
shutdown -r now
cek :
ifconfig