Cara setting IP Static di Linux Debian

Cara setting IP Static di linux debian pertama-tama silahkan login menggunakan root
setelah muncul

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

kemudian muncul tampilan seperti dibawah

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

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

silahkan tambahkan tanda # di seperti dibawah ini, berguna apabila nanti mau kembalikan ke settingan dhcp kembali

# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp

kemudian tambahkan command seperti dibawa ini di #The primary network interface

# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.0.188
gateway 192.168.0.4
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255

kemudian tekan Ctrl+X lalu tekan Y atau Yes

setelah keluar kemudian restart network servicenya dengan cara

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

root@debian:~# /etc/init.d/networking restart
[….] Running /etc/init.d/networking restart is deprecated because it may not r[warnble some interfaces … (warning).
[ ok ] Reconfiguring network interfaces…done.
root@debian:~#

Semoga bermanfaat ya… ­čśë

 

One thought on “Cara setting IP Static di Linux Debian

  1. Pingback: Setting Static IP di Linux | #ServerMurah

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>