A DHCP Server Installation Package
1 yum -y install dhcp2. Corresponding Port
IPv4 udp67 and udp68
IPv6 udp546 and udp5473. File Path
Service name: DHCPD
Main configuration file:/etc/DHCP/DHCPD. conf
Template File:/usr/share/doc/DHCP */DHCPD. conf. Example
Iv. configuration file 4.1 common configuration items
1 option domain-name # Set the DNS domain 2 3 opt
specified by the user, that is, the time after the start address acquisition and update; Flags: from 0 to 15 bits, when 1bit is 1 at the left, the server sends packets to the client in broadcast mode, and the rest are not used yet; Ciaddr: user IP address; Yiaddr: Customer IP address; Siaddr: IP Address used in bootstrap process; giaddr: IP address of the forwarding proxy (GATEWAY); Chaddr: hardware address of the client; Sname: name of the optional server, ending with 0x00; File: Startup File
for the customer
4. The IP address lease term for VLAN 2 is one day, and the other is three days.
5. assign a specified IP address to a specific user based on the MAC address
Finally, the DHCP server of the vswitch is configured as follows:
Ip dhcp excluded-address 10.1.1.1 10.1.1.19 // address not used for Dynamic address Allocation
Ip
understand Netbios very well# option Netbios-node-type 2;Range DYNAMIC-BOOTP 192.168.12.128 192.168.12.254; Set up an address poolDefault-lease-time 21600; Set the default lease period in secondsMax-lease-time 43200; Set the maximum client lease period in seconds# We want the nameserver to appear at a fixed addressHos
is not modified, an error will still be reported when dhcpd is started.
You can refer to another user's dhcpd. conf file for modification.
Because I am working on a vro, there are many NICs, and the parameters are complicated, so I will not post them.
Next, paste it to someone else. This is easier to understand:
Ddns-update-style interim; # configure to use the transitional DHCP-DNS interactive update mode. Ignore client-updates; # ignore client upd
For those who work on networking, the dhcp snooping guy is certainly familiar to everyone. Here we will explain and explain this knowledge point. Here we will mainly explain the network topology.
I. Network Topology
Ii. Description
1. Topology Description: The aggregation layer switch is ipvst4506, the core switch is ipvst6506, And the access layer switch is ipvst2918. 4506 enable ip dhcp snooping, DAI, an
provided by the DHCP server. The DHCP server sends back a response packet containing the IP address and its allocation scheme. There is a time limit for the IP address provided by the DHCP server to the client. to continue using the IP address, the DHCP Client must update and renew the IP address when the
In most cases Linux acts as a DHCP server and Windows 95/98 is a DHCP client. Linux can also be a DHCP customer, that is, you want to install the DHCPCD RPM software package, Linux as a DHCP server, just install DHCPD rpm package.
A Prerequisites for a DHCP server to work:
Using a fixed IP address of the DHCP service involves many IP addresses. We need to know That DHCP management is also for IP addresses. Here we will focus on the problems related to the use of the DHCP service fixed IP address.
DHCP service fixed IP Address: how to assign a fixed IP Address
In the Windows 2000 Server n
refers to the time after the address is obtained and updated;
Flags: from 0 to 15 bits, when the leftmost 1bit is 1, the server sends packets to the client in broadcast mode, and the rest are not used yet;
Ciaddr: user IP address;
Yiaddr: the customer's IP address;
Siaddr: IP Address used in the bootstrap process;
Giaddr: IP address of the forwarding proxy (GATEWAY;
Chaddr: The hardware address of the client;
Sname: name of an optional server, ending with 0x00;
File: the Startup File Name;
Opti
packets
2. server: provides lease options related to the client network.
3. Client: decides the network parameter lease provided by the selected DHCP server and reports it to the server.
Server
4. server: record the lease and return the packet information related to the client.
2.
situation, and click the Next button
4th step in the Add Exclusion wizard page that opens, you can specify an excluded IP address or range of IP addresses. Several IP addresses have been used by translating as static IP addresses for other servers, so they need to be excluded. Type the excluded IP address in the Start IP Address edit box and click the Add button. Repeat the action, then click the Next button
5th step in the Lease Duration wizard pa
/dhcpd/dhcpd.leasesThree. Example of a configuration[Email protected] ~]# cat/etc/dhcp/dhcpd.conf## DHCP Server Configuration file.# See/usr/share/doc/dhcp*/dhcpd.conf.example# See dhcpd.conf (5) Mans page## The Ddns-updates-style parameter controls whether or not the server would# attempt to does a DNS update when a lease
packet sent from the DHCP server back to the customer, you must bypass the TCP/IP stack and use the pseudo-device bpfilter.
pseudo-devicebpfilter4
After the kernel is customized, make sure that the device file corresponding to bpfilter is in the/dev/directory.
#cd/dev
#shMAKEDEVbpf0bpf1bpf2bpf3
Install DHCP software from Packages Collecion, which installs dhcpd, dhclient, and dhcprelay i
I. Introduction to the DHCP service
DHCP is based on the customer/Server mode. When the DHCP Client is started, it automatically communicates with the DHCP server. The DHCP server provides the DHCP client with a service that auto
vi to modify/etc/dhcpd. conf
# Cat/etc/dhcpd. conf // display the configuration file content
# The end of each line is;
Ddns-update-style interim;
Ignore client-updates;
Subnet 192.168.117.0 netmask 255.255.255.0 {// set the subnet Declaration
Option routers 192.168.117.2; // set the default gateway for the DHCP user
Option broadcast-address 192.168.117.255; // set the broadcast address for the customer
Option subnet-mask authorization limit 255.0; /
, and the Next button (Figure 3) is clicked.
Step 4th You can specify an excluded IP address or range of IP addresses in the Open Add Exclude Wizard page. Several IP addresses have been used by Yu Chen as static IP addresses for other servers, so they need to be excluded. Type the excluded IP address in the Start IP Address edit box and click the Add button. Repeat, and then click the Next button (Figure 4).
Step 5th in the Lease
Range 192.168.4.10 192.168.4.50; // declare the address pool (IP Address allocation range)
Range 192.168.4.100 192.168.4.120;
Default-lease-time 21600; // default lease period (can be omitted)
Max-lease-time 43200; // maximum lease period (can be omitted)
Host NS {// identify the name
Next-server marvin.redhat.com;
Ha
DHCP is the full name of the Dynamic Host Configuration Protocol, its purpose is to reduce the TCP/IP network planning, management and maintenance of the burden of addressing the lack of IP address space. DHCP is divided into two parts: one is the server side, and the other is the client. All IP network settings are centrally managed by the DHCP server and are re
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.