Command Reference Guide VLAN Interface Config Command Set
61200510L1-35E Copyright © 2005 ADTRAN 1189
ip address dhcp
Use the ip address dhcp command to use Dynamic Host Configuration Protocol (DHCP) to obtain an
address on the interface. Use the no form of this command to remove a configured IP address (using
DHCP) and disable DHCP operation on the interface.
ip address dhcp [client-id [<interface> | <identifier>] hostname <“string”>]
Syntax Description
client-id Optional. Specifies the client identifier used when obtaining an IP address from a
DHCP server.
<interface> Specifying an interface defines the client identifier as the hexadecimal MAC
address of the specified interface (including a hexadecimal number added to the
front of the MAC address to identify the media type).
For example, specifying the client-id ethe rnet 0/1 (where the Ethernet interface
has a MAC address of d217.0491.1150) defines the client identifier as
01:d2:17:04:91:11:50 (where 01 defines the media type as Ethernet). Refer to
hardware-address <hardware-address> <type> on page 1334 for a detailed
listing of media types.
<identifier> Specifies a custom client-identifier using a text string (that is converted to a
hexadecimal equivalent) or 7 to 28 hexadecimal numbers (with colon delimiters).
For example, a custom client identifier of 0f:ff:ff:ff:ff:51:04:99:a1 may be entered
using the <identifier> option.
hostname Optional. Specifies a text string (to override the global router name) to use as the
name in the DHCP option 12 field.
<“string”> String (enclosed in quotation marks) of up to 35 characters to use as the na me of
the host for DHCP operation.
no-default-route Keyword used to specify that the AOS not install the default-route obtained via
DHCP.
no-domain-name Keyword used to specify that the AOS not install the domain-name obtained via
DHCP.
no-nameservers Keyword used to specify that the AOS not install the DNS servers obtained via
DHCP.
Default Values
client-id Optional. By default, the client identifier is populated using the following formula:
TYPE: INTERFACE SPECIFIC INFO : MAC ADDRESS
Where TYPE specifies the media type in the form of one hexadecimal byte (refer
to hardware-address <hardware-address> <type> on page 1334 for a de tailed
listing of media types), and the MAC ADDRESS is the Media Access Control
(MAC) address assigned to the first Ethernet interface in the unit in the form of six
hexadecimal bytes. (For units with a single Ethernet interface, the MAC
ADDRESS assigned to Ethernet 0/1 is used in this field).