background img

The New Stuff

Setting IP Address Pada Linux Debian

Dalam melakukan configurasi dan pembuatan ip-Address ada beberapa cara antara lain sbb :
root # ifconfig eth0 192.168.0.1 netmask 255.255.255.0
configurasi seperti diatas bersifat temporary atau sementara bila komputer reboot maka ip-address kembali seperti semula.

root # 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).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.2
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.0.2
dns-search (domain name)

root # /etc/init.d/networking restart


0 komentar:

Poskan Komentar

Ramaikan Blog Ini Dengan Komentar-Komentar Anda

Bebas, Sopan, Ataktif, Kritik Juga Boleh

Popular Posts