•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Backup
    • Content Delivery Network
    • Colocation Hosting
    • Dedicated Hosting
    • DDoS Mitigation
    • IP Transit
    • Private Cloud
    • Wavelength
  •  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
    • Dedicated Servers
    • Colocation
    • Private Cloud
    • DDos Protection
    • IP Transit
    • CDN
    • Backup
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

ISC-DHCP server config

  • Home
  • Client
  • Qa Forum
  • ISC-DHCP server config

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

I have recently purchased a dedicated server from Psychz Networks. I haven't installed any OS on my machine yet. But before I do that I need some help on how to install and configure DHCP Server?

 

Psychz - Amol

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

The Dynamic Host Configuration Protocol (DHCP) is a client/server protocol used to automatically assign IP addresses to hosts when they move from one subnet to another. Before the development of DHCP, when the devices using Internet Protocol migrated from one subnet to another, they had to be configured manually. With the help of DHCP, the devices are provided the IP addresses automatically. The DHCP server maintains a pool of IP addresses and allots the IP addresses automatically to every DHCP-clint as it enters the network.


ISC-DHCP Server Configuration

Prerequisites

1. OPERATING SYSTEM - Ubuntu 14.04

2. An active network

3. Installation - Please open the terminal and run the following command to install ISC-DHCP server.

 

sudo apt-get install isc-dhcp-server

 

The command will install DHCP server in your Ubuntu operating system. The DHCP configuration file named "dhcpd.conf" is created in the directory "/etc/dhcp/dhcpd.conf". This file is a default file and it needs to be configured according to the specifications of your network.

Another file called "isc-dhcp server" is created in "/etc/default". You need to edit the file to specify the interfaces DHCP should listen to. By default, the DHCP listens to "eth0". 


DHCP configuration

1. Edit the "dhcp.conf" file with the help of any editor and modify it as following.

 

default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.example";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.110;
range 192.168.1.160 192.168.1.200;
} 

 

As we can see in the latter part of this configuration, a subnet "192.168.1.0" is defined with a netmask of 255.255.255.0, that is 256 IPs. Ranges are also defined so that IPs in the range of 192.168.1.10-192.168.1.110 and 192.168.1.160-192.168.1.200 can only be assigned to the devices. 

Also, default lease time of 600 is provided which means that the DHCP will reserve an IP for only 600 seconds by default. The maximum lease time that can be allotted is set to 7200 seconds. 

Other parameters that are provided are the broadcast address, the DNS servers among others.

 

2. The following command is used to make this DHCP server the official DHCP server for the local network. 

 

authoritative;


3. Edit the "isc-dhcp server" file with any editor of your choosing. The path of "isc-dhcp server" file is "/etc/default/isc-dhcp-server". In this file, you will find the option "INTERFACES". You can choose multiple interfaces with a space between them. For example,

 

INTERFACES="wlan0 eth0"


Restart ISC-DHCP server

Now that the isc-dhcp-server configuration is complete, we need to reload the DHCP server, so that the new configurations can be implemented.

 

sudo service isc-dhcp-server restart
sudo service isc-dhcp-server start
sudo service isc-dhcp-server stop


 

 

 

Was this reply helpful?

Related topics

  • Firewalld commands for CentOS 7 and CentOS 8
  • BBR : A new way to increase Internet speed
  • server rent for php application
  • affordable dedicated server for woocommerce
  • Centos 7 Network Config
  • Basic and useful Linux commands
  • How to setup a Dedicated Server for Space Engineers
  • Linux Command Line Tutorial For Git
  • How to setup a Dedicated Server for Terraria
  • Top 6 Tools To Search For Memory Under Linux
  • How to setup a Dedicated server for Risk of Rain 2
  • CDN and Load Balancer: Ultimate combination for efficient content delivery
  • Why Gaming Companies are Choosing Bare Metal Servers
  • Managed Dedicated Server Hosting In California
  • Dedicated Server With 1 Gbps Unlimited Bandwidth
Hosting Services
  • Dedicated Hosting
  • Colocation Hosting
  • Backup
  • IP Transit
  • DDoS Mitigation
Support
  • Portal Login
  • Knowledgebase
  • Community
Company
  • About Us
  • Contact Us
  • Network
  • Data Centers
  • Looking Glass
  • Affiliates
  • Reseller
  • Blog
Policies
  • Privacy Policy
  • Acceptable Usage Policy
  • Terms and Conditions
  • Service Level Agreement
Company
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801
Subscribe to Our Mailing List
* indicates required
Copyright © 2023 Psychz Networks, A Profuse Solutions Inc Company