2 ip address dhcp, Syntax, Default configuration – PLANET WGSD-1022 User Manual

Page 200: Command mode, User guidelines

Advertising
background image

5.10.2 ip address dhcp

The ip address dhcp interface configuration command acquires an IP address on an interface from the

Dynamic Host Configuration Protocol (DHCP) server. To deconfigure any acquired address, use the no

form of this command.

The no ip address dhcp command deconfigures any IP address that was acquired, thus sending a

DHCPRELEASE message.

Syntax

ip address dhcp [hostname host-name]

no ip address dhcp

ƒ hostname — Specifies the host name.

ƒ host-name — DHCP host name. This name need not be the same as the host name entered in

global configuration mode.

Default Configuration

This command has no default configuration.

Command Mode

Interface configuration (Ethernet, VLAN, port-channel, out-of-band Ethernet)

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 most

typical usage of the ip address dhcp hostname host-name command is when host-name is the host

name provided by the system administrator.

If a router 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 device globally configured host name.

When the device is reset, the DHCP command is saved in the configuration file, but the IP address is not.

It is recommended not to define a DHCP address on an inband port or LAG. If a DHCP IP address is

configured, this address is dynamically retrieved, and the "ip address dhcp" command is saved in the

configuration file. In the event of a master failure, the backup will again attempt to retrieve a DHCP

address. This could result in one of the following:

ƒ The same IP address may be assigned;

ƒ A different IP address may be assigned, which could result in loss of connectivity to the

Advertising