Linux DHCP服務(wù)器當(dāng)中H3C的AC注冊
對于DHCP服務(wù),可以在很多平臺上進行設(shè)置。那么這里我們就主要講解一下在Linux DHCP服務(wù)器上通過option 43實現(xiàn)H3C的AP自動聯(lián)系A(chǔ)C注冊的相關(guān)內(nèi)容。原來的DHCP Server是放在交換機上的,但因為近期準(zhǔn)備改動一下網(wǎng)絡(luò)拓撲,所以要把DHCP Server遷移,操作系統(tǒng)用的是RHEL5.3,DHCP版本3.05
打H3C的800電話,二線工程師說沒有在Linux下的DHCP配過,要我去看文檔,文檔里有交換機做dhcp server和windows做dhcp server的配置實例,還發(fā)了一個Linux下的向cisco AP下發(fā)option 43的例子,要我對照改一下,
以下為cisco配置
option serverip code 43 =ip-address;然后在subnet里面定義option serverip x.x.x.x;但是測試的時候是不成功的.
沒辦法,自己看文檔,發(fā)現(xiàn)H3C的文檔里用的是十六進制的數(shù)據(jù),和二線提供的配置文檔即定義為IP地址是完全不同的。以下為H3C的在交換機內(nèi)置DHCP上的配置。

其中 hex表示是十六進制,80為選項類型,0B為選項長度,表示后面內(nèi)容的長度,0000為Server Type,固定為0000,02為后面AC的IP地址的個數(shù),12010701和12010702則分別為兩個AC的IP地址的十六進制,也就是說在配置時只需把自己的AC地址X.X.X.X換算成十六進制替換掉即可。
再接下來,在Linux DHCP服務(wù)器下查文檔,找到這么一段
- option new-name code new-code = string ;
 - An option whose type is a data string is essentially just a collection
 - of bytes, and can be specified either as quoted text, like the text
 - type, or as a list of hexadecimal contents separated by colons whose
 - values must be between 0 and FF. For example:
 - option sql-identification-token code 195 = string;
 - option sql-identification-token 17:23:19:a6:42:ea:99:7c:22;
 
如是在dhcpd.conf里修改配置
- option serverip code 43 = string;
 - #office,wireless AP
 - subnet 10.20.3.0 netmask 255.255.255.0 {
 - option routers 10.20.3.1;
 - option subnet-mask 255.255.255.0;
 - option serverip 80:0B:00:00:01:0B:45:13:01:0B:45:14;
 - pool {
 - failover peer "dhcp-failover";
 - range 10.20.3.120 10.20.3.254;
 - deny dynamic bootp clients;
 - }
 - }
 
經(jīng)測試,Linux DHCP服務(wù)器中AP可以成功在AC上注冊,遇到問題還是得靠自己細心去看配置和文檔,只要找到方向,問題還是會解決的。















 
 
 
 
 
 
 