目录
Ⅱ 在Linux的服务器上搭建DHCP Server配置option配置案例
Ⅲ 在Windows 2003的服务器上搭建DHCP Server 配置option 配置案例
Ⅳ 在Windows 2008的服务器上搭建DHCP Server 配置option 配置案例
Ⅰ 无线产品常用show 命令
1、查看CPU利用率
通过show cpu进行查看,以5分钟的CPU利用率为准。不同型号AC空载的时候CPU利用率会有所不同,只要CPU利用在80%以内均不会影响设备正常工作。
2、查看内存利用率
在AC上show memory 查看AC内存利用率,不同型号AC空载的时候内存利用率有所不同,只要内存利用率在80%以内均不会影响设备正常工作。
3、查看设备配置
在AC上show running-config查看AC配置
在AC上show ap-config running查看AP配置
4、查看设备在线时间
在AC上show version 查看设备在线时间是否和实际一致,如果不一致,设备可能被重启过。
5、查看AP工作状态及在线数量
在AC上通过show ap-config summary 可以查看到AP在线数量、AP命名、AP IP地址、AP MAC地址、AP Radio状态、AP用户数、AP radio工作信道、AP radio发送功率、AP在线时间
6、查看无线用户在线状态
在AC上通过show ac-config client可以查看到总共在线人数、无线用户MAC地址、无线用户IP地址、无线用户和哪个AP关联、无线用户属于哪个VLAN、无线用户关联哪个SSID、无线用户目前的关联速率、无线用户使用哪种认证、无线用户在线时间。
7、查看无线用户信号强度
登陆到AP上通过show dot11 associations all-client查看无线用户信号强度、关联速率、关联时间。
注:RSSI指的是接收信号强度,范围0~100(对应的无线用户信号强度在此基础上-95,例如配置值25,对应的无线用户信号强度为25-95 = -70dBm)
8、查看无线用户认证及加密类型
登陆到AC上通过show wclient security查看无线用户认证及加密类型
9、检查AC时间是否和实际一致
在AC上通过show clock 确认时间是否准确,如果时间不准确则需要通过如下命令进行调整:
Ruijie#clock set 15:36:50 12 16 2014 //2014年12月16日15时36分
Ⅱ 在Linux的服务器上搭建DHCP Server配置option配置案例
1、配置option 43实现MP-71自动联系MX
1.1功能需求及组网
组网图
方案介绍
通过在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 mxip code 43 = string;
subnet2.2.2.0 netmask 255.255.255.0 {
# --- default gateway
option routers 2.2.2.254;
option subnet-mask 255.255.255.0;
# --- mx ip
option mxip 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;
}
以十六进制格式表示IP,80为选项类型,0B为选项长度,表示后面内容的长度,0000为Server Type,固定为0000,01为后面AC的IP地址的个数,“02:02:02:FE为MX的IP地址的十六进制,也就是说在配置时只需把自己的MX地址X.X.X.X换算成十六进制替换掉即可。“:0B:45:14 ”为固定格式说明前面定义的是一串ip地址。
1.4检验配置效果
MX-8# 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--i2.2.2.1 MP-422 00:0b:0e:90:01:00 E 11/18 E161/20 04h08m
MX-8#
2、配置option 138实现AP220-E自动联系AC
2.1功能需求及组网
组网图
方案介绍
通过在Linux 上配置DHCP Server为AP220-E提供IP及option 138选项。
2.2配置思路
1)下载、安装DHCP Server 相关程序。
2)调试基本的dhcp启动服务、并验证能否获取ip。
3)配置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;
subnet2.2.2.0 netmask 255.255.255.0 {
# --- default gateway
option routers 2.2.2.254;
option subnet-mask 255.255.255.0;
# --- mx 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检验配置效果
Ruijie#show capwap state
index peer device state
1 2.2.2.20 : 32768 Run
Ruijie#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 orSplit [ 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 orSplit [ 1 ]
Local Switch [ 0 ]
Ruijie#
Ⅲ 在Windows 2003的服务器上搭建DHCP Server 配置option 配置案例
1 配置option 43实现MP-71自动联系MX
1.1 功能需求及组网
组网图
方案介绍
通过在Windows2003 上配置DHCPServer为AP提供IP及option43选项, AP和MX之间是夸三层部署, AP寻找MX时,使用option43获得MX的ip地址然后寻找MX。
-
- 配置思路
1) 安装DHCPServer 相关程序与服务。
2) 调试基本的dhcp启动服务、并验证能否获取ip。
3) 配置option43。
1.3 配置文件
Option43 配置
1.4 检验配置效果
MX-8# show ap status
Flags: o = operational[1], c = configure[0], d = download[0], b = boot[0]
a=autoAP,m=meshAP,p/P=meshportal(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 MP-422 00:0b:0e:90:01:00 E 11/18 E161/20
04h08m
MX-8#
2 配置option 138实现AP220-E自动联系AC
2.1 功能需求及组网
组网图
方案介绍
通过在Windows2003 上配置DHCPServer为AP220-E提供IP及option138选项,AP和AC之间是跨三层部署,AP寻找AC时,使用option138获得AC的ip地址然后寻找AC。
2.2 配置思路
1) 安装DHCPServer 相关程序与服务。
2) 调试基本的dhcp启动服务、并验证能否获取ip。
3) 配置option138。
2.3 配置文件
Option138 配置
2.4 检验配置效果
Ruijie#show capwap state
index peer device state
1 2.2.2.20 : 32768 Run
Ruijie#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 ]
Ruijie#
Ⅳ 在Windows 2008的服务器上搭建DHCP Server 配置option 配置案例
1、首先打开dhcp server 服务,完成地址池的添加,然后右键选择option的设置,如下图红色方框标记的
2、右击---》设置预定义选项
3、选项类选择dhcp standand options后,点击添加
数据类型选择ip address,code值为138,点击ok
4、选择刚刚添加的option 138,添加ac的loopback地址,点击ok。Option 138添加完毕,触发ap获取ip地址
5、结果验证
捕获服务器的回应offer报文中携带option 138选项
Ap获取到option 138信息,成功建立隧道。