Redhat5 DHCP server configuration

Source: Internet
Author: User
DHCP Server Configuration:
Dynamic Host Configuration Protocol (DHCP) is a LAN network protocol that uses UDP for two purposes: to automatically assign IP addresses to internal network or network service providers, it provides users or internal network administrators with central management measures for all computers.

 

1. Check whether the package required by the DHCP service is installed:
[Root @ station252 ~] # Rpm-Qa | grep dhcdhclient-3.0.5-31.el5dhcp-devel-3.0.5-31.el5dhcp-3.0.5-31.el5DHCP server requires these three packages.
2. Modify the DHCP configuration file:
[Root @ station252 ~] # Vim/etc/DHCPD. confddns-Update-style interim; ignore client-updates; subnet 192.168.253.0 netmask 255.255.255.0 {Option time-offset-18000; # Eastern Standard Time range dynamic-BOOTP 192.168.253.2 192.168.253.8; default-lease-time 21600; max-lease-time 43200 ;... omitted #192.168.253.0 is the network segment to be allocated # range dynamic-BOOTP 192.168.253.2 192.168.253.8; IP address pool. by default, the assigned IP address ranges from 192.168.253.2-> 192.168.253.8 to host NS {hardware Ethernet 12: 34: 56: 78: AB: CD; fixed-address 207.175.42.254 ;}
3. Dhcp Service Startup method:
[Root @ station252 ~] #/Etc/init. d/DHCPD start DHCPD: [failed] [root @ station252 ~] # Service DHCPD start DHCPD: [failed] <check the DHCP configuration file carefully when startup fails.>

 

4. Change the default start mode of the DHCP service:
[Root @ station252 ~] # Chkconfig -- list | grep dhcpddhcpd 0: Close 1: Close 2: Close 3: Close 4: Close 5: Close 6: Close [root @ station252 ~] # Chkconfig DHCPD -- level 35 on

 

5. Template
Ddns-Update-style interim; ignore client-updates; subnet 192.168.159.0 netmask 255.255.255.0 {# --- Default Gateway # gateway option routers192.168.0.1; Option subnet-mask255.255.255.0; # domain name option Nis-domain "domain.org "; option domain-name "domain.org"; Option domain-name-servers192.168.1.1; # timeoffset option time-offset-18000; # Eastern Standard Time # option ntp-servers192.168.1.1; # option netbios-name-servers192.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; # dynamic address pool range dynamic-BOOTP 192.168.159.1 192.168.159.254; # default-lease-time 21600; # maximum lease time: 12 hours max-lease-time 43200; # We want the nameserver to appear at a fixed address # fixed IP address host NS {# note next-server marvin.redhat.com; # Max address hardware Ethernet 12: 34: 56: 78: AB: CD; # fixed address fixed-address 207.175.42.254 ;}}

 

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.