•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

ISC-DHCP服務器配置

  • Home
  • Client
  • Qa Forum
  • ISC-DHCP服務器配置

Posted By: Nicholas | 1 Replies | Last Reply On: Jul 21, 2017 04:13:32

我最近從Psychz Networks購買了一台專用服務器。我還沒有在我的機器上安裝任何操作系統。但在我這樣做之前,我需要一些關於如何安裝和配置DHCP服務器的幫助?

 

Psychz - Amol

Votes: 0Posted On: Jul 21, 2017 04:13:32
 

動態主機配置協議(DHCP)是一種客戶機/服務器協議,用於在主機從一個子網向另一個子網移動時自動分配IP地址。在開發DHCP之前,當使用Internet協議的設備從一個子網遷移到另一個子網時,必須手動配置。借助DHCP,設備將自動提供IP地址。 DHCP服務器維護一個IP地址池,並在每個DHCP-clint進入網絡時自動分配IP地址。


ISC-DHCP服務器配置

先決條件

操作系統 - Ubuntu 14.04

2.一個活躍的網絡

3. 安裝 - 請打開終端並運行以下命令安裝ISC-DHCP服務器。

sudo apt-get install isc-dhcp-server

該命令將在您的Ubuntu操作系統中安裝DHCP服務器。在“/etc/dhcp/dhcpd.conf”目錄中創建名為“dhcpd.conf”的DHCP配置文件。該文件是一個默認文件,需要根據您的網絡規格進行配置。

另一個名為“isc-dhcp server”的文件是在“/ etc / default”中創建的。您需要編輯該文件以指定DHCP應該收聽的接口。默認情況下,DHCP監聽“eth0”。


DHCP配置

1.在任何編輯器的幫助下編輯“dhcp.conf”文件,並修改如下。

default-lease-time 600;
最大租賃時間7200;
選項子網掩碼255.255.255.0;
選項廣播地址192.168.1.255;
選項路由器192.168.1.254;
option domain-name-servers 192.168.1.1,192.168.1.2;
選項域名“mydomain.example”;
子網192.168.1.0網絡掩碼255.255.255.0 {
範圍192.168.1.10 192.168.1.110;
範圍192.168.1.160 192.168.1.200;
}

正如我們在後面的配置中看到的,子網“192.168.1.0”定義為255.255.255.0的網絡掩碼,即256個IP。還定義了範圍,使得只能將192.168.1.10-192.168.1.110和192.168.1.160-192.168.1.200範圍內的IP分配給設備。

此外,提供的默認租期為600,這意味著默認情況下DHCP將只保留IP地址600秒。可以分配的最大租用時間設置為7200秒。

提供的其他參數是廣播地址,DNS服務器等。

2.使用以下命令使此DHCP服務器成為本地網絡的官方DHCP服務器。

權威性;


3.使用您選擇的任何編輯器編輯“isc-dhcp服務器”文件。 “isc-dhcp server”文件的路徑為“/ etc / default / isc-dhcp-server”。在此文件中,您將找到“INTERFACES”選項。您可以選擇多個接口之間有空格。例如,

INTERFACES =“wlan0 eth0”


重新啟動ISC-DHCP服務器

現在,isc-dhcp-server配置完成後,需要重新加載DHCP服務器,才能實現新的配置。

sudo服務isc-dhcp-server重啟
sudo服務isc-dhcp-server啟動
sudo服務isc-dhcp-server停止


Was this reply helpful?

Related topics

  • 遠程DDoS保護
  • 承載Minecraft服務器的成本是多少
  • 專用服務器轉售
  • 在比較:Ubuntu的VS Linux Mint的
  • 即時設置專用服務器
  • cVirtual Rescue
  • Security: Email List Compromise
  • Secure Token Integration For Python (Secondary)
  • Rise of Just-In-Time Infrastructure
  • Psychz Networks - Poised to grow Stronger and Bigger with Launch of Chicago Datacenter
  • Price Match Promise: How to Secure the Best Deal on Dedicated Servers in Multiple U.S. Locations
  • Minecraft服務器的最佳硬件
  • Installation of Lamp Stack on CentOS 7
  • How to setup API Access
  • CDN Hotlink Protection Intro
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • nIP Transit
  • nWavelength
Protection
  • pBackup
  • pDDoS
Company
  • About Us
  • Blog
  • Careers
  • Contact Us
  • Data Centers
  • Looking Glass
  • Network
  • Reseller
Policies
  • Acceptable Usage Policy
  • Privacy Policy
  • Service Level Agreement
  • Terms and Conditions
Support
  • Community
  • Knowledge Base
  • Open A Ticket
Get In Touch
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801