LINUX-DHCP Server

Source: Internet
Author: User

Port:

IPV4:UDP67, (client)

ipv6:udp546, 547

Configuration file:/etc/dhcp/dhcpd.conf

Template files:/usr/share/doc/dhcp-*/dhcpd.conf.example

To copy a template file to a configuration file: cp/usr/share/doc/dhcp-4.2.5/dhcpd.conf.example/etc/dhcp/dhcpd.conf

Global configuration

Option Domain-name "example.org"; #设置所在DNS域

Option Domain-name-servers ns1.example.org, ns2.example.org; #设置DNS服务器地址

Default-lease-time 600; #设置默认租约, unit of seconds

Max-lease-time 7200; #设置最大租约, unit of seconds

#ddns-update-style None; #设定DNS更新方式

#authoritative; #标示权威服务器

Log-facility Local7; #日志发送到local7日志服务中

Subnet configuration

Subnet 192.168.200.0 netmask 255.255.255.0 {

Range 192.168.200.100 192.168.200.250; #分配的ip范围

Option routers 192.168.200.2; #网关

Option broadcast-address 192.168.200.255; #广播地址

}

There will be a lease information file under Server-side/var/lib/dhcpd/dhcpd.leases

Client/var/lib/dhclient/dhclient-*.lease is a lease information file

LINUX-DHCP Server

Related Article

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.