Installing and Configuring DHCP Server (DHCPd) on FreeBSD DHCPサーバーのインストールと設定(のdhcpd ) 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のは、動的ホスト構成プロトコルによっては、システムがネットワークに接続し、そのネットワーク上の通信に必要な情報を得る手段を説明しています。
When dhclient, the DHCP client, is executed on the client machine, it begins broadcasting requests for configuration information. dhclientときは、 DHCPクライアントは、クライアントマシン上で実行されると、構成情報の要求放送が開始されます。 By default, these requests are on UDP port 68.デフォルトでは、これらの要求をUDPポート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.は、サーバーのUDP 67 、ネットマスク、 DNSサーバー、ルーターなどのネットワークのIPアドレスおよびその他の関連情報は、クライアントを与えることに応答します。 All of this information comes in the form of a DHCP ?lease?これらの情報はすべてのDHCPかリースの形で来るか? and is only valid for a certain time (configured by the DHCP server maintainer).とは、特定の時間( DHCPサーバーの管理者)に設定有効です。 In this manner, stale IP addresses for clients no longer connected to the network can be automatically reclaimed.このように、クライアントがネットワークに接続さは、もはや古いIPアドレスが自動的に再生することができます。
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サーバー(またはのdhcpd )は、 DHCPクライアントに必要な情報を提供するサーバーですが、これは、スイートのサーバー部分はFreeBSDの一部として提供されていない、となるようにnet/isc-dhcp3からインストールする必要があるサーバーのポートはこのサービスを提供します。
FreeBSD comes with ISC DHCP, and it comes with FreeBSD as ports net/isc-dhcp3-server. FreeBSDのひとつに、 ISC DHCPを付属しており、 FreeBSDによるポートnet/isc-dhcp3-serverとなった。
To install it, change to ports net/isc-dhcp3-server directory and execute the following command:それをインストールするには、ポートに変更net/isc-dhcp3-serverディレクトリとは、次のコマンドを実行:
# make install clean make installを実行します#クリーン
DHCPd is configured by using a configuration file, normally dhcpd.conf located at /usr/local/etc directory.のdhcpdの設定ファイルを使用して、通常dhcpd.confに位置設定は/ usr / local / etcディレクトリ。 Normally there is an example configuration file which is dhcpd.conf.example at the directory.通常はdhcpd.conf.example されているディレクトリに設定ファイルの例です。 Copy dhcpd.conf.example to dhcpd.conf or create a new dhcpd.conf before proceeding to make changes on DHCP Server. dhcpd.conf.example dhcpd.confをコピーしたり、 DHCPサーバーに変更を加えるに進む前に、新しいdhcpd.confを作成します。
dhcpd.conf is comprised of declarations regarding subnets and hosts, and is perhaps most easily explained using an example : dhcpd.confの宣言のサブネットとホストについては、構成され、おそらく最も簡単な例を使って説明:
option domain-name “example.com”; (1)オプションドメイン名" example.com " ; ( 1 )
option domain-name-servers 192.168.4.100; (2)オプションのドメイン名、サーバー192.168.4.100 、 ( 2 )
option subnet-mask 255.255.255.0; (3)オプションのサブネットマスク255.255.255.0 、 ( 3 )
default-lease-time 3600; (4)デフォルトのリース時間3600 、 ( 4 )
max-lease-time 86400; (5)最大リース時間86400 ; ( 5 )
ddns-update-style none; (6)書きますddns - update -スタイルなし、 ( 6 )
subnet 192.168.4.0 netmask 255.255.255.0 { 192.168.4.0サブネットマスク255.255.255.0 (
range 192.168.4.129 192.168.4.254; (7)範囲192.168.4.129 192.168.4.254 、 ( 7 )
option routers 192.168.4.1; (8)オプションのルータ192.168.4.1 ; ( 8 )
} )
host mailhost {ホストmailhost (
hardware ethernet 02:03:04:05:06:07; (9)ハードウェアイーサネット02:03:04:05:06:07 ; ( 9 )
fixed-address mailhost.example.com; (10)固定アドレスmailhost.example.com ; ( 10 )
} )
(1) This option specifies the domain that will be provided to clients as the default search domain. ( 1 )このオプションは、クライアントには、デフォルトの検索ドメインとして提供するドメインを指定します。
(2) This option specifies a comma separated list of DNS servers that the client should use. ( 2 )このオプションはDNSサーバーのクライアントが使用する必要がありますカンマ区切りのリストを指定します。
(3) The netmask that will be provided to clients.は、クライアントに提供されます( 3 )ネットマスク。
(4) A client may request a specific length of time that a lease will be valid. ( 4 )クライアントは、リースが有効になる時間の特定の長さを要求することがあります。 Otherwise the server will assign a lease with this expiry value (in seconds).それ以外の場合は、サーバーは、この有効期限値(秒)とのリースが割り当てられます。
(5) This is the maximum length of time that the server will lease for. ( 5 )この時間の最大長は、サーバーのリースということです。 Should a client request a longer lease, a lease will be issued, although it will only be valid for max-lease-time seconds.はクライアントの要求を長くリース、リースが、それだけで有効になる最大リース時間秒発行される必要があります。
(6) This option specifies whether the DHCP server should attempt to update DNS when a lease is accepted or released. ( 6 )このオプションを使用するかどうかは、 DHCPサーバーがDNSのときにリースを受け入れているかリリースされたアップデートを試みる必要がありますを指定します。 In the ISC implementation, this option is required.は、 ISCの実装では、このオプションが必要です。
(7) This denotes which IP addresses should be used in the pool reserved for allocating to clients. ( 7 )のIPアドレスプールをクライアントに割り当てるために予約を使用する必要がありますこれを示します。 IP addresses between, and including, the ones stated are handed out to clients. IPアドレスの間に、住所、を含むものにしたクライアントに配られます。
(8) Declares the default gateway that will be provided to clients. ( 8 )は、クライアントに提供されるデフォルトのゲートウェイを宣言します。
(9) The hardware MAC address of a host (so that the DHCP server can recognize a host when it makes a request). ( 9 )は、ホストのハードウェアのMACアドレス(これは、 DHCPサーバー)に要求を行う際には、ホストを認識することができます。
(10) Specifies that the host should always be given the same IP address. ( 10 ) 、指定されたホストは常に同じIPアドレスを指定する必要があります。 Note that using a hostname is correct here, since the DHCP server will resolve the hostname itself before returning the lease information.を使用して、ホスト名をここには、 DHCPサーバーからリース情報を返す前には、自身のホスト名が解決されると正しいことを注意してください。
Once you have finished writing your dhcpd.conf, you can proceed to start the server by issuing the following command:お客様のdhcpd.confの作成は終了している場合は、次のコマンドを発行してサーバを起動するに進むことができます:
# /usr/local/etc/rc.d/isc-dhcpd.sh start # / usr / localには/ etc / / ISCの開始にdhcpd.sh rc.d
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.場合は、将来的には、サーバーの構成を変更する必要がある場合、ほとんどのデーモンはないが再読み込みされて、構成をもたらすことがないのdhcpdにSIGHUPシグナルを送るに注意することが重要です。 A SIGTERM signal to stop the process, and then restart it using the command above. SIGTERM信号をして、プロセスを停止するには、上記のコマンドを使用して再起動します。 For example:例えば:
# ps wax | grep dhcpd # psのワックス| grepするのdhcpd
pid of dhcpd will be shown のdhcpd表示されるのPID
# kill -15 (pid of dhcpd) -15殺す# (のdhcpd ) pidを
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これはマシンとして"保証なしにされている"提供されているページを翻訳しています。 Machine translation may be difficult to understand.機械翻訳を理解するのが難しい場合があります。 Please refer toを参照してください original English articleオリジナルの英語の記事 whenever possible.可能な場合。
Share and contribute or get technical support and help at共有して貢献するかを得る技術サポートと支援 My Digital Life Forums 私のデジタルライフフォーラム . 。
Related Articles関連記事
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 2 WebサーバーはFreeBSD 6.0のインストールにより、 Apache 2.2 、 MySQLは5.0とPHP 5で-パート2
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5 WebサーバーはFreeBSD 6.0のインストールにより、 Apache 2.2 、 MySQLは5.0とPHP 5で-パート5
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 WebサーバーはFreeBSD 6.0のインストールにより、 Apache 2.2 、 MySQLは5.0とPHP 5 -パート3
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4 WebサーバーはFreeBSD 6.0のインストールにより、 Apache 2.2 、 MySQLは5.0とPHP 5 -パート4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 1 WebサーバーはFreeBSD 6.0のインストールにより、 Apache 2.2 、 MySQLは5.0とPHP 5で-パート1
- Tips of How to Switch between DHCP and Static IP Network Automatically in Windowsヒントを切り替える方法DHCPと静的IPネットワーク間で自動的にWindowsにする
- FreeBSD 6.0 on VMware Server Time and Clock Slow Down FreeBSDの6.0 VMware Serverは、時間とクロック低速でダウン
- Missing CD/DVD Device Driver Problem While Installing Vista on VMWare Server/ESX行方不明のCD / DVDのデバイスドライバをインストールするVistaの問題はVMWare Server上では/ ESX
- Checking Free Disk Space on FreeBSD Server FreeBSDのサーバー上のディスクの空き容量を確認する
- Request URL /server-status or 404 Page Not Found Apache ErrorリクエストURL /サーバのステータスまたは404ページが見つかりませんApacheのエラー