Network | Cara Konfigurasi IP Address Debian 8
Admin
---
Hallo semuanya, Mamas admin kali ini ingin berbagi sedikit pengetahuan tentang beberapa konfigurasi pada Debian yang kali ini akan membahas tentang Konfigurasi IP Address. Nah sebelumnya apa itu IP Address ? IP Address adalah alamat yang diberikan pada jaringan komputer dan peralatan jaringan yang menggunakan protokol TCP/IP. IP Address terdiri atas 32 bit angka biner yang dapat dituliskan sebagai empat kelompok angka desimal yang di pisahkan oleh tanda titik seperti 192.168.1.1
Baik langsung berikut cara konfigurasi IP Address Debian 8
root@test:~# nano /etc/network/interfaces
# 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 eth0
# comment out
#iface eth0 inet dhcp
# add follows
iface eth0 inet static
address 10.0.0.30 # IP address
network 10.0.0.0 # network address
netmask 255.255.255.0 # subnet mask
broadcast 10.0.0.255 # broadcast address
broadcast 10.0.0.255 # broadcast address
gateway 10.0.0.1 # default gateway
dns-nameservers 10.0.0.10 # name server
root@dlp:~# systemctl restart ifup@eth0
Kemudian kita nonaktifkan IP V6, karena pada saat ini mamas pakai IP V4
root@test:~# echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
root@test:~# sysctl -p
net.ipv6.conf.all.disable_ipv6 = 1
root@dlp:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:9d:56:58
inet addr:10.0.0.30 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:346 errors:0 dropped:0 overruns:0 frame:0
TX packets:263 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33839 (33.0 KiB) TX bytes:32449 (31.6 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@test:~# sysctl -p
net.ipv6.conf.all.disable_ipv6 = 1
root@dlp:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:9d:56:58
inet addr:10.0.0.30 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:346 errors:0 dropped:0 overruns:0 frame:0
TX packets:263 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33839 (33.0 KiB) TX bytes:32449 (31.6 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Cukup mudah bukan Cara Konfigurasi IP Address Debian 8 Terima kasih atas perhatiannya, ntar ketemu lagi sama mamas adminnya.