Deployment Guide

Command History
Version Description
8.3.16.1 Introduced on the MXL 10/40GbE Switch IO Module.
Usage Information
The ip address dhcp command enables an Ethernet interface to acquire a DHCP server-assigned dynamic IP
address. This setting persists after a switch reboot. If you enter the shutdown command on the interface, DHCP
transactions are stopped and the dynamically-acquired IP address is saved. To display the dynamic IP address and
DHCP as the mode of IP address assignment, use the
show interface type slot/port command. If you
later enter the no shutdown] command and the lease timer for the dynamic IP address has expired, the IP
address is uncongured and the interface tries to acquire a new dynamic address from DHCP server.
You cannot congure a secondary (backup) IP address on an interface using the ip address dhcp command;
you must use the ip address command at the interface conguration level.
To release a DHCP-assigned IP address and remove the interface from being a DHCP client, use the no ip
address dhcp command. When you use the no ip address dhcp command:
The IP address dynamically acquired from a DHCP server is released from the interface.
The DHCP client is disabled on the interface; it can no longer acquire a dynamic IP address from a DHCP
server.
DHCP packet transactions on the interface are stopped.
To display the currently congure dynamic IP address and lease time, use the show ip dhcp lease command.
Other Commands Supported by the DHCP Client
The following commands are supported by the DHCP client.
clear ip dhcp client statistics
Display DHCP client statistics, including the number of DHCP messages sent and received on an interface.
Syntax
clear ip dhcp client statistics {all | interface type slot/port}
Parameters
all Clear DHCP client statistics on all DHCP client-enabled interfaces on the switch.
interface type slot/
port
Clear DHCP client statistics on the specied interface.
For a 10-GigabitEthernet Ethernet interface, enter TenGigabitEthernet then the
slot/port numbers; for example, tengigabitethernet 1/3.
For a 40-GigabitEthernet Ethernet interface, enter FortyGigabitEthernet then
the slot/port numbers; for example, fortygigabitethernet 0/2.
Defaults none
Command Modes EXEC Privilege
Command History
Version Description
8.3.16.1 Introduced on the MXL 10/40GbE Switch IO Module.
434 Dynamic Host Conguration Protocol (DHCP)