Linux Build DHCP server

Source: Internet
Author: User

DHCP:D ynamic host config Protocol Dynamic Host Configuration Protocol works with UDP protocol

Port:

DHCP SERVER:UDP67

DHCP client:udp68

To formally install the DHCP service:

Yum Install DHCP dhcp-devel-y, then modify DHCP

The contents of the/etc/dhcpd.conf configuration file are as follows:

Ddns-uupdate-style Interim;

Ignore client-updates;

Next-server 192.168.0.79;

FileName "pxelinux.0";

Allow booting;

Allow BOOTP;

Subnet 192.168.0.0 netmask 255.255.252.0{

#---Default gateway

Option routers 192.168.0.1;

Option Subnet-mask 255.255.255.0;

#option nis-domain "domain.org";

#option domain-name "192.168.0.10";

#otion domain-name-servers 182.168.0.11;

#option ntp-servers 192.168.1.1;

#option netbios-name-servers 192.168.1.1;

#---Selects point-to-point node (default is hybrid). Don ' t change this unless

#--you Understand Netbios very well

#option Netbios-node-type 2;

Range DYNAMIC-BOOTP 192.168.0.100 192.168.0.200;

Host ns{

Hardware Ethernet 00:1a:a0:2b:38:81;

Fixed-address 192.168.0.101;

}

}

Note that as configured above, you need to modify the corresponding server network segment IP, and then restart the DHCP service,/ETC/INIT.D/DHCPD restart.

Client to obtain IP from this DHCP server, need to do simple settings, if it is Linux, you need to change the/etc/sysconfig/network-scritps/ifcfg-eth0 Bootproto to DHCP, Windows machine, you need to modify the local connection, set him to automatically obtain the IP;

Bootproto-dhcp

Linux Build DHCP server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.