Planet WGSD-1022 User Manual page 228

8-port 10/100mbps + 2 gigabit tp/sfp combo managed ethernet switch
Hide thumbs Also See for WGSD-1022:
Table of Contents

Advertisement

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
management station;
The DHCP server may be down, which would result in IP address retrieval failure, and possible
loss of connectivity to the management station.
Example
The following example acquires an IP address from DHCP.
Console (config)# interface vlan 1

Advertisement

Table of Contents
loading

Table of Contents