DHCP Server
August 22, 2008 at 4:24 am | In 5584 | Leave a Commentmungkin bagi sebagian dhcp itu uda sering, tapi ini aku coba buat gimana buat dhcp server dimana client yang
dilayani hanya client yang MAC Addressnya terfilter, jadi ga smua yang dhcp diberikan ipnya1.
buka file /etc/dhcpd.conf
isinya
:
#class ini untuk range mac address
lass “client_accepted”
{
match if substring (hardware,1,9) = “00:1A:19:”;
}
#====== class ini untuk mendefenisikan mac address tertentu
class “client2_accepted”
{
match if hardware = “00:C0:9F:24:D7:09″;
}
option routers 99.9.9.125;
option domain-name-servers 99.9.9.125;
ddns-update-style ad-hoc;
subnet 99.9.9.0 netmask 255.255.255.0
{
min-lease-time 600;
max-lease-time 600;
default-lease-time 600;
pool
{
allow members of “client2_accepted”;
range 99.9.9.240 99.9.9.150;
option routers 99.9.9.125;
option domain-name-servers 99.9.9.125;
}
#==================================
simpan filenya, kemudian jalankan dhcp serpernya
No Comments Yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.