DHCP Client Commands
Use these M4500 CLI commands to configure the DHCP client vendor class identifier (Option 60) and display DHCP client and lease information.
dhcp client vendor-id-option
This command is used to enable the inclusion of the DCHP Option 60, Vendor Class Identifier, in the requests transmitted to the DHCP server by the DHCP client in this switch. Use the no form to restore to default value.
| Default | Not include DHCP Option 60 |
| Format | dhcp client vendor-id-option |
| Mode | Global Config |
no dhcp client vendor-id-option
This command is used to restore to default value.
| Format | no dhcp client vendor-id-option |
| Mode | Global Config |
dhcp client vendor-id-option-string
This command is used to set the DCHP Option 60 string in the requests transmitted to the DHCP server by the DHCP client in this switch. The length of the string is from 0 to 128 characters. Use the no form to restore to default value.
| Default | No string defined |
| Format | dhcp client vendor-id-option-string <string> |
| Mode | Global Config |
no dhcp client vendor-id-option-string
This command is used to restore to default value.
| Format | no dhcp client vendor-id-option-string |
| Mode | Global Config |
show dhcp client vendor-id-option
This command is used to display the configured administration mode of the vendor-id-option and the vendor-id string to be included in DHCP requests.
| Default | None |
| Format | show dhcp client vendor-id-option |
| Mode | Privilege Exec |
Display Message
| Parameter | Definition |
|---|---|
| DHCP Client Vendor Identifier Option | The administration mode of the Vendor ID Option |
| DHCP Client Vendor Identifier Option String | The string to be included in the Vendor ID Option |
show dhcp lease
This command is used to display the DHCP client lease parameters.
| Default | None |
| Format | show dhcp lease [interface {<slot/port> | vlan <vlan-id>}] |
| Mode | Privilege Exec |
Display Message
| Parameter | Definition |
|---|---|
| IP address | The IP address allocated by DHCP server and correspond interface. |
| Subnet mask | The IP subnet mask allocated by DHCP server for the interface. |
| DHCP lease server | The IPv4 address of the DHCP server that leased the address |
| State | The state of the DHCP client on this interface |
| DHCP transaction id | The transaction ID of the DHCP client |
| Lease | The time (in seconds) that the IP address was leased by the server |
| Renewal | The time (in seconds) when the next DHCP RENEW request is sent by DHCP client to renew the leased IP address |
| Rebind | The time (in seconds) when the DHCP Rebind process starts |
| Retry count | The number of times the DHCP client sends a DHCP REQUEST before the server responds |