DHCP client is used for automatic retrieving of different parameters from DHCP server for one or several unit’s network interfaces. Among the parameters are IP-address, network mask, default gateway etc.
Syntax:
dhcpc [options] [IFNAME] [commands]options: -l (none|default|$ACLNAME|acl:ACLNAME) - set server id accesslist name -k (none|default|key:KEYVALUE) - set authorization method -a (none|default|NUMBER) - set arp attempts number -c (none|default|CLIENT-CLASS ID) - set DHCP Client Class ID - any string Default Class ID - "IW-R5000-MESH" If IFNAME was not specified, it sets default option(s) value -t (on|off) - turn trace on/off commands: start - start dhcp on specified interface stop - stop dhcp on specified interface delete - remove dhcp from specified interface dump - show current dhcp status |
|
This configuration sets the number for ARP requests of 5.
| ||
For "eth0" interface the list of allowed DHCP servers is specified in "DHCP_SERVERS".
| ||
The client is started for "eth0" interface. For "rf5.0" interface none option is set for the number of ARP requests. Thus, "rf5.0" will send 16 ARP requests. Also, DHCP client on "rf5.0" interface will use "qwerty" as authorization key.
| ||
The command prints current status of DHCP client.
Here, clients are started on "eth0" and "rf5.0" interfaces. For "eth0" interface DHCP client obtained a lease for "192.168.61.26" IP-address with 26 bits network mask length from "192.168.61.1" DHCP server. The lease expires in 35 minutes and 16 seconds. DHCP client on "rf5.0" interface has not yet received any parameters.
|