Sunday, February 22, 2009

Membuat DHCP server 2

##########################################
#####----- Global Configuration -----#####
##########################################
ddns-updates off;
option T150 code 150 = string;
deny client-updates;
#one-lease-per-client false;
#allow bootp;

ddns-update-style none;

option domain-name "vlan.local";
option domain-name-servers 210.56.15.1, 231.117.250.27;

default-lease-time 6000;
max-lease-time 7200;

authoritative;
##############################################
#####----- End Global Configuration -----#####
##############################################

###############################################
#####----- Start Modem Configuration -----#####
###############################################
subnet 192.168.1.0 netmask 255.255.255.0 {
interface eth0;
}
#############################################
#####----- End Modem Configuration -----#####
#############################################

####################################################
#####----- Start Downstairs Configuration -----#####
####################################################
subnet 192.168.0.0 netmask 255.255.255.0 {
interface eth1;
default-lease-time 6000;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option routers 192.168.0.254;
option broadcast-address 192.168.0.255;
}
##################################################
#####----- End Downstairs Configuration -----#####
##################################################

##################################################
#####----- Start Upstairs Configuration -----#####
##################################################
subnet 10.0.0.0 netmask 255.255.255.0 {
interface eth2;
default-lease-time 6000;
max-lease-time 7200;
range 10.0.0.100 10.0.0.200;
option subnet-mask 255.255.255.0;
option routers 10.0.0.254;
option broadcast-address 10.0.0.255;
}
################################################
#####----- End Upstairs Configuration -----#####
################################################

#####################################################################
#####----- Start Server and Fixed IP Address Configuration -----#####
#####################################################################
group{
###--- Any global server settings should go here ---###

#- Printer -#
host printer {
hardware ethernet 00:00:00:00:00:00;
fixed-address 10.0.0.25;
}
#- J computer -#
host j {
hardware ethernet 00:00:00:00:00:00;
fixed-address 10.0.0.105;
}
#- TServer computer -#
host tserver {
hardware ethernet 00:00:00:00:00:00;
fixed-address 10.0.0.110;
}
#- Windows 2008 Server -#
host win2008server {
hardware ethernet 00:00:00:00:00:00;
fixed-address 10.0.0.115;
}
#- Asterisk Box -#
host asterisk {
hardware ethernet 00:00:00:00:00:00;
fixed-address 10.0.0.120;
}
#- WWW Server -#
host www2 {
hardware ethernet 00:00:00:00:00:00;
fixed-address 10.0.0.125;
}
}
###################################################################
#####----- End Server and Fixed IP Address Configuration -----#####
###################################################################

(di kutip dari smkn1-tuban.sch.id)

No comments:

Post a Comment