udhcpc 参数使用说明
udhcpc 参数使用说明
- udhcpc
- 英文文档链接. udhcp client (udhcpc)
- command line options
udhcpc
当没有网络的时候,板子一直发送dhcp请求,导致程序不往下执行,解决的办法是把它切换到后台运行,可是如何切换到后台呢,有办法,它自带参数可以实现该功能。如下:
udhcpc -b -i eth0 -p /var/run/udhcpc.pid -R
解释一下,-b就是切换到后台指令,-i是指定使用哪个网络接口,双网卡的时候一定要使用它来指定eth0 or eth1。
【最近新添加 -R】
对于 -R参数,其实也很重要,在关闭udhcpc时,可以向dhcpserver发送release取消租约。
下面引用网友的一篇文章:
udhcpc 的配置记录
udhcpc scripts
Here’s some debian scripts I wrote for udhcpc 0.9.6. I wanted to make it easy to run local scripts for DHCP changes so I created /etc/udhcpc.d. All the /usr/share/udhcpc/default.* scripts have been merged into /etc/udhcpc.d/S50default. S99local is an example script that patches resolv.conf and calls a DNS update script.
/etc/init.d/udhcpc
/etc/udhcpc.script
/etc/udhcpc.d/S50default
/etc/udhcpc.d/S99local
Last modified: Mon Feb 4 10:23:49 PST 2002
单调的分割线
英文文档链接.
udhcp client (udhcpc)
command line options
The command line options for the udhcp client are:
-c, --clientid=CLIENTID Client identifier
-H, --hostname=HOSTNAME Client hostname
-h, Alias for -H
-f, --foreground Do not fork after getting lease
-b, --background Fork to background if lease cannot be
immediately negotiated.
-i, --interface=INTERFACE Interface to use (default: eth0)
-n, --now Exit with failure if lease cannot be
immediately negotiated.
-p, --pidfile=file Store process ID of daemon in file
-q, --quit Quit after obtaining lease
-r, --request=IP IP address to request (default: none)
-s, --script=file Run file at dhcp events (default:
/usr/share/udhcpc/default.script)
-v, --version Display version
udhcpc 参数使用说明相关推荐
- TensorRT - 自带工具trtexec的参数使用说明
本文以TensorRT-7.2.3.4说明自带工具trtexec工具的使用参数进行说明. 1 trtexec的参数使用说明 === Model Options ===--uff=<file> ...
- ProGuard参数使用说明
ProGuard 使用说明 本文主要是翻译proguad的官方文档,以便以后使用的时候不需要再次去看英文,每次写proguard总是那么痛苦,必须写个博客记录一下,有些地方的意思我也不懂,有注明原文! ...
- Smokeping的参数使用说明
图表参数说明 (1) RTT(Round-Trip Time):简单说它是一个数据报在网络上两点中间往返一次的时间.是影响TCP性能和表征网络运行状况的重要参数.在网络中实时.准确地测量大量TCP设备 ...
- pandas.Series.plot的简单参数使用说明
注:要使用plot函数需要使用matplotlib和pylab环境.%matplotlib inline Series.plot(kind='line', ax=None, figsize=None, ...
- solr查询参数使用说明
q – 查询字符串,必须的.Solr 中用来搜索的查询.有关该语法的完整描述,请参阅 参考资料中的 "Lucene QueryParser Syntax".可以通过追加一个分号和已 ...
- phpmailer 私密抄送_phpmailer 参数使用说明
$AltBody--属性 出自:PHPMailer::$AltBody 文件:class.phpmailer.php 说明:该属性的设置是在邮件正文不支持HTML的备用显示 AddAddress--方 ...
- get\post常用参数使用说明
- top 命令参数使用说明
同事问:师兄 我想要看Linux的系统运行内存排序,要怎么才能查? 回答:问百度吧! 一段时间后.... 同事问:百度用的方法查询显示都是些KB的数据,我看了还是要自己去算,太麻烦了. 回答:其实百度 ...
- 【226】wireshark的参数使用说明
♣ 题目部分(原文见公众号:python宝) python宝 https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzU5NjI ...
- PQTools配置参数使用说明
设定 AE 曝光属性 HI_MPI_ISP_SetExposureAttr bByPass AE 模块 bypass 功能使能,默认为 HI_FALSE. enOpType 自动曝光或手动曝光开关,默 ...
最新文章
- 2018全球科技创新报告
- 解决在vue中axios请求超时的问题
- 【机器学习】一篇白话机器学习概念
- 理解DOM事件流的三个阶段 - Lxxyx的开发笔记 - SegmentFault 思否
- 电脑温度检测软件哪个好_重装电脑,用哪个软件重装系统比较好?
- [Python]网络爬虫(12):爬虫框架Scrapy的第一个爬虫示例入门教程
- 基于JAVA+SpringMVC+Mybatis+MYSQL的酒店客房管理系统
- golang使用Nsq
- 计算机是根据用户名,根据用户名移动计算机账号
- jad的用法(反编译某目录下所有class)
- html5+JS调用手机摄像头扫码
- OPNET14.5+WIN10+VS2010安装教程(附安装包)
- 微信 语音识别_微信语音识别_微信语音识别api - 云+社区 - 腾讯云
- Python的特点(优点和缺点)
- 46相关度评分TFIDF算法
- meta是什么意思中文_Meta 的意思是什么?
- 计算机如何调成音乐,如何调出适用于我的均衡器设置?
- 聊一聊 C# 后台GC 到底是怎么回事?
- Linux 如何在文件中查找指定内容
- 电脑双核CPU具体是什么意思?