H3C DHCP Configuration

Source: Internet
Author: User
Tags define dns

The address pool in the DHCP server is organized in a "Tree" structure. The root is the address of the natural CIDR block. Each branch is the subnet address of the CIDR block, and the leaf node is the client address manually bound. This tree structure achieves configuration inheritance, that is, the subnet (son node) configuration inherits the configuration of the natural network segment (parent node), each client (Sun Tzu node) the configuration also inherits the parameters configured by the subnet (son node. Therefore, for some common parameters (such as domain names), you only need to configure the natural network segment or subnet (the address lease validity period does not have an inheritance relationship)
The display DHCP server tree command is used to display the tree structure information of the DHCP address pool, and displays the address pool, option parameter, address lease period, DNS, and other server information of each node.

 

DHCP server forbidden-IP low-IPaddress [High-IPaddress]
Low-IPaddress indicates the minimum IP address not automatically allocated.
High-IPaddress indicates the maximum IP address not automatically allocated. It must be in the same network segment as low-IPaddress and must be greater than or equal to low-IPaddress. If this parameter is not entered, indicates that high-IPaddress is the same as low-IPaddress.
Some IP addresses may be occupied by some servers or specific hosts, such as WWW server, gateway, and FTP server. During DHCP address allocation, these addresses must be excluded to ensure the normal operation of the network. Otherwise, the same address will be allocated to the two hosts, resulting in IP Address allocation conflicts.

 

DHCP Server Ping {packets number | timeout milliseconds}
Packets number indicates the number of Ping packets sent. The value range is 0 ~ 10. 0 indicates that ping is prohibited. The default number is 2.
Timeout milliseconds indicates the maximum response time waiting for each Ping message. The unit is ms and the value range is 0 ~ 10000, milliseconds is 500 ms by default
Before the DHCP server assigns an IP address to the client, it must detect the IP address. The specific operation is to use the ping command to detect whether the address can be correctly responded within the specified time. If no response is received until the maximum waiting time for the ping response packet, the ping packet continues to be sent until the maximum number of sent ping packets reaches the specified maximum, and no response is received, it can be inferred that the IP address is not used, so that the client is assigned an unused IP address.

 

In the DHCP address pool view: static-bind IP-address IP-Address [mask netmask]
Static-bind Mac-address MAC-address
When configuring binding, you can consider this binding as a special DHCP address pool. The static-bind Mac-address command must be used in pairs with the static-bind IP-address command.
Eg.
Bind the user PC with the MAC address 00-00-e0-3f-03-05 to the IP address 10.1.1.1 with the mask 255.255.255.0:
[H3C-DHCP_POOL] Static-bind IP-address 10.1.1.1 mask limit 255.0
[H3C-DHCP_POOL] Static-bind Mac-address 0000. e03f. 0305 Ethernet
 
Global Address Pool Mode
[Switch] DHCP enable enables DHCP globally.
[Switch] DHCP select global interface VLAN-interface 2 specifies that vlan2 virtual interfaces work in global address pool mode.
[Switch] DHCP server IP-pool H3C-POOL create DHCP address pool
[Switch-dhcp-pool-h3c] network 192.168.2.0 mask 255.255.255.0 configure the IP address range for Dynamic Allocation
[Switch-dhcp-pool-h3c] expired Day 1 defines IP address lease Validity Period
[Switch-dhcp-pool-h3c] gateway-list 192.168.2.1 define gateway address
[Switch-dhcp-pool-h3c] DNS-list 8.8.8.8 define DNS address
[Switch-dhcp-pool-h3c] domain-name mydomain.com.cn defined Domain Name
[Switch-dhcp-pool-h3c] Quit
[Switch] DHCP server forbidden-IP 192.168.2.1 configure an address as an unallocable address
[Switch] DHCP server forbidden-IP 192.168.2.254

 

Interface address Pool Mode
[Switch] DHCP enable
[Switch-Vlan-interface3] DHCP Select Interface Configuration VLAN Interface 3 works in DHCP interface address Pool Mode
[Switch-Vlan-interface1] DHCP server expired day 10 defines the validity period of the interface address pool
[Switch-Vlan-interface1] DHCP server DNS-list 192.168.3.10 define DNS server address
[Switch-Vlan-interface1] DHCP server NBNS-list 192.168.3.11 defines the WINS server address
[Switch-Vlan-interface1] DHCP server static-bind IP-address 192.168.0.10 Mac-address 000d-88f7-0001 configure static binding address in the interface address pool

 

Display DHCP server statistics
Displays statistics of DHCP servers.
Includes the number of DHCP address pools, number of automatically bound addresses, numbers of unidentifiable packets, number of packets for DHCP requests and responses, etc.
Reset DHCP server statistics clear DHCP server statistics

 

Display DHCP server conflict [IP-address] displays statistics of DHCP address conflicts, including conflicting IP addresses, conflict detection types, and conflict occurrence time.
The system uses two conflict detection methods:
Ping method: DHCP server uses this method to detect conflict information
ARP: The DHCP client uses this method to detect conflict information.
Reset DHCP server conflict {IP-address | all} Clear DHCP address conflict statistics

 

Display DHCP server expired: displays available IP addresses of the DHCP address pool.

 

Display DHCP server IP-in-use [IP-address] displays Address binding information of the DHCP Client, such as hardware address, IP address, address lease period, and so on.

 

Debugging DHCP server {events | packet | IP-relation}
Events indicates protocol events of the DHCP server, including Address Allocation and data update.
Packet indicates various Protocol packets received and sent by the DHCP server.
IP-relation indicates a change in connection status, that is, address allocation.
The debugging DHCP server command is used to enable the packet, event, and connection debugging switch of the DHCP server.


 

 

Welcome to group 166684620 for communication

 

 

H3C DHCP Configuration

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.