Tuesday, December 23, 2008

Donwload source dhcp3-server apt-et install dhcp

Konfigurasi DHCP on Ubuntu di net Linggawastu
pico /etc/dhcp3/dhcpd.conf

##########################################################
#
# DHCP SERVER CONFIGURATION SETTINGS
#

# assign the defaul lease time (seconds)
default-lease-time 600000000;

# assign the max lease time (seconds)
max-lease-time 720000000;

# eth0 subnet configuration
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.99;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
}

# eth1 subnet configuration
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.2 192.168.2.99;
option routers 192.168.2.1;
option broadcast-address 192.168.2.255;
}

##########################################################
# end config

Modifikasi Link ethernet buat DHCP conto na eth1 /etc/default/dhcp3-server f

# 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"

cek status /etc/init.d/dhcp start|status|restart

source on Ubuntu Forum http://ubuntuforums.org/showthread.php?t=119787

No comments: