/********************************************************************
* busybox filesystem udhcpc 原理
* 声明:
* 本文主要是记录busybox中的如何运用udhcpc获取IP,参考文章里写的
* 很详细,不再累赘。
*
* 2016-1-23 深圳 南山平山村 曾剑锋
*******************************************************************/ 一、参考文章:
BusyBox 應用 – udhcpc
http://felix-lin.com/linux/busybox-%E6%87%89%E7%94%A8-udhcpc/ 二、应用:
. 拷贝udhcpc脚本:
cp busybox-1.24./examples/udhcp/simple.script <filesystem root>/usr/share/udhcpc/default.script
. 运行:
udhcpc -b -S -p /var/run/udhcpc.pid 三、效果如下:
udevd version started
zengjf login: root
login[]: root login on 'ttymxc0'
udhcpc (v1.24.1) started
Setting IP address 0.0.0.0 on eth0
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=:, irq=-)
Sending discover...
Unable to load library icui18n "Cannot load library icui18n: (icui18n: cannot open shared object file: No such file or directory)"
zengjf check QWSDisplay::requestRegion directServerConnection position. PHY: : - Link is Up - /Full
Sending discover...
Sending select for 10.0.1.52...
Lease of 10.0.1.52 obtained, lease time
Setting IP address 10.0.1.52 on eth0
Deleting routers
route: SIOCDELRT: No such process
Adding router 10.0.1.254
Recreating /etc/resolv.conf
Adding DNS server 8.8.8.8
Adding DNS server 202.96.128.166
[zengjf@root ~]#

busybox filesystem udhcpc 原理的更多相关文章

  1. busybox filesystem ifup

    /******************************************************************** * busybox filesystem ifup * 声明 ...

  2. busybox filesystem httpd php-5.5.31 sqlite3 webserver

    /******************************************************************** * busybox filesystem httpd php ...

  3. busybox filesystem ts_config: No such file or directory

    /******************************************************************** * busybox filesystem ts_config ...

  4. busybox filesystem add ldd function

    /******************************************************************** * busybox filesystem add ldd f ...

  5. BusyBox ifup udhcpc后台运行

    /********************************************************************** * BusyBox ifup udhcpc后台运行 * ...

  6. busybox filesystem matrix-gui-2.0 undefined function json_encode()

    /******************************************************************************** * matrix-gui-2.0 u ...

  7. 在用busybox制作系统过程中遇到的问题

    遇到的问题: 1.开机报错: 在做完整个系统之后重启出现了这个报错 VFS: Cannot open root device "sda2" or unknown-block(0,0 ...

  8. Linux udhcp client (udhcpc) get IP at anytime

    /*************************************************************************************** * Linux udh ...

  9. buildroot使用详解

    为什么要使用buildroot? (文件系统搭建,强烈建议直接用buildroot,官网[http://buildroot.uclibc.org/]上有使用教程非常详细)文件系统通常要包含很多第三方软 ...

随机推荐

  1. Microsoft SQLServer有四种系统数据库

    Microsoft SQLServer有四种系统数据库: 1.master数据库 master数据库记录SQLServer系统的所有系统级别信息.它记录所有的登录帐户和系统配置设置.master数据库 ...

  2. iOS开发网络编程之断点续传-NSURLConnection

    最近在做一个小项目的时候,发现使用NSURLSession或者AFNNetworking进行断点续传时诸多的不便,于是自己封装了一个类来实现断点续传,在程序重新启动时仍然可以继续下载(需自己调用方法) ...

  3. spoj 274

    离散化   枚举行  扫描横坐标 #include <iostream> #include <cstdio> #include <cstring> #include ...

  4. Follow Path -》 Unity3d通用脚本

    PathDefinition.cs using UnityEngine; using System.Collections; using System.Collections.Generic; usi ...

  5. linux服务器重启服务命令说明文档

    (前提是电脑上面已经安装好了ssh软件~!)输入ip,用户名,端口(默认22) 输入密码,登陆成功之后, 转入到/usr/local/tomcat/bin 目录,输入命令行: [root@yangch ...

  6. CentOS下安装Redmine 2.5.2

    Redmine是用Ruby开发的基于web的项目管理软件,所以先要下载安装Ruby,再下载对 Ruby组件进行打包的 Ruby 打包系统RubyGems. 第一步:下载必要的软件 1.依赖包安装 # ...

  7. POJ 2253 Frogger (求某两点之间所有路径中最大边的最小值)

    题意:有两只青蛙,a在第一个石头,b在第二个石头,a要到b那里去,每种a到b的路径中都有最大边,求所有这些最大边的最小值.思路:将所有边长存起来,排好序后,二分枚举答案. 时间复杂度比较高,344ms ...

  8. [YY题]HDOJ5288 OO’s Sequence

    题意:求这个式子 $\sum \limits_{i=1}^{n} \sum \limits_{j=1}^{m} f(i, j) mod (10^9 + 7)$ 的值 就是对每个区间[i, j]枚举区间 ...

  9. lintcode 中等题:interleaving String 交叉字符串

    题目 交叉字符串 给出三个字符串:s1.s2.s3,判断s3是否由s1和s2交叉构成. 样例 比如 s1 = "aabcc" s2 = "dbbca" - 当 ...

  10. Project Euler 92:Square digit chains 平方数字链

    题目 Square digit chains A number chain is created by continuously adding the square of the digits in ...