IP Address Commands
ip address dhcp
SPS208G/SPS224G4/SPS2024 Command Line Interface Reference Guide 209
15
User Guidelines
An IP address cannot be configured for a range of interfaces (range context).
This command is only functional if the device is in Switch mode.
Example
The following example configures VLAN 1 with IP address 131.108.1.27 and
subnet mask 255.255.255.0.
Console(config)# interface vlan 1
Console(config-if)# ip address 131.108.1.27 255.255.255.0
ip address dhcp
The ip address dhcp Interface Configuration (VLAN) mode command acquires an
IP address for an Ethernet interface from the Dynamic Host Configuration Protocol
(DHCP) server. Use the no form of this command to de-configure an acquired IP
address.
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.