DXS-1210 Series Smart Managed Switch CLI Reference Guide
101
Example
This example shows how to set the host name option value to Site-A-Switch.
Switch# configure terminal
Switch(config)#interface vlan 100
Switch(config-if)# ip dhcp client hostname Site-A-Switch
Switch(config-if)#
12-4
ip dhcp client lease
This command is used to specify the preferred lease time for the IP address to request from the
DHCP server. Use the no form of this command to disable sending of the lease option.
ip dhcp client lease DAYS [HOURS [MINUTES]]
no ip dhcp client lease
Parameters
DAYS
Specifies the day duration of the lease. The range is from 0 to 10000
days.
HOURS
(Optional) Specifies the hour duration of the lease. The range is from 0
to 23 hours.
MINUTES
(Optional) Specifies the minute duration of the lease. The range is from
0 to 59 minutes.
Default
The lease option is not sent.
Command Mode
Interface Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
The setting only takes effect when the DHCP client is enabled to request the IP address for the
interface.
Example
This example shows how to get a 5 days release of the IP address.
Switch# configure terminal
Switch(config)#interface vlan 100
Switch(config-if)# ip address dhcp
Switch(config-if)# ip dhcp client lease 5
Switch(config-if)#
12-5
dhcp retry times
This command is used to specify the DHCP retry times. Use the no form of this command to set
DHCP retry times to defualt value.
dhcp retry times <(5-120)>
Содержание DXS-1210-10TS
Страница 1: ......
Страница 246: ...DXS 1210 Series Smart Managed Switch CLI Reference Guide 243 ...
Страница 260: ...DXS 1210 Series Smart Managed Switch CLI Reference Guide 257 ...