11-2
www.hp.com
HP PC Blade Switch CLI Reference Guide
IP Addressing Commands
ip address dhcp
The
ip address dhcp
Interface Configuration (Ethernet, VLAN, port-channel) mode command
acquires an IP address for an Ethernet interface from the Dynamic Host Configuration Protocol
(DHCP) server. To deconfigure an acquired IP address, use the
no
form of this command.
Syntax
ip address dhcp
[
hostname
host-name
]
no ip address dhcp
Parameters
n
host-name
— Specifies the name of the host to be placed in the DHCP option 12 field. This
name does not have to be the same as the host name specified in the
hostname
Global
Configuration mode command. (Range: 1-20 characters)
Default Setting
This command has no default configuration.
Command Mode
Interface Configuration (Ethernet, VLAN, port-channel) mode
Command Usage
The
ip address dhcp
command allows any interface to dynamically learn its IP address by using
the DHCP protocol.
Some DHCP servers require that the DHCPDISCOVER message have a specific host name. The
ip address dhcp hostname
host-name
command is most typically used when the host name is
provided by the system administrator.
If the device is configured to obtain its IP address from a DHCP server, it sends a
DHCPDISCOVER message to provide information about itself to the DHCP server on the
network.
If the
ip address dhcp
command is used with or without the optional keyword, the DHCP option
12 field (host name option) is included in the DHCPDISCOVER message. By default, the
specified DHCP host name is the globally configured host name of the device. However, the
ip
address dhcp hostname
host-name
command can be used to place a different host name in the
DHCP option 12 field.
The
no ip address dhcp
command de-configures any IP address that was acquired, thus sending
a DHCPRELEASE message.
Example
The following command acquires an IP address for VLAN 1 from DHCP.
Console(config)
# interface vlan
1
Console(config-if)
# ip address dhcp
Содержание BladeSystem bc2000 - Blade PC
Страница 44: ...2 24 www hp com HP PC Blade Switch CLI Reference Guide 802 1x Commands ...
Страница 90: ...5 22 www hp com HP PC Blade Switch CLI Reference Guide Address Table Commands ...
Страница 142: ...8 24 www hp com HP PC Blade Switch CLI Reference Guide Ethernet Configuration Commands ...
Страница 152: ...9 10 www hp com HP PC Blade Switch CLI Reference Guide GVRP Commands ...
Страница 162: ...10 10 www hp com HP PC Blade Switch CLI Reference Guide IGMP Snooping Commands ...
Страница 178: ...1 1 16 www hp com HP PC Blade Switch CLI Reference Guide IP Addressing Commands ...
Страница 194: ...13 10 www hp com HP PC Blade Switch CLI Reference Guide Line Commands ...
Страница 202: ...14 8 www hp com HP PC Blade Switch CLI Reference Guide Management ACL Commands ...
Страница 208: ...15 6 www hp com HP PC Blade Switch CLI Reference Guide PHY Diagnostics Commands ...
Страница 216: ...17 4 www hp com HP PC Blade Switch CLI Reference Guide Port Monitor Commands ...
Страница 272: ...20 18 www hp com HP PC Blade Switch CLI Reference Guide RMON Commands ...
Страница 362: ...24 16 www hp com HP PC Blade Switch CLI Reference Guide Syslog Commands ...