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 私のデジタルライフフォーラム .


Leave a Replyは、返信のままに

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> これらのタグ :の<a href=""使用することができますtitle=""> <abbr title=""> <acronym title=""> <b>ダウンロード<blockquote cite=""> <cite>の<code> <デル日時= " " >の<em> <i> <q cite=""> <strike> <strong>

Subscribe without commentingチャンネル登録コメントなし


New Articles新しい記事

Incoming Search Terms for the Article着信は、文書の検索利用規約

dhcp freebsd DHCPのFreeBSDの - - freebsd dhcpd のdhcpd FreeBSDの - - dhcpd freebsd FreeBSDののdhcpd - - freebsd dhcp server FreeBSDのDHCPサーバー - - DHCP server FreeBSD DHCPサーバはFreeBSD - - freebsd restart dhcpd FreeBSDの dhcpdを再起動 - - freebsd dhcp FreeBSDのDHCPを - - dhcp on freebsdのDHCP FreeBSDの - - dhcp server mysql DHCPサーバーのmysql - - install DHCP freebsd FreeBSDのインストールのDHCP - - dhcp mysql DHCPのmysqlの - - dhcpd vista ビスタのdhcpd - - vmware freebsd dhcp ヴイエムウェアはFreeBSDのDHCP - - configuring DHCP on FreeBSD FreeBSD上でDHCPの設定 - - install dhcp server freebsd FreeBSDのDHCPサーバーをインストールする - - restart dhcp freebsd FreeBSDのDHCPを再起動 - - dhcp no freebsd FreeBSDのDHCPのない - - restart dhcpd freebsd FreeBSDのdhcpdを再起動 - - freebsd dhcpcd dhcpcdをFreeBSDの - - isc dhcp install ISCのDHCPのインストール - - dhcpd mysql のdhcpdのmysql - - freebsd dhcp release FreeBSDのDHCPをリリース - - dhcp3 option 161 はdhcp3オプション161 - - freebsd install dhcpd FreeBSDの dhcpdをインストールする - - isc dhcpd option 66 ISCのdhcpdオプション66 - - dhcpd signal のdhcpd信号 - - disable dhcp freebsd FreeBSDのDHCPを無効に - - isc dhcp vista ISCのDHCPの眺め - - dhcp+freebsd DHCPを+ FreeBSDの - - freebsd reload dhcpd FreeBSDの再読み込みのdhcpd - - servidor dhcp no freebsd のDHCPサーバはFreeBSDの - - freebsd 7 dhcpd 7月のdhcpd FreeBSDの - - ISC dhcp option 66 ISCのDHCPオプション66 - - bsd dhcpd のdhcpdのBSD - - vista dhcpd ビスタのdhcpd - - installing and configuring dhcp インストールするとDHCPの設定 - - dhcpd domain search のdhcpdドメイン検索 - - freebsd dhcp download FreeBSDのDHCPをダウンロード - - freebsd dhcp install FreeBSDのDHCPをインストールする - - dhcpd option 249 オプションのdhcpd 249 - - vista dhcp server VistaのDHCPサーバー - - dhcp for freebsd FreeBSDのためにDHCP - - freebsd dhcpd.conf FreeBSDのdhcpd.conf - - freebsd change dhcp FreeBSDの変更のDHCP - - dhcp server freebsd download FreeBSDのDHCPサーバーをダウンロード - - freebsd dhcpd restart FreeBSDの再起動のdhcpd - - dhcp + mysql DHCPを+ MySQLの - - dhcpd のdhcpd - - 192.168.4.254 192.168.4.254 - - dhcpd list connected ip リストのdhcpd IP 接続 - -