Instance resolution DHCP server configuration application

Source: Internet
Author: User
Article Title: instance resolution DHCP server configuration application on the mona1 network. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Test Environment

Linux9.0

Linux Client

Windows Client

---------

Test content

1. Install the dhcp service package

2. Install the dhcp Client package

3. Configure the dhcp server

4. Edit the/etc/dhcp. conf configuration file.

5. Set the dhcp Client

6. Test

----------

Test procedure

1. Install and set the dchp Server

       
        
Preparation: the dhcp server must have static IP Address Configuration Information // check whether the dhcp software package is installed # rpm-qa | grep dhcp // if not, install it on the second system disc. # mount/dev/cdrom/mnt/cdrom # cd/mnt/cdrom/RedHat/RPMS # ls | grep dhcp # rpm-ivh dhcp. **. rpm // install the server package // dhcp itself comes with a configuration file template, which can be used to create a configuration file; # rpm-ql dhcp // check the hdcpd in the package. conf. sample template file storage location; # cp/usr/share/doc/dhcp-3.0pl1/dhcpd. conf. sample/etc/dhcpd. conf # vi/etc/dhcp. conf // modify the configuration file as needed; ddns-update-style interim; ignore client-updates; subnet 192.168.10.0 netmask 255.255.255.0 {# --- default gateway option routers 192.168.60.254; // set the gateway for the dhcp client; option subnet-mask 255.255.0; // set the subnet mask for the dhcp client; # option nis-domain "xxx.com "; // sets the nis domain for the dhcp client; # option domain-name "xyz.org"; // sets the dns domain for the dhcp client; option domain-name-servers 202.99.166.4; // set the dns server address for the dhcp client; option time-offset-18000; # Eastern Standard Time // set the offset from Greenwich Mean time; # option ntp-servers 192.168.10.254; // set the ntp server address for the dhcp client; # option netbios-name-servers 192.168.10.254; // set the wins server address for the dhcp client; # option netbios-node-type 2; // set the wins node type for the dhcp client; range dynamic-bootp 192.168.60.128 192.168.60.255; // set the address pool; default-lease-time 21600; // default address lease; max-lease-time 43200; // sets the longest address lease; // sets host life; host pc1 {option host-name pc1.xxx.com; // specifies the host name for the dhcp client; hardware ethernet 12: 34: 56: 78: AB: CD; // specify the client interface type and mac address; fixed-address 192.168.10.1; // set the address allocated to it;} // start the dhcp server; # service dhcpd start # service dhcpd status
       

2. linux client settings

       
        
// Install the dhcp Client toolkit; the second disc; # rpm-ivh dhclient. **. rpm // set the network card to automatically get the address; # ntsysv # service network restart // The system prompts that the cable is not properly connected; # dhclient // ask the client to get the address; # ifconfig // view the obtained address information; 3. windows client settings; windows client settings are simple and not described;
       

In this experiment, the network is relatively simple and there are no difficulties. In a multi-subnet environment, dhcp relay should be set and super scope should be configured;

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.