Operation Manual
90
DHCP Commands
E-DOC-CTC-20040210-0030 v1.0
dhcp client ifconfig
Show/set the configuration of DHCP lease created for a specific interface.
Note Use the command dhcp client ifrelease before configuring the dhcp client.
SYNTAX:
where:
dhcp client ifconfig intf = <interface name>
[clientid = <{client-id|none}>]
[hostname = <hostname|"">]
[addr = <ip-address>]
[leasetime = <number>]
[addrtrans = <{none|pat}>]
[dns = <{off|on}>]
[gateway = <{off|on}>]
[metric = <number{0-100}>]
[dnsmetric = <number{0-100}>]
intf The name of the dynamic interface to be configured. REQUIRED
clientid The client identity to be associated with the lease.
Use none in case no clientid should be associated with this lease.
OPTIONAL
hostname The host name of the client to be associated with the lease.
Use “” in case no hostname should not be associated with this lease.
OPTIONAL
addr The preferred dynamic IP address. OPTIONAL
leasetime A number between 0 and 1814400 (seconds).
Represents the preferred time the client wants to use an address.
The default is 7200 (2 hours).
Note Specifying -1 makes the lease permanent.
OPTIONAL
addrtrans Automatically enable address translation for this dynamic interface
(pat) or not (none).
OPTIONAL
dns Request (and accept) DNS server IP addresses (on) or not (off). OPTIONAL
gateway Request (and accept) gateway IP addresses (on) or not (off). OPTIONAL
metric A number between 0 and 100.
Represents the gateway route metric.
The default is 1.
OPTIONAL
dnsmetric A number between 0 and 100.
Represents the DNS route metric.
The default is 1.
OPTIONAL