Cara membuat DHCP Server di Ubuntu
kali ini sya ingin membahas masalh setting DHCP Server di Ubuntu , langsung aja ya
1. Membukalah terminal mu dan jenis perintah in
Code:
sudo apt-get install dhcp3-server
2. Open file /etc/default/dhcp3-server with this command:
Code:
vim /etc/default/dhcp3-server
3. Open file /etc/dhcp3/dhcpd.conf with this command:
Code:
vim /etc/dhcp3/dhcpd.conf
Quote:
subnet 172.16.144.0 netmask 255.255.255.0 { range 172.16.144.100 172.16.144.200; option domain-name-servers 172.16.144.1; option domain-name "yourdomain.com"; option routers 172.16.144.1; option subnet-mask 255.255.255.0; option broadcast-address 172.16.144.255; default-lease-time 21600; max-lease-time 43200; } |
4. Restart your dhcp server with this command:
Code:
/etc/init.d/dhcp3-server restart
berikut ini merupakan langkah-langkah konfigurasi server dhcp yang berjalan pada mesin ubuntu:
• install paket DHCP server
$
Code:
sudo apt-get install dhcp3-server
$
Code:
sudo nano /etc/default/dhcp3-server
• ubah isi file /etc/dhcp3/dhcpd.conf dengan menggunakan editor
Code:
$ sudo nano /etc/dhcp3/dhcpd.conf
Quote:
ddns-update-style none; default-lease-time 600; max-lease-time 7200; authoritative; log-facility local7; #di isi dengan Ip yang anda mau subnet 192.168.10.0 netmask 255.255.255.0 { range 192.168.10.10 192.168.10.100; option subnet-mask 255.255.255.0; option broadcast-address 192.168.10.255; option routers 192.168.10.1; option domain-name-servers 202.xxx.xxx.xxx, 202.xxx.xxx.xxx; } |
• restart service dhcp3-server
$
Code:
sudo invoke-rc.d dhcp3-server restart
Tidak ada komentar:
Posting Komentar