日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

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

發(fā)布時(shí)間:2023/11/29 linux 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Linux DHCP Server 配置给FIT AP 使用的option 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Linux DHCP Server 配置給FIT AP 使用的option
2010-09-17 09:45:52 標(biāo)簽:Linux DHCP Server option FIT    [推送到技術(shù)圈]

版權(quán)聲明:原創(chuàng)作品,允許轉(zhuǎn)載,轉(zhuǎn)載時(shí)請(qǐng)務(wù)必以超鏈接形式標(biāo)明文章 原始出處 、作者信息和本聲明。否則將追究法律責(zé)任。http://rs1987.blog.51cto.com/258703/392990
1???????????????????? 配置option 43 方案介紹 通過(guò)在Linux 上配置DHCP Server為AP提供IP及option 43選項(xiàng)。 1.2??????????? 配置思路 1)??????? 下載、安裝DHCP Server 相關(guān)程序。 2)??????? 調(diào)試基本的dhcp啟動(dòng)服務(wù)、并驗(yàn)證能否獲取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 80:0B:00:00:01:02:02:02:FE:0B:45:14; # --- pool range dynamic-bootp 2.2.2.1 2.2.2.19; default-lease-time 21600; max-lease-time 43200; } 以十六進(jìn)制格式表示IP,80為選項(xiàng)類型,0B為選項(xiàng)長(zhǎng)度,表示后面內(nèi)容的長(zhǎng)度,0000為Server Type,固定為0000,01為后面AC的IP地址的個(gè)數(shù),“02:02:02:FE為AC的IP地址的十六進(jìn)制,也就是說(shuō)在配置時(shí)只需把自己的AC地址X.X.X.X換算成十六進(jìn)制替換掉即可。“:0B:45:14”為固定格式說(shuō)明前面定義的是一串ip地址。 1.4??????????? 檢驗(yàn)配置效果 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 方案介紹 通過(guò)在Linux 上配置DHCP Server為AP提供IP及option 138選項(xiàng)。 2.2??????????? 配置思路 4)??????? 下載、安裝DHCP Server 相關(guān)程序。 5)??????? 調(diào)試基本的dhcp啟動(dòng)服務(wù)、并驗(yàn)證能否獲取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; } 以十六進(jìn)制格式表示IP,“01:01:01:01為AC Loopback 0 IP地址的十六進(jìn)制,也就是說(shuō)在配置時(shí)只需把自己的AC Loopback 0 IP地址X.X.X.X換算成十六進(jìn)制替換掉即可。 2.4??????????? 檢驗(yàn)配置效果 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# 本文出自 “蔚藍(lán)的心情” 博客,請(qǐng)務(wù)必保留此出處http://rs1987.blog.51cto.com/258703/392990

轉(zhuǎn)載于:https://blog.51cto.com/2189440bop58/395348

總結(jié)

以上是生活随笔為你收集整理的Linux DHCP Server 配置给FIT AP 使用的option的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。