RedHat6.2 server configuration solution (III): DHCP
Source: Internet
Author: User
Article Title: RedHat6.2 server configuration solution (III): DHCP. 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.
Author: Tang haijing
Chapter III DHCP
3.1 Introduction
For those who do not know much about network technology, configuring TCP/IP may be a very complicated task. For those who connect a PC to a LAN, they can only concentrate their configurations on the server, this simplifies the complexity of the client. Of course, this will increase the workload of the Administrator to a certain extent, but it is optimal from the overall consideration.
In this chapter, I will introduce how to configure Dynamic IP Address Allocation and Management, and explain how it works in easy-to-understand languages. I hope you can quickly become a qualified network administrator by reading this chapter.
3.2 Required System Resources
3.2.1 configuration file:
Role: contains many configuration commands, both for the server and for the client. It can use the dynamic IP Address Allocation technology to manage the entire subnet, or it can manage a client based on the static IP Address Allocation technology.
Instance:
Option domain-name "mycompany.com ";
# Define the Domain Name of the DHCP server
Option domain-name-servers 192.168.10.1;
# Define the DNS server address
Option subnet-mask limit 255.0;
# Define the Subnet mask. If this option is not defined, use the Subnet mask in the Subnet command.
Default-lease-time 1200;
# If the client cannot request a specified lease period, use this parameter to define the lease duration of the address.
Max-lease-time 87600;
# It is used to specify the maximum lease time, although the lease time is determined by the client's request.
Subnet 192.168.10.0 netmask 255.255.255.0
# Specify the subnet CIDR Block and subnet mask
{
Range 192.168.10.2 192.168.10.110
# Specifying the IP address range of a subnet
Option broadcast-address 192.168.10.255;
# Specify the subnet broadcast address
Option routers 192.168.10.1;
# IP address of the specified vro
}
Host fantasia {
Hardware ethernet 00: 50: BA: CA: 2E: D2;
Fixed-address 192.168.1012;
}
# Assign a permanent IP address to the client
3.4 test and management methods
1. After the Administrator modifies the configuration file, run/etc/rc. d/init. d/dhcpd restart to make the change take effect.
2. on Windows 98 client, you need to configure TCP/IP to automatically search for IP addresses.
3. On the Windows 98 client, you can run winipcfg to dynamically apply for an IP address.
4. The administrator can view the/var/state/dhcp/dhcpd. leases file to supervise the allocation of IP resources.
3.5 summary of this Chapter
After studying this chapter, you must feel that the DHCP configuration is very simple. To a certain extent, this is because I want to introduce a master server with a subnet, which is the simplest network topology. If it is more complex with multiple subnets, it is more troublesome to configure it. Therefore, you need to configure a relay proxy (dhcrelay) for each subnet. Its documentation can be found in Linux.
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