dhcp-lease-show
This command is used to display information about DHCP leases on the switch.
Syntax dhcp-lease-show
ip ip-address |
Specifies the IP address of a DHCP client. |
mac mac-address |
Specifies the MAC address of a DHCP client. |
port port-list |
Specifies the port of a DHCP client. |
vlan vlan-id |
Specifies the VLAN for the DHCP client. |
vnet vnet name |
Specifies the vNET name. |
bd bridge-domain name |
Specifies the bridge domain name. |
db-state unknown|free|active| |
Specifies the state of a DHCP client’s lease. |
start-time yyyy-mm-ddThh:mm:ss |
The beginning of the DHCP lease. |
end-time yyyy-mm-ddThh:mm:ss |
Specifies the end of the DHCP lease. |
server dhcp name |
Specifies the name of the DHCP server. |
server-ip ip-address |
Specifies the IP address of the DHCP server. |
server-port server-port-number |
Specifies the port number of the DHCP server. |
last-msg |discover|offer| |
Specifies the last message received from the DHCP client. |
last-msg-time date/time:yyyy-mm-ddThh:mm:ss |
Specifies the time of the last message received from the DHCP client. |
trusted-server|no-trusted-server |
Specifies the trusted DHCP server. |
Defaults None
Access CLI
History
Version 1.2.1 |
Command introduced. |
Version 2.6 |
The parameter, trusted-server, added. |
Version 5.1.1 |
The parameters, vnet and bd, added. |
Usage Used to display information about DHCP leases on the switch.
Examples To display information about the DHCP leases on the switch, use the following command:
CLI network-admin@switch > dhcp-lease-show
switch: pleiades25
ip: 172.16.23.2
mac: 66:0e:94:21:4a:7b
port: none
vlan: 11
db-state: active
start-time: 09:17:59
end-time: 10:17:59
server: red-dhcp
server-ip: 172.16.23.1
switch: pleiades25
ip: 172.16.23.3
mac: 00:25:90:63:8a:84
port: 10
vlan: 11
db-state: active
start-time: 09:20:05
end-time: 10:20:05
server: red-dhcp
server-ip: 172.16.23.1
server-port: 65
last-msg: ack
last-msg-time: 09:20:06