Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

DHCP

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Introduction to DHCP and HCL configuration DHCP

Mb5c7600807c90f0 comments 70 people read 2019-04-24 09:48:48

DHCP introduction

Dynamic Host setup Protocol (English: Dynamic Host Configuration Protocol,DHCP) is a network protocol of a local area network. It works with UDP protocol and has two main uses: for intranets or network service providers to automatically assign IP addresses, and for users to use intranet administrators as a means of central management of all computers.

DHCP function

DHCP protocol adopts client / server model, and the task of dynamic allocation of host addresses is driven by network hosts. When the DHCP server receives the address information from the network host, it will send the relevant address configuration and other information to the network host in order to realize the dynamic configuration of the network host address information. DHCP has the following features:

Ensure that any IP address can only be used by one DHCP client at a time.

DHCP should be able to assign users a permanently fixed IP address.

DHCP should be able to coexist with hosts that obtain IP addresses by other methods (such as hosts that manually configure IP addresses).

The DHCP server should provide services to existing BOOTP clients

DHCP allocation mode

1. Automatic allocation (Automatic Allocation), the DHCP server assigns a permanent IP address to the host, which can be permanently used once the DHCP client successfully leases the IP address from the DHCP server for the first time.

two。 Dynamic allocation method (Dynamic Allocation), the DHCP server assigns an IP address with a time limit to the host. When the time expires or the host explicitly indicates to give up the address, the address can be used by other hosts.

3. Manual assignment (Manual Allocation). The IP address of the client is specified by the network administrator, and the DHCP server only tells the client host the specified IP address.

The working process of the DHCP service:

In addition to obtaining the IP address from the DHCP server, the client can also obtain the subnet mask, default gateway address, DNS server address and other information, which is also known as the DHCP lease process. Because when the client receives the provided IP address, the DHCP server will lease the IP address to the client for a specified period of time. The lease process is divided into four steps, which are:

The client requests the IP address-- the server responds-- the client selects the IP address-- and the server determines the lease.

DHCP is configured on HCL

(1) # configure the IP address of the interface.

System-view

[H3C] interface g 0/0

[[H3C-GigabitEthernet0/0]] ip address 192.168.1.254 24

[[H3C-GigabitEthernet0/0]] quit

(2) # enable the DHCP service.

[H3C] dhcp enable

(3) # configure IP addresses that do not participate in automatic assignment.

[H3C] dhcp server forbidden-ip 192.168.1.10

[H3C] dhcp server forbidden-ip 192.168.1.254

(4) # configure DHCP address pool 0 and assign IP addresses by dynamic binding.

[H3C] dhcp server ip-pool 0

[H3C-dhcp-pool-0] network 192.168.1.0 mask 255.255.255.0

[H3C-dhcp-pool-0] expired day 10

[H3C-dhcp-pool-0] dns-list 192.168.1.10

[H3C-dhcp-pool-0] gateway-list 192.168.1.254

[H3C-dhcp-pool-0] quit

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report