Installing and Configuring DHCP Server (DHCPd) on FreeBSD تركيب والتشكيل خادم DHCP (DHCPd) على فري بي

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 ، مع إعطاء العميل الملكية الفكرية معالجة وشبكة المعلومات الأخرى ذات الصلة مثل netmask ، موجه ، ونظام أسماء النطاقات خدمة الشبكة. 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 تهيئتها من قبل خادم maintainer). In this manner, stale IP addresses for clients no longer connected to the network can be automatically reclaimed. وبهذه الطريقة ، قديمة عناوين بروتوكول الإنترنت لعملاء لم تعد مرتبطة إلى الشبكة يمكن أن يكون تلقائيا المستصلحة.

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 العملاء المعلومات اللازمة ، وأنه الخادم جزء من جناح لم تقدم كجزء من فري بي ، وحتى انها تحتاج الى تثبيت من net/isc-dhcp3 خادم الميناء لتوفير هذه الخدمة.

FreeBSD comes with ISC DHCP, and it comes with FreeBSD as ports net/isc-dhcp3-server. ويأتي مع فري وستجرى لجنة المخابرات DHCP ، ويتعلق الأمر مع 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 # جعل تركيب نظيفة

DHCPd is configured by using a configuration file, normally dhcpd.conf located at /usr/local/etc directory. DHCPd هو تهيئتها باستخدام ملفات dhcpd.conf تقع عادة في / usr / المحلية / دليل الخ. 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 أو إنشاء لجنة جديدة dhcpd.conf قبل الشروع في إجراء تغييرات على خادم DHCP.

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 - تحديث على النمط لا شيء ؛ (6)

subnet 192.168.4.0 netmask 255.255.255.0 { الشبكة الفرعية 192.168.4.0 netmask 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) هذا الخيار يحدد فاصلة فصل نظام أسماء النطاقات لخدمة قائمة من العملاء ينبغي أن استخدام.
(3) The netmask that will be provided to clients. (3) وnetmask التي ستقدم للعملاء.
(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 محاولة لتحديث نظام أسماء النطاقات عندما قبلت الإيجار أو إطلاق سراحهم. In the ISC implementation, this option is required. وستجرى لجنة المخابرات في التنفيذ ، وهذا الخيار هو مطلوب.
(7) This denotes which IP addresses should be used in the pool reserved for allocating to clients. (7) وهذا يدل على عناوين بروتوكول الإنترنت التي ينبغي أن تستخدم في بركة محفوظة لتخصيص للعملاء. IP addresses between, and including, the ones stated are handed out to clients. بين عناوين بروتوكول الإنترنت ، وبما في ذلك ، تلك التي ذكرت هي سلم إلى العملاء.
(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) ومعدات معالجة لجنة الهدنة العسكرية للمضيف (DHCP حتى أن الخادم المضيف يستطيع الاعتراف عندما تقدم الطلب).
(10) Specifies that the host should always be given the same IP address. (10) على أن البلد المضيف يجب أن يعطي دائما نفس عنوان بروتوكول الإنترنت. 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 / المحلية / الخ / rc.d / ستجرى لجنة المخابرات وبين بداية dhcpd.sh

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. ينبغي أن تحتاج إلى إجراء تغييرات في تكوين الخادم الخاص بك في المستقبل ، ومن المهم الإشارة إلى أن إرسال SIGHUP إشارة إلى dhcpd لا نتيجة في التشكيل يتم إعادة شحنها ، كما هو الحال مع معظم الشياطين. A SIGTERM signal to stop the process, and then restart it using the command above. ألف SIGTERM إشارة لوقف العملية ، وبعد ذلك استئناف انها قيادة باستخدام أعلاه. For example: على سبيل المثال :

# ps wax | grep dhcpd # ملاحظة : شمع | grep dhcpd
pid of dhcpd will be shown pid من dhcpd سيتم عرض

# kill -15 (pid of dhcpd) # قتل -15 (pid من dhcpd)

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> يمكنك استخدام هذه العلامات : <ahref="" title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquotecite=""> <cite><code><ديل datetime = ""> <em><i><qcite=""> <strike><strong>

Subscribe without commenting اكتتاب دون التعليق


Custom Search

New Articles المواد الجديدة

Incoming Search Terms for the Article ابحث الواردة للشروط المنصوص عليها في المادة

dhcp freebsd dhcp فري - -- freebsd dhcpd فري dhcpd - -- dhcpd freebsd dhcpd فري - -- freebsd dhcp server فري dhcp الخادم - -- DHCP server FreeBSD خادم DHCP فري - -- freebsd restart dhcpd فري استئناف dhcpd - -- freebsd dhcp فري dhcp - -- dhcp on freebsd dhcp على فري - -- dhcp server mysql dhcp خادم ماي. س. ك - -- install DHCP freebsd تثبيت DHCP فري - -- dhcp mysql ماي. س. ك dhcp - -- dhcpd vista dhcpd فيستا - -- vmware freebsd dhcp vmware فري dhcp - -- configuring DHCP on FreeBSD التشكيل DHCP على فري - -- install dhcp server freebsd تركيب dhcp خادم فري بي - -- restart dhcp freebsd استئناف dhcp فري - -- dhcp no freebsd dhcp لا فري - -- restart dhcpd freebsd استئناف dhcpd فري - -- freebsd dhcpcd فري dhcpcd - -- isc dhcp install وستجرى لجنة المخابرات تركيب dhcp - -- dhcpd mysql dhcpd ماي. س. ك - -- freebsd dhcp release فري dhcp الافراج - -- dhcp3 option 161 dhcp3 الخيار 161 - -- freebsd install dhcpd فري تركيب dhcpd - -- isc dhcpd option 66 وستجرى لجنة المخابرات dhcpd الخيار 66 - -- dhcpd signal إشارة dhcpd - -- disable dhcp freebsd تعطيل dhcp فري - -- isc dhcp vista وستجرى لجنة المخابرات dhcp فيستا - -- dhcp+freebsd dhcp + فري - -- freebsd reload dhcpd فري إعادة تحميل dhcpd - -- servidor dhcp no freebsd خادم dhcp لا فري - -- freebsd 7 dhcpd فري بي 7 dhcpd - -- ISC dhcp option 66 وستجرى لجنة المخابرات dhcp الخيار 66 - -- bsd dhcpd بي إس دي dhcpd - -- vista dhcpd فيستا dhcpd - -- installing and configuring dhcp تركيب وتشكيل dhcp - -- dhcpd domain search dhcpd مجال البحث - -- freebsd dhcp download فري dhcp التحميل - -- freebsd dhcp install تركيب فري بي dhcp - -- dhcpd option 249 dhcpd الخيار 249 - -- vista dhcp server فيستا dhcp الخادم - -- dhcp for freebsd dhcp لفري - -- freebsd dhcpd.conf فري dhcpd.conf - -- freebsd change dhcp فري تغيير dhcp - -- dhcp server freebsd download dhcp خادم فري بي التحميل - -- freebsd dhcpd restart فري استئناف dhcpd - -- dhcp + mysql ماي. س. ك + dhcp - -- dhcpd dhcpd - -- 192.168.4.254 192.168.4.254 - -- dhcpd list connected ip dhcpd قائمة الملكية الفكرية المتصلة - --