Dhcp service configuration under rh-9 3

Source: Internet
Author: User
Rh-9 dhcp service configuration 3 -- Linux Enterprise Application-Linux server application information, the following is read details. 1. Set ip Scope
Subnet 192.168.16.0 netmask 255.255.255.0 {
Range 192.168.16.11 192.168.16.100; # specify the IP address range assigned to the client
Ip parameter; # define the ip Parameters of the client, such as the subnet mask and default gateway.
}
# Here we declare a scope of 192.168.16.0/24, and specify the IP address range from 192.168.16.11 to 192.168.16.100. You can also use multiple ranges to specify multiple network segments, but they cannot be repeated.
Note: In the/etc/dhcpd. conf file, # indicates the comment. Except for the braces "{" and "}", all other rows must end.
2. Set the basic format of the client options: option Code setting content;
Option routers 192.168.16.1; # Set the IP address of the default gateway to 192.168.16.1.
Option subnet-mask 255.255.255.255.0; # sets the subnet mask 255.255.255.0.
Option nis-domain "jackie.org"; # Set the domain Name of the nis Server
Option domain-name "jackie.org"; # sets the dns domain name of the dhcp client.
Option domain-name-servers 192.168.16.2, 202.1.2.23; # Set the IP address of the dns server
Option broadcast-address 192.168.16.255; # Set the broadcast address of the dhcp client in the ip subnet.
Default-lease-time 21600; # sets the default lease length.
Max-lease-time 43200; # sets the maximum lease Term
Host pc1 {
Hardware ethernet 12: 34: 56: 78: AB: CD; # retain a specific IP Address
Fixed-address 192.168.16.20;
}
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.