Configuration of dhcp service under rh-9 1

Source: Internet
Author: User
Tags domain server
Rh-9 dhcp service configuration 1 -- Linux Enterprise Application-Linux server application information, the following is read details. 1. dhcp installation: Use rpm-ivh to install the three software packages dhcp-*** dhcp-devel-*** dhclient -***
2. dhcp server configuration: The dhcp Service is configured and run according to/etc/dhcpd. conf. It does not exist by default. However, a template file is installed when the dhcp service is installed, at this path/usr/share/doc/dhcp-3.0pl1 (letter l and number 1)/dhcpd. conf. sample
# Cp/usr/share/doc/dhcp-3.0pl1/dhcpd. conf. sample/etc/dhcpd/conf
3. Configuration File Format: dhcpd. conf format
Option/parameter # these options are globally valid
Statement {
Option/parameter # these options are partially valid
}
4. Declarations are used to define the network layout and IP addresses provided to clients.
[Table = 98%] [tr] [td] declare [/td] [td] function [/td] [/tr] [tr] [td] shared-network name {. ..} [/td] [td] define super scope [/td] [/tr] [tr] [td] subnet network No. netmask subnet mask {...} [/td] [td] defines the scope (or ip subnet) [/td] [/tr] [tr] [td] Starting ip address of range end ip Address [/td] [td] defining scope (or ip subnet) range: [/td] [/tr] [tr] [td] host name {...} [/td] [td] defines the reserved Address [/td] [/tr] [tr] [td] group {...} [/td] [td] defines a set of parameters [/td] [/tr] [/table]
5. the parameter is a value that compares or controls dhcp server behavior.
[Table = 98%] [tr] [td] parameter [/td] [td] function [/td] [/tr] [tr] [td] ddns-update-style type [/td] [td] defines the supported dns dynamic update types (comparison) only use the global [/td] [/tr] [tr] [td] allow/ignore client-updates [/td] [td] to allow/ignore the client to update dns records only use the global [/ td] [/tr] [tr] [td] default-lease-time number [/td] [td] specifies the default lease term [/td] [/tr] [tr] [td] max-lease-time number [/td] [td] specifies the maximum lease term [/td] [/tr] [tr] [td] hardware-type MAC address [/td] [td] specifies the NIC interface type and mac Address [/td] [/tr] [tr] [td] server-name host name [/td] [td] Notification dhcp client server host name [/td] [/tr] [tr] [td] fixed-address IP address [/td] [td] assigned to the client a fixed IP address [/td]] [/tr] [/table]
6. The option is used to configure the optional parameters of the dhcp client. They all start with the option keyword.
[Table = 98%] [tr] [td] Option [/td] [td] function [/td] [/tr] [tr] [td] subnet-mask subnet mask [/td] [td] specifies the subnet mask for the client [/td] [/tr] [tr] [td] domain-name "domain name" [/td] [td] as the client specify the dns domain [/td] [/tr] [tr] [td] domain-name-server IP Address
[/Td] [td] specifies the IP address of the dns server for the client [/td] [/tr] [tr] [td] host-name "host name" [/td] [td] specify the host name [/td] [/tr] [tr] [td] routers IP Address [/td] [td] for the client to specify the default gateway [/td] [/tr] [tr] [td] broadcast-address broadcast address [/td] [td] specifies the broadcast address for the client [/td] [/tr] [tr] [td] netbios- name-servers IP Address [/td] [td] specifies the IP address of the wins server for the client [/td] [/tr] [tr] [td] netbios-node-type node type [/td] [td] specify the node type for the client [/td] [/tr] [tr] [td] ntp-server IP Address [/td] [td] specify the network for the client IP address of the time server [/td] [/tr] [tr] [td] nis-servers IP Address [/td] [td] specifies the IP address of the nis domain server on the client [/td]] [/tr] [tr] [td] nis-domain "name" [/td] [td] specifies the name of the nis domain to which the client belongs [/td] [/tr] [tr] [td] time-offset difference [/td] [td] specifies the offset difference between the client and Greenwich Mean time [/td] [/tr] [tr] [td] the preceding options can be used globally or locally [/td] [td] [/td] [/tr] [/table]
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.