Step 6 describes how to set the DHCP service

Source: Internet
Author: User

We will introduce the content of the DHCP service in six aspects. We have made a clear explanation of each step and hope everyone can master it. So, sometimes, some medium and high-end network equipment routers and switches have already integrated the DHCP service, so we can implement the DHCP service on the network equipment, no dedicated hosts are used as DHCP servers to save costs.

The following is an instance for configuring DHCP on a cisco router.

Set DHCP Service 1. Specify the range of IP addresses not automatically assigned

 
 
  1. Ip dhcp excluded-address 10.1.1.1 10.1.1.19 // the ip address from 10.1.1.1 to 10.1.1.19 is manually assigned.

Set DHCP Service 2. Set DHCP protocol address pool

 
 
  1. Ip dhcp pool global
  2.  
  3. // This command specifies the DHCP address pool name
  4.  
  5. Network 10.1.0.0 255.255.0.0
  6.  
  7. // Dynamically assigned IP address range, except for the non-automatically assigned IP addresses specified before all IP addresses in the 10.1.0.0 network segment)

Set DHCP Service 3. Set DHCP protocol additional information

 
 
  1. Domain-name client.com
  2.  
  3. // Configure the domain suffix for the client
  4.  
  5. Dns-server 10.1.1.1 10.1.1.2
  6.  
  7. // Configure the IP address of the DNS server for the client, which is 10.1.1.1 and 10.1.1.2.
  8.  
  9. Netbios-name-server 10.1.1.5 10.1.1.6
  10.  
  11. // Configure the WINS server address for the client, which is 10.1.1.5 and 10.1.1.6
  12.  
  13. Netbios-node-type h-node
  14.  
  15. // Configuring the node mode for the client affects the smoothness of name interpretation. For example, h-node is explained by the wins server first)
  16.  
  17. Default-router 10.1.0.100 10.1.0.101
  18.  
  19. // Configure the default gateway for the client

Set DHCP Service 4. Set the lease term

 
 
  1. Lease 8
  2.  
  3. // Set the lease time to 8 days

Set DHCP Service 5. Sometimes we need to set the sub-address pool of the DHCP protocol server. For example, we want the gateway of the client in the 10.1.1.0/24 network segment to 10.1.1.100. We set it as follows:

 
 
  1. Ip dhcp pool subglobal
  2.  
  3. Network 10.1.1.0 255.255.255.0
  4.  
  5. // The Sub-address pool of global, which inherits domain name and other options from global
  6.  
  7. Default-router 10.1.1.100 10.1.1.101
  8.  
  9. // Configure the default gateway for the client

Set DHCP Service 6. Related DHCP Debugging commands

 
 
  1. No service dhcp
  2.  
  3. // Stop the DHCP protocol service
  4.  
  5. Show ip dhcp binding
  6.  
  7. // Display Address allocation information
  8.  
  9. Show ip dhcp conflict
  10.  
  11. // Displays address conflicts.

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.