•  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

  • 廉价专用服务器托管插座
  • 如何启动游戏服务器托管公司
  • 修复err_name_not_resolved
  • cVirtual Storage
  • The Difference Between Brotli And Gzip Compression Algorithms To Speed Up Your Site
  • Linux的五大开源备份软件
  • Linux Systems Are In Serious Need Of A Ghostbuster
  • IP传输与对等
  • How to obtain login information of your dedicated server in client area?
  • History of Internet
  • DDoS保护网络
  • Colocation Vs Managed Hosting
  • CDN Locations Intro
  • BBR:提高互联网速度的新途径
  • Announcing sBlock: Psychz Networks’ New Block Storage Solution
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