Thoughts and operations on configuring DHCP servers (1)

Source: Internet
Author: User

A DHCP server is one of the most frequently accessed servers by administrators. You do not know how to configure the DHCP server. Let's take a closer look at the experience shared by a netizen.

Proposal of DHCP server configuration problems

You want to configure parameters on the dhcp server, which is used for Dynamic Allocation to the dhcp client.

Configure DHCP server solution

You can use the following command to configure various dhcp parameters.

Router1 # configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router1 (config) # ip dhcp pool ORAserver (\ ORAserver address pool name)
Router1 (dhcp-config) # host 172.25.1.34 255.255.255.0
Router1 (dhcp-config) # client-name bigserver
Router1 (dhcp-config) # default-router 172.25.1.1 172.25.1.3
Router1 (dhcp-config) # domain-name oreilly.com
Router1 (dhcp-config) # dns-server 172.25.1.1 10.1.2.3
Router1 (dhcp-config) # netbios-name-server 172.25.1.1
Router1 (dhcp-config) # netbios-node-type h-node
Router1 (dhcp-config) # option 66 ip address 10.1.1.1
Router1 (dhcp-config) # option 33 ip address 24.10.1.1 172.25.1.3
Router1 (dhcp-config) # option 31 hex 01
Router1 (dhcp-config) # lease 2
Router1 (dhcp-config) # end
Router1 #

About configuring DHCP server

1 dhcp can dynamically allocate information such as the default route, domain name, Domain Name Server address, and wins server address other than the ip address to the client. RFC2132 defines a large number of standard configuration options, where you can read more detailed information. However, most DHCP configurations only use a small part of the commonly used options.

2. to simplify the configuration and make it easier to understand, cisco provides some user-friendly aliases to replace the configuration options specified in RFC2132.

However, you can either use the user-friendly alias provided by cisco or use the option number command to configure it. Both methods are acceptable for cisco ios. For example, if option 6 in RFC 2132 represents the address of the Domain Name Server, the following two command line results are the same;

Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#ip dhcp pool 172.25.2.0/24
Router1(dhcp-config)#dns-server 172.25.1.1
Router1(dhcp-config)#end
Router1#

Configure DHCP server method 1

Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#ip dhcp pool 172.25.2.0/24
Router1(dhcp-config)#option 6 ip 172.25.1.1
Router1(dhcp-config)#end
Router1#

DHCP server configuration method 2

It is worth noting that when you configure the vro, you input the configuration 2 command, but the show runining configuration command is his user-friendly alias, which may cause you some doubts, but in fact, the results are the same. Please rest assured.


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.