udhcpc

Tips#

udhcpc -i eth1 -q

脚本变量

envdesc
$HOME$HOME 变量或 "/"
$PATH$PATH 变量或 "/bin:/usr/bin:/sbin:/usr/sbin"
$1action
interfaceinterface
ipip
siaddrbootp next server option
snamebootp server name option
boot_filebootp boot file option
subnetsubnet mask
timezoneOffset in seconds from UTC
routerA list of routers
timesvrA list of time servers
namesvrA list of IEN 116 name servers
dnsA list of DNS server
logsvrA list of MIT LCS UDP log servers
cookiesvrA list of RFC 865 cookie servers
lprsvrA list of LPR servers
hostnameThe assigned hostname
bootsizeThe length in 512 octect blocks of the bootfile
domainThe domain name of the network
swapsvrThe IP address of the client's swap server
rootpathThe path name of the client's root disk
ipttlThe TTL to use for this network
mtuThe MTU to use for this network
broadcastThe broadcast address for this network
ntpsrvA list of NTP servers
winsA list of WINS servers
leaseThe lease time, in seconds
dhcptypeDHCP message type (safely ignored)
serveridThe IP of the server
messageReason for a DHCPNAK
tftpThe TFTP server name
bootfileThe bootfile name