Instalasi dhcp server:
# Apt-get install isc-dhcp-server
Tentukan IP statis untuk server
# Nano / etc / network / interfaces
auto eth0
# Apt-get install isc-dhcp-server
Tentukan IP statis untuk server
# Nano / etc / network / interfaces
auto eth0
iface eth0 inet static
address 192.168.0.2 # server's IP address
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.1.255
gateway 192.168.0.1 #router's IP address
Mengkonfigurasi pengaturan server DHCP di / etc / dhcp / dhcpd.conf
# Nano / etc / dhcp / dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "domainmu.com";
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.150 192.168.0.200; #Range of client's IP addresses: 150 sampai 200
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
}
Restart dhcp-server
# /etc / init.d / isc-dhcp-server me-restart
Restart eth0
#ifdown eth0
Restart dhcp-server
# /etc / init.d / isc-dhcp-server me-restart
Restart eth0
#ifdown eth0
# ifup eth0
0 komentar:
Post a Comment