udhcpd配置及使用
来源:互联网 发布:vr设计软件 编辑:程序博客网 时间:2024/05/22 14:11
udhcpd配置及使用
基于mips芯片qca953x平台;
今天测试板子wifi无线连接的时候,手机端怎么也连接不上,连上wifi后手机端立即就闪断了,后面发现原因是无线路由开发板没有开启dhcp服务器,手机端获取不到ip地址,下面来讲下busybox的dhcp服务器udhcpd的使用及配置。
1.使用原始的udhcpd配置文件/etc/udhcpd.conf启动dhcp服务器udhcpd,结果出现以下错误
~ # udhcpd /etc/udhcpd.conf &
info, udhcpd (v0.9.9-pre) started
error, max_leases value (254) not sane, setting to 234 instead
error, Unable to open /var/lib/misc/udhcpd.leases for reading
error, SIOCGIFADDR failed, is the interface up and configured?: No such device
原始的/etc/udhcpd.conf文件内容,部分省略,省略部分采用原来的默认配置:
# Sample udhcpd configuration file (/etc/udhcpd.conf)
# The start and end of the IP lease block
start 192.168.1.20#default: 192.168.0.20
end 192.168.1.254#default: 192.168.0.254
# The interface that udhcpd will use
interface ixp0#default: eth0
# The maximim number of leases (includes addressesd reserved
# by OFFER's, DECLINE's, and ARP conficts
#max_leases 254#default: 254
修改后的/etc/udhcpd.conf文件内容,部分省略,省略部分采用原来的默认配置:
# Sample udhcpd configuration file (/etc/udhcpd.conf)
# The start and end of the IP lease block
start 192.168.1.20#default: 192.168.0.20
end 192.168.1.254#default: 192.168.0.254
# The interface that udhcpd will use
interface br0 #default: eth0 --- 解决error, SIOCGIFADDR failed, is the interface up and configured?: No such device
# The maximim number of leases (includes addressesd reserved
# by OFFER's, DECLINE's, and ARP conficts
max_leases 234#default: 254 --- 解决error, max_leases value (254) not sane, setting to 234 instead
解决error, Unable to open /var/lib/misc/udhcpd.leases for reading,在板子上执行以下命令:
# mkdir -p /var/lib/misc/
# touch /var/lib/misc/udhcpd.leases
2.再次启动udhcpd进程
# udhcpd /etc/udhcpd.conf &
然后手机重连板子的wifi,手机获取到ip地址后,wifi无线连接成功。
- udhcpd配置及使用
- 配置udhcpd
- Busybox内置的tftpd, ftpd, telnetd, udhcpd, udhcpc配置
- Busybox内置的tftpd, ftpd, telnetd, udhcpd, udhcpc配置
- Busybox内置的tftpd, ftpd, telnetd, udhcpd, udhcpc配置
- Busybox内置的tftpd, ftpd, telnetd, udhcpd, udhcpc配置
- Busybox内置的tftpd, ftpd, telnetd, udhcpd, udhcpc配置
- Busybox内置的tftpd, ftpd, telnetd, udhcpd, udhcpc配置
- udhcpc和udhcpd移植
- udhcpc和udhcpd
- udhcpc 和 udhcpd
- udhcpd.conf配置文档参考--修改网卡设备名interface wlan1 以及最后的网卡固定ip就可以
- ajaxPro 配置及使用
- Eclipse使用及配置
- Samba配置及使用
- 数据源配置及使用
- away3d配置及使用
- bdlink 配置及使用
- Android多线程断点续传下载
- Mac下打开win的android studio工程
- sass安装
- Solr4:设计数据结构,就是配置schema.xml
- 快速开发封装精简版
- udhcpd配置及使用
- ROHC 学习记录
- java面试基础知识
- Same Tree 判断两棵树是不是相同
- Spring框架的 IoC和AOP
- Warning: No such file or directory in D:\WWW\XXX\vendor\composer\autoload_real.ph
- 乱码问题解决
- Android Studio查找有中文字符的文件位置
- aspnet调用mysql存储过程