Installing and Configuring DHCP Server (DHCPd) on FreeBSD Instalasi dan Konfigurasi DHCP server (dhcpd) pada FreeBSD
DHCP, the Dynamic Host Configuration Protocol, describes the means by which a system can connect to a network and obtain the necessary information for communication upon that network. DHCP, the Dynamic Host Configuration Protocol, menjelaskan artinya oleh sebuah sistem yang dapat terhubung ke jaringan dan memperoleh informasi yang diperlukan untuk komunikasi yang pada jaringan.
When dhclient, the DHCP client, is executed on the client machine, it begins broadcasting requests for configuration information. Ketika dhclient, maka klien DHCP, dijalankan pada komputer klien, dimulai penyiaran permintaan untuk informasi konfigurasi. By default, these requests are on UDP port 68. Secara default, ini adalah permintaan UDP pada port 68. The server replies on UDP 67, giving the client an IP address and other relevant network information such as netmask, router, and DNS servers. Server balasan pada UDP 67, klien memberi alamat IP dan informasi lainnya yang relevan jaringan seperti netmask, router, dan DNS server. All of this information comes in the form of a DHCP ?lease? Semua informasi ini datang dalam bentuk DHCP? Sewa? and is only valid for a certain time (configured by the DHCP server maintainer). dan hanya berlaku untuk waktu tertentu (dikonfigurasi dengan server DHCP maintainer). In this manner, stale IP addresses for clients no longer connected to the network can be automatically reclaimed. Dengan cara ini, lelah alamat IP untuk klien tidak lagi terhubung ke jaringan dapat secara otomatis yg dikeringkan.
DHCP Server (or DHCPd) is the server that provides the DHCP client the information it needed, and it's the server portion of the suite is not provided as part of FreeBSD, and so it needs to install from the net/isc-dhcp3-server port to provide this service. DHCP Server (atau dhcpd) adalah server yang menyediakan DHCP klien informasi itu diperlukan, dan dari server bagian suite tidak diberikan sebagai bagian dari FreeBSD, sehingga kebutuhan dan menginstall dari net/isc-dhcp3-server port untuk menyediakan layanan ini.
FreeBSD comes with ISC DHCP, and it comes with FreeBSD as ports net/isc-dhcp3-server. FreeBSD datang dengan DHCP ISC, dan dilengkapi dengan FreeBSD sebagai port net/isc-dhcp3-server.
To install it, change to ports net/isc-dhcp3-server directory and execute the following command: Untuk menginstalnya, ubah ke port net/isc-dhcp3-server direktori dan jalankan perintah berikut:
# make install clean # Make install bersih
DHCPd is configured by using a configuration file, normally dhcpd.conf located at /usr/local/etc directory. Dhcpd dikonfigurasi dengan menggunakan sebuah file konfigurasi, biasanya dhcpd.conf yang terletak di / usr / local / etc direktori. Normally there is an example configuration file which is dhcpd.conf.example at the directory. Biasanya ada contoh file konfigurasi yang dhcpd.conf.example di direktori. Copy dhcpd.conf.example to dhcpd.conf or create a new dhcpd.conf before proceeding to make changes on DHCP Server. Salin dhcpd.conf.example ke dhcpd.conf atau membuat yang baru sebelum melanjutkan dhcpd.conf untuk melakukan perubahan pada DHCP Server.
dhcpd.conf is comprised of declarations regarding subnets and hosts, and is perhaps most easily explained using an example : dhcpd.conf terdiri dari deklarasi mengenai subnets dan alam, dan mungkin paling mudah dijelaskan dengan menggunakan contoh:
option domain-name “example.com”; (1) option domain-name "example.com"; (1)
option domain-name-servers 192.168.4.100; (2) option domain-name-server 192.168.4.100; (2)
option subnet-mask 255.255.255.0; (3) option subnet-mask 255.255.255.0; (3)
default-lease-time 3600; (4) default-lease-time 3600; (4)
max-lease-time 86400; (5) max-lease-time 86400; (5)
ddns-update-style none; (6) DDNS-update-style none; (6)
subnet 192.168.4.0 netmask 255.255.255.0 { subnet 192.168.4.0 netmask 255.255.255.0 (
range 192.168.4.129 192.168.4.254; (7) range 192.168.4.129 192.168.4.254; (7)
option routers 192.168.4.1; (8) option routers 192.168.4.1; (8)
} )
host mailhost { host mailhost (
hardware ethernet 02:03:04:05:06:07; (9) hardware ethernet 02:03:04:05:06:07; (9)
fixed-address mailhost.example.com; (10) fixed-address mailhost.example.com; (10)
} )
(1) This option specifies the domain that will be provided to clients as the default search domain. (1) Pilihan ini menentukan domain yang akan diberikan kepada klien sebagai standar pencarian domain.
(2) This option specifies a comma separated list of DNS servers that the client should use. (2) Pilihan ini menentukan daftar dipisahkan koma dari server DNS yang harus menggunakan klien.
(3) The netmask that will be provided to clients. (3) netmask yang akan diberikan kepada klien.
(4) A client may request a specific length of time that a lease will be valid. (4) Mei permintaan klien tertentu lamanya waktu sewa yang akan berlaku. Otherwise the server will assign a lease with this expiry value (in seconds). Jika server akan menetapkan sewa ini berakhir dengan nilai (dalam detik).
(5) This is the maximum length of time that the server will lease for. (5) Ini adalah maksimum panjang waktu yang digunakan untuk server akan sewa. Should a client request a longer lease, a lease will be issued, although it will only be valid for max-lease-time seconds. Klien harus meminta lagi sewa, sewa yang akan dikeluarkan, walaupun hanya akan berlaku untuk max-lease-time detik.
(6) This option specifies whether the DHCP server should attempt to update DNS when a lease is accepted or released. (6) Pilihan ini menentukan apakah DHCP server harus mencoba untuk meng-update DNS bila sewa diterima atau dilepaskan. In the ISC implementation, this option is required. ISC dalam pelaksanaan, opsi ini diperlukan.
(7) This denotes which IP addresses should be used in the pool reserved for allocating to clients. (7) ini menunjukkan alamat IP yang harus digunakan di kolam renang untuk mengalokasikan ke klien. IP addresses between, and including, the ones stated are handed out to clients. Antara alamat IP, dan termasuk salah satu yang dinyatakan diberikan kepada klien.
(8) Declares the default gateway that will be provided to clients. (8) menyatakan default gateway yang akan diberikan kepada klien.
(9) The hardware MAC address of a host (so that the DHCP server can recognize a host when it makes a request). (9) The hardware alamat MAC dari sebuah host (sehingga server DHCP dapat mengenali host ketika membuat permintaan).
(10) Specifies that the host should always be given the same IP address. (10) Menentukan host yang harus selalu diberi alamat IP yang sama. Note that using a hostname is correct here, since the DHCP server will resolve the hostname itself before returning the lease information. Perlu diketahui bahwa dengan menggunakan nama host yang benar di sini, karena server DHCP akan menyelesaikan hostname sendiri sebelum kembali informasi yang sewa.
Once you have finished writing your dhcpd.conf, you can proceed to start the server by issuing the following command: Setelah Anda selesai menulis dhcpd.conf, anda dapat melanjutkan ke server oleh mulai mengeluarkan perintah berikut:
# /usr/local/etc/rc.d/isc-dhcpd.sh start # / Usr / local / etc / rc.d / ISC-dhcpd.sh mulai
Should you need to make changes to the configuration of your server in the future, it is important to note that sending a SIGHUP signal to dhcpd does not result in the configuration being reloaded, as it does with most daemons. Jika Anda perlu membuat perubahan pada konfigurasi dari server Anda di masa depan, penting untuk dicatat bahwa mengirimkan sinyal ke SIGHUP dhcpd tidak menghasilkan konfigurasi yang reloaded, karena paling tidak dengan daemon. A SIGTERM signal to stop the process, and then restart it using the command above. J SIGTERM sinyal untuk menghentikan proses, dan kemudian kembali dengan menggunakan perintah di atas. For example: Sebagai contoh:
# ps wax | grep dhcpd # Id lilin | grep dhcpd
pid of dhcpd will be shown pid dhcpd yang akan ditampilkan
# kill -15 (pid of dhcpd) # Membunuh -15 (pid dari dhcpd)
IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman yang diterjemahkan mesin dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Mesin terjemahan mungkin sulit dimengerti. Please refer to Silakan merujuk ke original English article artikel asli Inggris whenever possible. bila memungkinkan.
Related Articles Artikel Terkait
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 2 Instalasi Web Server di FreeBSD 6.0 with Apache 2.2, PHP MySQL 5,0 dan 5 - Part 2
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5 Instalasi Web Server di FreeBSD 6.0 with Apache 2.2, PHP MySQL 5,0 dan 5 - Bagian 5
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 3 Instalasi Web Server di FreeBSD 6.0 with Apache 2.2, PHP MySQL 5,0 dan 5 - Bagian 3
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4 Instalasi Web Server di FreeBSD 6.0 with Apache 2.2, PHP MySQL 5,0 dan 5 - Part 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 1 Instalasi Web Server di FreeBSD 6.0 with Apache 2.2, PHP MySQL 5,0 dan 5 - Bagian 1
- Tips of How to Switch between DHCP and Static IP Network Automatically in Windows Tips dari Bagaimana Beralih di antara DHCP dan Static IP Jaringan secara otomatis pada Windows
- FreeBSD 6.0 on VMware Server Time and Clock Slow Down FreeBSD 6,0 di VMware Server Waktu dan Jam Slow Down
- Missing CD/DVD Device Driver Problem While Installing Vista on VMWare Server/ESX Hilang CD / DVD Device Driver Problem Saat Instalasi Vista di VMWare Server / ESX
- Checking Free Disk Space on FreeBSD Server Pemeriksaan Disk Space Gratis di FreeBSD Server
- Using Portsnap to Update FreeBSD Ports Tree Collection Menggunakan Portsnap ke Update FreeBSD Ports Tree Koleksi









































