Specific process of configuring DHCP

Source: Internet
Author: User

DHCP can also be set for routing and switching. So how to set it? 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 without using a dedicated host as the DHCP server, to save costs.

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

1. Specify the range of IP addresses that are not automatically allocated

 
 
  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.

2. Set the DHCP address pool

 
 
  1. Ip dhcp pool global // This command specifies the name of the DHCP address pool
  2. Network 10.1.0.0 255.255.0.0 // dynamically assigned IP address range, except for the non-automatically assigned IP addresses specified before all IP addresses in the 10.1.0.0 segment)

3. Set DHCP Additional information

 
 
  1. Domain-name client.com//configure the domain suffix for the customer's machine
  2. Dns-server 10.1.1.1 10.1.1.2 // configure the DNS server address for the client, which is 10.1.1.1 and 10.1.1.2
  3. Netbios-name-server 10.1.1.5 10.1.1.6 // configure the WINS server address for the client, which is 10.1.1.5 and 10.1.1.6
  4. Netbios-node-type h-node // configure the node mode for the client to affect the name interpretation. For example, h-node is explained by the wins server first)
  5. Default-router 10.1.0.100 10.1.0.101 // configure the default gateway for the client

4. Set the lease term

 
 
  1. Lease 8 // set the lease time to 8 days

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

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

6. Related DHCP Debugging commands

 
 
  1. No service dhcp // stop the DHCP service
  2. Show ip dhcp binding // display Address Allocation
  3. Show ip dhcp conflict // displays ip 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.