当前位置:文档之家› 在Linux的服务器上搭建DHCP Server 配置option 配置案例

在Linux的服务器上搭建DHCP Server 配置option 配置案例

文件类型:配置类版本号:V1.0(2010/09/19)
在Linux的服务器上搭建DHCP Server 配置option配置案例
2010-09-16
福建星网锐捷网络有限公司
版权所有侵权必究
修订记录
1配置option43实现MP-71自动联系MX
1.1功能需求及组网
组网图
方案介绍
通过在Linux上配置DHCP Server为AP提供IP及option43选项。

1.2配置思路
1)下载、安装DHCP Server相关程序。

2)调试基本的dhcp启动服务、并验证能否获取ip。

3)配置option43。

1.3配置文件
CentOS
Vi dhcpd.conf
ignore client-updates;
ddns-update-style ad-hoc;
option mxip code43=string;
subnet 2.2.2.0netmask255.255.255.0{
#---default gateway
option routers 2.2.2.254;
option subnet-mask255.255.255.0;
#---mx ip
option mxip80: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-time21600;
max-lease-time43200;
}
以十六进制格式表示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 Radio1Radio2
Uptime
-----------------------------------------------------------
-------------
2o--i 2.2.2.1MP-42200:0b:0e:90:01:00E11/18E161/20 04h08m
MX-8#
2配置option138实现AP220-E自动联系AC
2.1功能需求及组网
组网图
方案介绍
通过在Linux上配置DHCP Server为AP220-E提供IP及option138选项。

2.2配置思路
1)下载、安装DHCP Server相关程序。

2)调试基本的dhcp启动服务、并验证能否获取ip。

3)配置option138。

相关主题