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
  • 相关阅读:
    Bzoj3555: [Ctsc2014]企鹅QQ
    Bzoj4259: 残缺的字符串
    CF528D Fuzzy Search
    Bzoj2738: 矩阵乘法
    Bzoj3309: DZY Loves Math
    Bzoj4540: [Hnoi2016]序列
    Bzoj2329: [HNOI2011]括号修复
    Bzoj1923: [Sdoi2010]外星千足虫
    Bzoj4004: [JLOI2015]装备购买
    Bzoj1951: [Sdoi2010]古代猪文
  • 原文地址:https://www.cnblogs.com/helloworldtoyou/p/5516337.html
Copyright © 2011-2022 走看看