#5 setting static ip Debian 10

 1. ip a 

2. nano /etc/network/interfaces 

3. Masukan nama interface yang ada di PC kamu yang bisa adilihat di ip a tadi, contoh pada PC saya adalah enp0s3.


Setelah itu masukkan IP address beserta gateway nya

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto enp0s3
iface enp0s3 inet static
    address 10.10.10.100/24
    gateway 10.10.10.1

Simpan dengan perintah Ctrl+x  lalu Y kemudian enter 

4.(kemudian restart interface network dengan perintah) 

 /etc/init.d/networking restart 


+++++++++++++++++

Jika menggunakan konfigurasi static jangan lupa untuk mengkonfigurasi dns secara manual dengan cara mengedit file /etc/resolv.conf agar bisa terhubung ke internet. 

Perintah: nano /etc/resolv.conf

Sesuaikan dengan dns server kamu. Ini merupakan dns server yang saya gunakan.


nameserver 8.8.8.8

nameserver 8.8.4.4








Posting Komentar

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.