Bonjour,
En consultant la documentation sur le paquet udhcpc, je tombe sur
la page suivante :
https://packages.debian.org/stretch/udhcpc
Sauf erreur de ma part, il y a une erreur sur la description du
paquet, car udhcpc est bien un client dhcp et non un serveur ; le
c à la fin est bien celui de client. Contrairement à ce qui est
écrit sur cette page, le serveur est toujours et encore udhcpd (le
d pour daemon à la fin).
C'est trompeur car c'est bien busybox qui fournit les 2
fonctions, mais le résultat des commandes est formel :
$ busybox --help
BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list[-full]
or: busybox --install [-s] [DIR]
or: function [arguments]...
BusyBox is a multi-call binary that combines many common
Unix
utilities into a single executable. Most people will
create a
link to busybox for each function they wish to use and
BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, acpid, adjtimex, ar, arp, arping, ash, awk,
basename, blockdev, brctl, bunzip2, bzcat, bzip2, cal, cat,
chgrp, chmod, chown, chroot, chvt, clear, cmp, cp, cpio,
cttyhack, cut, date, dc, dd, deallocvt, depmod, devmem, df,
diff, dirname, dmesg, dnsdomainname, dos2unix, du, dumpkmap,
dumpleases, echo, egrep, env, expand, expr, false, fgrep,
find, fold, free, freeramdisk, fstrim, ftpget, ftpput,
getopt, getty, grep, groups, gunzip, gzip, halt, head,
hexdump, hostid, hostname, httpd, hwclock, id, ifconfig,
init, insmod, ionice, ip, ipcalc, kill, killall, klogd,
last, less, ln, loadfont, loadkmap, logger, login, logname,
logread, losetup, ls, lsmod, lzcat, lzma, lzop, lzopcat,
md5sum, mdev, microcom, mkdir, mkfifo, mknod, mkswap,
mktemp, modinfo, modprobe, more, mount, mt, mv, nameif, nc,
netstat, nslookup, od, openvt, patch, pidof, ping, ping6,
pivot_root, poweroff, printf, ps, pwd, rdate, readlink,
realpath, reboot, renice, reset, rev, rm, rmdir, rmmod,
route, rpm, rpm2cpio, run-parts, sed, seq, setkeycodes,
setsid, sh, sha1sum, sha256sum, sha512sum, sleep, sort,
start-stop-daemon, stat, strings, stty, swapoff, swapon,
switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset,
tee, telnet, test, tftp, time, timeout, top, touch, tr,
traceroute, traceroute6, true, tty, udhcpc, udhcpd,
umount, uname, uncompress, unexpand, uniq, unix2dos, unlzma,
unlzop, unxz, unzip, uptime, usleep, uudecode, uuencode,
vconfig, vi, watch, watchdog, wc, wget, which, who, whoami,
xargs, xz, xzcat, yes, zcat
$busybox udhcpc --help
BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) multi-call binary.
Usage: udhcpc [-fbqaRB] [-t N] [-T SEC] [-A SEC/-n]
[-i IFACE] [-s PROG] [-p PIDFILE]
[-oC] [-r IP] [-V VENDOR] [-F NAME] [-x OPT:VAL]... [-O
OPT]...
-i,--interface IFACE Interface to use (default eth0)
-s,--script PROG Run PROG at DHCP events (default
/etc/udhcpc/default.script)
-p,--pidfile FILE Create pidfile
-B,--broadcast Request broadcast replies
-t,--retries N Send up to N discover packets
(default 3)
-T,--timeout SEC Pause between packets (default 3)
-A,--tryagain SEC Wait if lease is not obtained
(default 20)
-n,--now Exit if lease is not obtained
-q,--quit Exit after obtaining lease
-R,--release Release IP on exit
-f,--foreground Run in foreground
-b,--background Background if lease is not
obtained
-S,--syslog Log to syslog too
-a,--arping Use arping to validate offered
address
-r,--request IP Request this IP address
-o,--no-default-options Don't request any options
(unless -O is given)
-O,--request-option OPT Request option OPT from
server (cumulative)
-x OPT:VAL Include option OPT in sent packets
(cumulative)
Examples of string, numeric, and hex byte
opts:
-x hostname:bbox - option 12
-x lease:3600 - option 51 (lease time)
-x 0x3d:0100BEEFC0FFEE - option 61 (client
id)
-F,--fqdn NAME Ask server to update DNS mapping
for NAME
-V,--vendorclass VENDOR Vendor identifier (default
'udhcp VERSION')
-C,--clientid-none Don't send MAC as client
identifier
Signals:
USR1 Renew lease
USR2 Release lease
$busybox udhcpd --help
BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) multi-call binary.
Usage: udhcpd [-fS] [-I ADDR] [CONFFILE]
DHCP server
-f Run in foreground
-S Log to syslog too
-I ADDR Local address
|
Cordialement,
Luc Novales.
|