![]() |
![]() |
![]() |
![]() |
TCP/IP host configuration utility
![]() |
You must be root to run this utility. |
dhcp.client [-bdnr] [-h hostname] [-I num] [-i interface] [-P port] [-p port] [-s host] [-t num] [-u] &
You can use this option to make dhcp.client wait until the interface it's to use is available. This is useful in a boot environment when you might not know when the driver is running and registered with the TCPIP stack. The exit status is 2 if no interface is found.
![]() |
-P port has been changed from port 68 to port 67. |
You're likely to use this option in combination with the -u option so that dhcp.client times out after a specified number of attempts.
This option is useful for spawning dhcp.client. The process doesn't move to the background until it has contacted a server and applied a TCP/IP configuration. The exit status is 3 if no server responds.
The dhcp.client obtains the TCP/IP configuration parameters dynamically from a DHCP (Dynamic Host Configuration Protocol) server, then automatically configures your TCP/IP host. You don't have to provide an IP address or any configuration parameters, or run any configuration utilities.
![]() |
The TCP/IP stack must be started before the dhcp.client. |
The minimum commands to run under QNX 4 are:
Tcpip 'hostname' & dhcp.client & if_up enx
![]() |
Localhost is automatically configured when the TCP/IP stack is started and can't be configured manually if dhcp.client is being used. This can affect the broadcast behavior of the stack if you're attempting to use the 255.255.255.255 address. |
The dhcp.client configures the first unconfigured interface found (this includes an interface configured to 0.0.0.0). If the -i option is used, the interface specified is configured even if it was configured previously.
This utility obtains and implements the following information from the DHCP server:
The domain and nameserver are written to /etc/resolv.conf (see the -r option) unless -n is specified.
If this script exists, it's run after a DHCP server had been contacted and a configuration has been applied. Environment variables that contain the configuration that was obtained and applied from the server, are passed to the script. The environment definitions are:
The following options are available, but not applied by the dhcp.client process:
Any other options are defined as environment variables OPTIONx, where x is the option number. If the option is known, dhcp.client tries to format it as readable information. If the option isn't known, dhcp.client displays each octet as hexadecimal (e.g. OPTION200= F1 AA 56 42).
Currently, dhcp.client is aware of options 1 to 61.
Errors that occur during configuration are reported to system log.
RFC 2131
![]() |
![]() |
![]() |
![]() |