SROS Command Line Interface Reference Guide
BVI Interface Config Command Set
5991-2114
© Copyright 2007 Hewlett-Packard Development Company, L.P.
795
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. Variables that may be used with this command to
further define the DHCP configuration include:
ip address dhcp client-id [
<interface>
|
<identifier>
] [hostname
<“string”>
] [track
<name>
]
[
<administrative distance>
]
ip address dhcp hostname
<“string”>
[no-default-route | no-domain-name | no-nameservers]
[track
<name>
] [
<administrative distance>
]
ip address dhcp [no-default-route | no-domain-name | no-nameservers] [track
<name>
]
[
<administrative distance>
]
ip address dhcp track
<name>
[
<administrative distance>
]
Syntax Description
<administrative distance>
Optional. Specifies the administrative distance to use when adding the DHCP
gateway into the route table. It is used to determine the best route when multiple
routes to the same destination exist. The smaller the administrative distance the
more reliable the route. Range is 1 to 255.
client-id
Optional. Specifies the client identifier used when obtaining an IP address from a
DHCP server.
<interface>
Specifies an interface, thus defining 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 ethernet 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 1414 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
<“string”>
Optional. Specifies a text string (to override the global router name) to use as the
name in the DHCP option 12 field. The string is enclosed in quotation marks and
can consist of up to 35 characters.
no-default-route
Optional. Specifies that no default route is obtained via DHCP.
no-domain-name
Optional. Specifies that no domain name is obtained via DHCP.
no-nameservers
Optional. Specifies that no DNS servers are obtained via DHCP.
track
<name>
Optional. Attaches a network monitoring track to the DHCP client. The DHCP
gateway route for this client will only reside in the route table while the track is in
the pass state. For more information on configuring track objects, refer to
Default Values
<administrative distance>
By default, the administrative distance value is 1.