Beranda > HoW-To, Linux > DHCP server di Ubuntu 7.10

DHCP server di Ubuntu 7.10

Instal bind9
rika@SRV:~$ sudo apt-get install bind9 dnsutils

$sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf.def

$sudo vi /etc/dhcp3/dhcpd.conf
option domain-name “great.local”;
option domain-name-servers 192.168.22.2;
option routers 192.168.22.2;
option subnet-mask 255.255.255.0;
default-lease-time 86400;
max-lease-time 604800;
authoritative;
subnet 192.168.22.0 netmask 255.255.255.0 {
range 192.168.22.10 192.168.22.100;
}

# untuk menetapkan bahwa hostname rika selalu mendapatkan IP 192.168.22.12
host rika {
hardware ethernet 00:80:c7:ee:41:c6;
fixed address 192.168.22.12;
}

/etc/default/dhcp3-server
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#Separate multiple interfaces with spaces, e.g. “eth0 eth1”.
INTERFACES=”eth1″

Jalankan Masquerade
$sudo iptables -t nat -A POSTROUTING -s 192.168.22.0/24 -o eth0 -j MASQUERADE

restart network
$sudo /etc/init.d/networking restart

Log
/var/log/daemon.log
/var/log/messages

Kategori:HoW-To, Linux
  1. Oktober 17, 2013 pukul 9:28 pm

    This design is incredible! You certainly know how to keep a
    reader amused. Between your wit and your videos, I was almost moved to start
    my own blog (well, almost…HaHa!) Wonderful job.
    I really enjoyed what you had to say, and more than that, how you presented it.

    Too cool!

  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: