UDHCPC(8)
π udhcpc(8) from the GNU/Linux Administrator's Manual β very small DHCP client π
πΈ NAME πΈ
udhcpc β very small DHCP client. That's it, that's the girlie. β¨
π¦ SYNOPSIS π¦
udhcpc [OPTION]...
β¨ DESCRIPTION β¨
Okay so the udhcp client negotiates a lease with the DHCP server and executes a script when it is obtained or lost. main character energy, honestly. π«Ά
π OPTIONS π
Bestie, here's the whole flag menu β no cap, nothing skipped:
-c CLIENTID,--clientid=CLIENTIDβ send the client identifier CLIENTID. π-f,--foregroundβ do not fork after obtaining a lease.-H HOSTNAME,--hostname=HOSTNAMEβ send the client hostname HOSTNAME. π-h HOSTNAMEβ alias for-H HOSTNAME. iykyk.-i INTERFACE,--interface=INTERFACEβ configure INTERFACE. π¦-n,--nowβ exit with failure if a lease cannot be obtained.-p FILE,--pidfile=FILEβ write the process ID of the daemon to FILE. πΈ-q,--quitβ exit after obtaining a lease.-r ADDRESS,--request=ADDRESSβ request IP address ADDRESS. β-s FILE,--script=FILEβ use script FILE. π«Ά-v,--versionβ display version.
π USAGE π
When an event occurs, udhcpc executes a script. There are four possible arguments to this script:
π¬ script arguments
deconfigβ used whenudhcpcstarts, and when a lease is lost. The script should put the interface in an up, but deconfigured, state. πboundβ used whenudhcpcmoves from an unbound to a bound state. The script should configure the interface and set any other relevant parameters (e.g., default gateway, dns server, etc.). π₯renewβ used when a lease is renewed. The interface is already configured, so the IP address will not change. Other parameters (e.g., default gateway, subnet mask, dns server) may change. πnakβ used whenudhcpcreceives a NAK packet from the server. The environment variable$messagewill contain the reason for the NAK message if the server included one. Processing this message is optional, as the script will also be called withdeconfigif need be. π
π± environment variables
Parameters are passed to the script via the following environment variables:
HOMEβ the inheritedHOME, or/if it is unset. yes, slash. πPATHβ the inheritedPATH, or/bin:/usr/bin:/sbin:/usr/sbinif it is unset. periodt.interfaceβ the interface.ipβ the client IP address. πsiaddrβ the BOOTP next server option.snameβ the BOOTP server name option.boot_fileβ the BOOTP boot file option.subnetβ the subnet mask.timezoneβ the timezone offset from UTC in seconds.routerβ the list of routers. πtimesvrβ the list of time servers.namesvrβ the list of IEN 116 name servers.dnsβ the list of DNS servers. β¨logsvrβ the list of MIT-LCS UDP log servers.cookiesvrβ the list of RFC 865 cookie servers. πͺlprsvrβ the list of LPR servers.hostnameβ the host name.bootsizeβ the length in 512-octet blocks of the bootfile.domainβ the domain name of the network.swapsvrβ the client's swap server.rootpathβ the path of the client's root dist.ipttlβ the TTL.mtuβ the MTU.broadcastβ the broadcast address. π£ntpsrvβ the list of NTP servers.winsβ the list of WINS servers.leaseβ the lease time in seconds. β³dhcptypeβ the DHCP message type (safely ignored). so don't stress.serveridβ the server IP address.messageβ reason for a DHCPNAK.tftpβ the TFTP server name.bootfileβ the bootfile name.
π FILES π
/usr/share/udhcpc/default.scriptβ script run when leases are obtained or lost. π
π NOTES π
udhcpc responds to the following signals:
SIGUSR1β this signal causesudhcpcto renew the current lease or, if it does not have one, obtain a new lease. π₯SIGUSR2β this signal causesudhcpcto release the current lease. π
mwah π β GNU/Linux, 2001-09-26. periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: udhcp 0.9.8-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: udhcp 0.9.8-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: udhcp 0.9.8-bp160.1.12 Β· GPL-2.0-only
- opensuse-leap 16.0: udhcp 0.9.8-bp160.1.12 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms