歡迎您光臨本站 註冊首頁

Linux DHCP Server 配置給FIT AP 使用的option

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0

1 配置option 43 方案介紹 通過在Linux 上配置DHCP Server為AP提供IP及option 43選項. 1.2 配置思路 1) 下載、安裝DHCP Server 相關程序. 2) 調試基本的dhcp啟動服務、並驗證能否獲取ip. 3) 配置option 43. 1.3 配置文件 CentOS Vi dhcpd.conf ignore client-updates; ddns-update-style ad-hoc; option acip code 43 = string; subnet 2.2.2.0 netmask 255.255.255.0 { # --- default gateway option routers 2.2.2.254; option subnet-mask 255.255.255.0; # --- AC IP option acip 49:50:3A:32:2E:32:2E:32:2E:32:35:34; # --- pool

range dynamic-bootp 2.2.2.1 2.2.2.19;
default-lease-time 21600; max-lease-time 43200; } 以十六進位格式表示IP,IP:2.2.2.254轉換成16進位數為
” 0x49503A322E322E322E323534”寫入配置文件後為” 49:50:3A:32:2E:32:2E:32:2E:32:35:34;”.
1.4 檢驗配置效果 AC1# show ap status Flags: o = operational[1], c = configure[0], d = download[0], b = boot[0] a = auto AP, m = mesh AP, p/P = mesh portal (ena/actv), r = redundant[0] i = insecure, e = encrypted, u = unencrypted Radio: E = enabled - 20MHz channel, S = sentry W/w = enabled - 40MHz wide channel (HTplus/HTminus) D = admin disabled IP Address: * = AP behind NAT AP Flag IP Address Model MAC Address Radio 1 Radio 2 Uptime ---- ---- --------------- ------------ ----------------- ------- ------- ------ 2 o--i 2.2.2.1 AP1 00:0b:0e:90:01:00 E 11/18 E161/20 04h08m AC1#

2 配置option 138
方案介紹 通過在Linux 上配置DHCP Server為AP提供IP及option 138選項. 2.2 配置思路 4) 下載、安裝DHCP Server 相關程序. 5) 調試基本的dhcp啟動服務、並驗證能否獲取ip. 6) 配置option 138. 2.3 配置文件 CentOS Vi dhcpd.conf CentOS Vi dhcpd.conf ignore client-updates; ddns-update-style ad-hoc; option acip code 138 = string; subnet 2.2.2.0 netmask 255.255.255.0 { # --- default gateway option routers 2.2.2.254; option subnet-mask 255.255.255.0; # --- AC ip option acip 01:01:01:01; # --- pool range dynamic-bootp 2.2.2.20 2.2.2.39;

default-lease-time 21600; max-lease-time 43200; } 以十六進位格式表示IP,“01:01:01:01為AC Loopback 0 IP地址的十六進位,也就是說在配置時只需把自己的AC Loopback 0 IP地址X.X.X.X換算成十六進位替換掉即可. 2.4 檢驗配置效果 AC2#show capwap state index peer device state 1 2.2.2.20 : 32768 Run AC2#show capwap detail -----------CAPWAP CONTROL BLOCK---------- index is 0 Current State [ Idle ] Recent recieved request's sequence number [43] Recent recieved response's sequence number [0] Recent send request's sequence number [0] Retransmit Count [ 0 ] Sending msg queue length [ 0 ] Receive msg queue length [ 0 ] On line timers: My address [ 1.1.1.1 ] My address6 [ :: ]

Peer address [ 2.2.2.20 ] Peer address6 [ :: ] Peer control port [ 5246 ] Peer data port [ 5247 ] Session ID [0] [ 0 ] Session ID [1] [ 0 ] Session ID [2] [ 0 ] Session ID [3] [ 0 ] Control socket [ 2057 ] Data socket [ 2058 ] Path MTU [ 1500 ] Am I AP [ 0 ] Over IPv4 [ 1 ] Local or Split [ 1 ] Local Switch [ 0 ] -----------CAPWAP CONTROL BLOCK---------- index is 1 Current State [ Run ] Recent recieved request's sequence number [141] Recent recieved response's sequence number [25] Recent send request's sequence number [25] Retransmit Count [ 0 ] Sending msg queue length [ 0 ] Receive msg queue length [ 0 ] On line timers: [echo interval ] My address [ 1.1.1.1 ]

My address6 [ :: ] Peer address [ 2.2.2.20 ] Peer address6 [ :: ] Peer control port [ 32768 ] Peer data port [ 32769 ] Session ID [0] [ 0 ] Session ID [1] [ 0 ] Session ID [2] [ 0 ] Session ID [3] [ 0 ] Control socket [ 2057 ] Data socket [ 2058 ] Path MTU [ 1500 ] Am I AP [ 0 ] Over IPv4 [ 1 ] Local or Split [ 1 ] Local Switch [ 0 ] AC2#

本文出自 「rs1987」 博客,請務必保留此出處http://rs1987.blog.51cto.com/258703/392990


[火星人 ] Linux DHCP Server 配置給FIT AP 使用的option已經有384次圍觀

http://coctec.com/docs/linux/show-post-49427.html