DHCP server configuration--linux

Source: Internet
Author: User

Related documents:
template file:/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample configuration file:/etc/dhcpd.conf Lease file:/var/lib/dhcpd/dhcpd.leases
related RPM Packages:
dhcp-3.0.5-18.e15.i386.rpmdhcpv6-1.0.10-16.e15.i386.rpmdhcp-devel-3.0.5-18.e15.i386.rpmdhcpv6_ client-1.0.10-16.e15.i386.rpm
4 stages:
DHCP
Discover//IP lease request DHCP offer//IP lease provide DHCP resquest//IP lease Select DHCP Ack//IP lease Acknowledgement
configuration file detailed (/etc/dhcpd.conf):
1, Ddns-update-style (NONE|INTERIM|AD-HOC)//Must be located on the first line 2, ignore client-update//Ignore Client update 3, Default-lease-time 2160 0//default lease time 4, Max-lease-time 43200//maximum lease time 5, range DYNAMIC-BOOTP start IP End IP//configuration address pool 6, subnet network number netmask subnet mask Code {7, option routers IP address//Configure Default gateway 8, option Subnet-mask Subnet mask//Configure Subnet mask 9, option Domain-name-servers IP address//dns address} 10, host ceo{11, hardware Ethernet MAC address//Configure the fixed host MAC address 12, Fixed-a ddress fixed IP//configuration fixed assigned IP address}
configuration of the client:
simply configure the/etc/sysconfig/network-scripts/ifcfg-eth0 file under Bootproto=dhcp to
Configure boot auto-load:
chkconfig-level 3 DHCP on//configuration Level 3, power on automatically load DHCP service (level 3 is character interface) Chkconfig-level 3 DHCP off//configuration Level 3, power on does not automatically load DHCP service (level 3 for character interface)

DHCP server configuration--linux

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.