RHCE review notes-Linux Enterprise Application-Linux server application information. For more information, see below. Knowledge Point 1: DHCP
1. Obtain the two protocols required for network Configuration from the server: DHCP (Dynamic Host Configuration Protocol) and bootp. If there is a DHCP server in the LAN, DHCP works; if you get information from the DHCP server on another network, you need the bootp protocol.
2. configuration file:/etc/dhcpd. conf
Common Values in configuration files:
Subnet 192.168.0.0 netmask 255.255.255.0;
Option router (list default gateways)
Option domain-name-server (list DNS server IP addresses)
Default-lease-time (Default lease period, in seconds)
Max-lease-time (maximum lease period, in seconds)
3. Set the IP address list
Host dragonfire {
Hardware ethernet 08: 00: 12: 23: 4d: 3f;
Fixed-address 192.168.0.201;
}
4. When the DHCP service is started, it listens to requests on eth0 by default. To listen to requests on eth1, run the service dhcpd start eth1 command.
5. DHCP Client configuration.
Command: dhclient.
First confirm that/etc/sysconfig/network contains the following lines: NETWORKING = YES
Second, confirm that the/etc/sysconfig/network-script/ifcfg-eth0 script contains the following lines:
BOOTPROTO = 'dhcp'
ONBOOT = 'yes'
After the next restart, the system automatically obtains information from the DHCP server.
6. The DHCP Client is called dhcpcd, and the server segment is called dhcpd. The downloaded client information is stored in the/etc/dhcpc directory.
7. The current lease is in the dhcpd. lease file under/var/lib/dhcp.
8. In redhat, DHCP server parameters and options are in the/etc/sysconfig/dhcpd file.
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.