– 837 –
29 DHCP Commands
These commands are used to configure Dynamic Host Configuration Protocol
(DHCP) client functions. and relay functions. Any VLAN interface on this switch can
be configured to automatically obtain an IP address through DHCP. This switch can
also be configured to relay DHCP client configuration requests to a DHCP server on
another network.
DHCP Client
Use the commands in this section to allow the switch’s VLAN interfaces to
dynamically acquire IP address information.
DHCP for IPv4
ip dhcp client class-id This command specifies the DCHP client vendor class identifier for the current
interface. Use the no form to remove the class identifier from the DHCP packet.
Syntax
ip dhcp client class-id [text text | hex hex]
no ip dhcp client class-id
text - A text string. (Range: 1-32 characters)
Table 170: DHCP Commands
Command Group Function
DHCP Client Allows interfaces to dynamically acquire IPv4 address information
DHCP Relay Option 82 Relays DHCP requests from local hosts to a remote DHCP server
Table 171: DHCP Client Commands
Command Function Mode
DHCP for IPv4
ip dhcp client class-id Specifies the DHCP client identifier for an interface IC
ip dhcp restart client Submits a BOOTP or DHCP client request PE
DHCP for IPv6
ipv6 dhcp client rapid-commit
vlan
Specifies the Rapid Commit option for DHCPv6 message
exchange
GC