H3C AC registration in Linux DHCP server

Source: Internet
Author: User

DHCP services can be configured on many platforms. So here we will mainly explain how to use option 43 on the Linux DHCP server to implement the H3C AP to automatically contact the AC for registration. The original DHCP Server was deployed on the switch, but the DHCP Server should be migrated because it is ready to change the network topology recently. The operating system uses RHEL5.3 and DHCP version 3.05.

Call H3C 800. The second-line engineer said that the DHCP configuration in Linux has not been used. I want to see the document, which contains the configuration instances for dhcp server and windows dhcp server, I also sent an example of how to issue option 43 to cisco AP in Linux. I want to compare and modify it,

Cisco Configuration

Option serverip code 43 = ip-address; then define option serverip x. x in subnet; but the test fails.

No way. Read the document and find that the H3C document uses hexadecimal data. It is completely different from the configuration document provided by the second-line technical support that is defined as an IP address. The following is the H3C configuration on the built-in DHCP of the switch.

Hex indicates the hexadecimal format, 80 indicates the option Type, and 0B indicates the option length. It indicates the length of the subsequent content, 0000 indicates the Server Type, fixed as the limit, and 02 indicates the number of IP addresses of the following AC, 12010701 and 12010702 are the hexadecimal IP addresses of the Two AC respectively, that is, you only need to set your own AC address X. x. x. convert X to hexadecimal format and replace it.

Next, check the document on the Linux DHCP server and find

 
 
  1. option new-name code new-code = string ;  
  2.  
  3.        An option whose type is a data string is essentially just a collection  
  4.        of bytes, and can be specified either as quoted text, like the text  
  5.        type, or as a list of hexadecimal contents separated by colons whose  
  6.        values must be between 0 and FF.   For example:  
  7.  
  8.        option sql-identification-token code 195 = string;  
  9.        option sql-identification-token 17:23:19:a6:42:ea:99:7c:22;  

Modify the configuration in dhcpd. conf.

 
 
  1. option serverip code 43 = string;  
  2.  
  3. #office,wireless AP  
  4. subnet 10.20.3.0 netmask 255.255.255.0 {  
  5.         option routers                  10.20.3.1;  
  6.         option subnet-mask              255.255.255.0;  
  7.                         option serverip 80:0B:00:00:01:0B:45:13:01:0B:45:14;  
  8.                 pool {  
  9.         failover peer "dhcp-failover";  
  10.         range 10.20.3.120 10.20.3.254;  
  11.         deny dynamic bootp clients;  
  12.         }  
  13. }  

After testing, the AP in the Linux DHCP server can be successfully registered on the AC. In case of problems, you have to carefully check the configuration and documentation. The problem will still be solved as long as you find the direction.

Related Article

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.