Itu dah bener mas. Cuma utk ngejalanin dhcpd nya hrs pake script .. Ini
scriptnya :
#!/bin/sh
# Source function library.
#. /etc/rc.d/init.d/functions
# Source networking configuration.
#. /etc/sysconfig/network
# Check that networking is up.
#[ ${NETWORKING} = "no" ] && exit 0
[ -f /usr/sbin/dhcpd ] || exit 0
[ -f /etc/dhcpd.conf ] || exit 0
# See how we were called.
case "$1" in
start)
# Start daemons.
echo -n "Starting dhcpd: "
/sbin/route add -host 255.255.255.255 dev eth1 2> /dev/null
/usr/sbin/dhcpd eth0 #ganti eth0 jd eth1 kalo interface yg dipasang
DHCP di eth1
echo
touch /var/lock/subsys/dhcpd
;;
stop)
# Stop daemons.
echo -n "Shutting down dhcpd: "
/sbin/route del -host 255.255.255.255 dev eth1 2> /dev/null
killproc dhcpd
echo
rm -f /var/lock/subsys/dhcpd
;;
restart)
$0 stop
$0 start
;;
status)
status dhcpd
;;
*)
echo "Usage: dhcpd {start|stop|restart|status}"
exit 1
esac
exit 0
save script diatas di /etc/rc.d/ Jangan lupa chmod +x file nya .. kemudian
jalankan /etc/rc.d/dhcpd start
-= dheeQz24 =-
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.684 / Virus Database: 446 - Release Date: 5/13/04
--
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip dan info di http://linux.or.id/milis.php
FAQ milis http://linux.or.id/faq.php