码迷,mamicode.com
首页 > 其他好文 > 详细

BusyBox ifup udhcpc后台运行

时间:2017-10-11 18:06:50      阅读:235      评论:0      收藏:0      [点我收藏+]

标签:https   generate   dhcp   forever   generated   ace   starting   network   stack   

/**********************************************************************
 *              BusyBox ifup udhcpc后台运行
 * 说明:
 *     发现ifup会调用udhcpc,但是并不会切换到后台运行,解决一下。
 *
 *                                  2016-10-11 深圳 南山平山村 曾剑锋
 *********************************************************************/


一、参考文档:
    1. How to get BusyBox udhcpc to run in background forever?
        https://unix.stackexchange.com/questions/267733/how-to-get-busybox-udhcpc-to-run-in-background-forever

二、解决办法:
    1. cat /etc/network/interfaces
        # interface file auto-generated by buildroot
        
        auto lo
        iface lo inet loopback
        
        auto eth0
        iface eth0 inet dhcp
            udhcpc_opts -b          # <------ 添加udhcpc参数
        
    2. 启动输出信息:
        ...
        Starting network: eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:01, irq=-1)
        udhcpc: started, v1.26.2
        udhcpc: sending discover
        PHY: 1:01 - Link is Up - 100/Full
        udhcpc: sending discover
        udhcpc: sending discover
        udhcpc: no lease, forking to background
        ...

 

BusyBox ifup udhcpc后台运行

标签:https   generate   dhcp   forever   generated   ace   starting   network   stack   

原文地址:http://www.cnblogs.com/zengjfgit/p/7651707.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!