Logo
images

Tip dan Trik Setting IP Address di Debian Server versi 9.4.0

  1. Setting IP Address

IP Address adalah sebuah protocol yang berfungsi untuk menghubungkan perangkat komputer satu ke komputer lainya.

Tujuan Konfigurasi;

Agar Client dan Server dapat berkomunikasi.

  1. Setting menggunakan Scrift

root@debian:~# nano /etc/network/interfaces

isi konfigurasi :

# 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

# The primary network interface

allow-hotplug enp0s3    

iface enp0s3 inet dhcp   //ip address Otomatis yang diberikan Router Internet ke server

auto enp0s8

iface enp0s8 inet static   //ip static untuk  didistribusikan ke Client Server

        address 192.168.100.1

        netmask 255.255.255.0

  1. Restart Network berikut :

root@debian:~# /etc/init.d/networking restart

[ ok ] Restarting networking (via systemctl): networking.service.

 Test ping server ke Client :

root@debian:~# ping 192.168.100.2
PING 192.168.100.2 (192.168.100.2) 56(84) bytes of data.
64 bytes from 192.168.100.2: icmp_seq=1 ttl=128 time=0.538 ms
64 bytes from 192.168.100.2: icmp_seq=2 ttl=128 time=0.450 ms
64 bytes from 192.168.100.2: icmp_seq=3 ttl=128 time=0.483 ms

--- 192.168.100.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.450/0.490/0.538/0.040 ms

Test Ping Client ke Server :

Demikian Lah cara Mudah Konfigurasi Ip Address di server debian.

 


TAG

Tinggalkan Komentar