![D-Link DXS-3250 - xStack Switch - Stackable Cli Manual Download Page 146](http://html1.mh-extra.com/html/d-link/dxs-3250-xstack-switch-stackable/dxs-3250-xstack-switch-stackable_cli-manual_4139512146.webp)
IP Addressing Commands
Page 145
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
•
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 Configuration
This command has no default configuration.
Command Mode
Interface Configuration (Ethernet, VLAN, port-channel) mode
User Guidelines
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 DISCOVER 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 deconfigures any IP address that was acquired, thus sending a
DHCPRELEASE message.
Note
The command is only valid when the device is in Switch mode.
Example
The following example acquires an IP address for Ethernet port 1/16 from DHCP.
Console(config)#
interface ethernet
1/16
Console(config-if)#
ip address dhcp
Summary of Contents for DXS-3250 - xStack Switch - Stackable
Page 12: ...Page 11 ...
Page 46: ...ACL Commands Page 45 ...
Page 68: ...Address Table Commands Page 67 ...
Page 124: ...Ethernet Configuration Commands Page 123 ...
Page 134: ...GVRP Commands Page 133 ...
Page 144: ...IGMP Snooping Commands Page 143 ...
Page 158: ...IP Addressing Commands Page 157 Console config ip helper address 172 16 9 9 49 53 ...
Page 166: ...IP Addressing Commands Page 165 ...
Page 186: ...Line Commands Page 185 ...
Page 194: ...Management ACL Commands Page 193 ...
Page 200: ...PHY Diagnostics Commands Page 199 ...
Page 208: ...Port Monitor Commands Page 207 ...
Page 216: ...Power over Ethernet Commands Page 215 ...
Page 272: ...RMON Commands Page 271 ...
Page 334: ...Spanning Tree Commands Page 333 ...
Page 428: ...VLAN Commands Page 427 ...
Page 466: ...802 1x Commands Page 465 ...