zoukankan      html  css  js  c++  java
  • udhcpc

    /*********************************************
     *                dhcpc
     * dhcpc是dhcp的客户端,在busybox中实现。今天正好了解一下。
     *                    Tony, 2016-5-20, Shenzhen
     ********************************************/
    
    udhcpc -b -i eth0 -p /var/run/udhcpc.pid -R &
    -b:后台运行
    -i:指定接口
    -p:pid文件
    -R:关闭udhcpc时,可以向dhcpserver发送release取消租约
    
      Usage: udhcpc [-Cfbnqtvo] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]
    
      [-p pidfile] [-r IP] [-s script] [-O dhcp-option]... [-P N]
    
      -V CLASSID      Vendor class identifier
    
      -i INTERFACE    Interface to use (default: eth0)
    
      -H,-h HOSTNAME  Client hostname
    
      -c CLIENTID     Client identifier
    
      -C              Suppress default client identifier
    
      -p file         Create pidfile
    
      -r IP           IP address to request
    
      -s file         Run file at DHCP events (default /usr/share/udhcpc/default.script)
    
      -t N            Send up to N request packets
    
      -T N            Try to get a lease for N seconds (default 3)
    
      -A N            Wait N seconds (default 20) after failure
    
      -O OPT          Request DHCP option OPT (cumulative)
    
      -o              Do not request any options (unless -O is also given)
    
      -f              Run in foreground
    
      -b              Background if lease is not immediately obtained
    
      -S              Log to syslog too
    
      -n              Exit with failure if lease is not immediately obtained
    
      -q              Quit after obtaining lease
    
      -R              Release IP on quit
    
      -P N            Use port N instead of default 68
    
      -a              Use arping to validate offered address
  • 相关阅读:
    献给需要购买 阿里云产品的朋友
    当硬件没问题的时候,提升电脑运行速度
    IIS网页GZIP压缩
    前端优化-如何计算白屏和首屏时间
    Javascript 思维导图
    总结get和post区别---面试用
    点击切换样式、以及点击自身移除样式效果
    各行换色
    计算器
    无缝轮播图
  • 原文地址:https://www.cnblogs.com/helloworldtoyou/p/5516337.html
Copyright © 2011-2022 走看看