Install DHCP under CentOS5.5

Source: Internet
Author: User
Tags domain name server

Dhcp a, Introduction A.1, and DHCP are installed in CentOS5.5: The Dynamic Host Configuration Protocol is a lan network Protocol that uses UDP for two purposes: an IP address is automatically assigned to an internal network or network service provider to the user as a central management means for all computers. A.2. DDNS (Dynamic Domain Name Server) is short for Dynamic Domain Name Service! DDNS maps users' Dynamic IP addresses to a fixed domain name resolution service, each time a user connects to the network, the client program transmits the dynamic IP address of the host to the server program on the host of the service provider, the server program is responsible for providing DNS services and implementing dynamic domain name resolution. That is to say, DDNS captures the IP address that the user changes each time and maps it to the domain name so that other online users can communicate through the domain name. B. install and configure B .1, install DHCP yum-y install dhcp B .2, and configure the DHCP configuration file/etc/dhcpd. conf, but this file has no content by default. You can copy one file from the dhcp installation directory to/etc. Cp/usr/share/doc/dhcp-3.0.5/dhcpd. conf. sample/etc/dhcpd. conf vi/etc/dhcpd. conf B .2.1. Configure/etc/dhcpd. conf ddns-update-style none; # Do not update DDNS settings ignore client-updates; subnet 192.168.0.0 netmask 255.255.255.0 {option routers 192.168.0.1; # --- default gateway # gateway option subnet-mask 255.255.255.0; # Subnet Mask option nis-domain "domain.org"; option domain-name "domain.org"; # domain name option domain-name-servers 2 02.96.209.20., 116.228.111.18; # Domain name Server address option time-offset-18000; # Eastern Standard Time # Eastern Standard time # 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 # select a point-to-point node (mixed by default ). Do not change it unless you are very familiar with Netbios. # Option netbios-node-type 2; range dynamic-bootp 192.168.0.128 192.168.0.254; # default-lease-time 21600 for the provided IP address; # default lease period max-lease-time 43200; # maximum lease period # we want the nameserver to appear at a fixed address # the following content retains the IP host ns for a specific machine {next-server marvin.RedHat.com; hardware ethernet 12: 34: 56: 78: AB: CD; fixed-address 207.175.42.254 ;}} B .2.2. Configure/etc/sysconfig/dhcpd # Command line options here DHCPDARGS = eth0 B .3. start DHCP service dhcpd start # start DHCP service chkconfig dhcpd on # enable DHCP service to start with the System

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.