Administrator Guide

Layer 2 Switching Commands 329
Command Mode
Privileged Exec
User Guidelines
If the interface has a leased IPv4 address when this command is issued, the
DHCP client sends a DHCP REQUEST message telling the DHCP server
that it wants to continue using the IP address. If DHCP is enabled on the
interface, but the interface does not currently have an IPv4 address (for
example, if the address was previously released), then the DHCP client sends
a DISCOVER to acquire a new address. If DHCP is not enabled on the
interface, then the command fails and displays the following error message:
DHCP is not enabled on this interface
The renew dhcp option is applicable only for routing interfaces and not for
the Out-of-Band port. Use the
ip address (Out-of-Band)
none
command on
the Out-of-Band interface to clear a DHCP-acquired address.
Examples
The first example is for routing interfaces.
console#renew dhcp vlan 2
The second example is for an out-of-band port.
console#renew dhcp out-of-band
show dhcp lease
Use the show dhcp lease command in Privileged Exec mode to display IPv4
addresses leased from a DHCP server.
Syntax
show dhcp lease [interface { out-of-band | vlan
vlan-id
} ]
out-of-band
—The out-of-band interface.
vlan
—The VLAN and VLAN ID.
Default Configuration
This command has no default configuration.
2CSNXXX_SWUM204.book Page 329 Monday, January 25, 2016 1:25 PM