H3C s3100 series Command Manual page 510

Hide thumbs Also See for s3100 series:
Table of Contents

Advertisement

dhcp server expired { day day [ hour hour [ minute minute ] ] | unlimited }
undo dhcp server expired
In system view, use the following commands to configure the lease time of the IP addresses in multiple
DHCP interface address pools.
dhcp server expired { day day [ hour hour [ minute minute ] ] | unlimited } { interface interface-type
interface-number [ to interface-type interface-number ] | all }
undo dhcp server expired { interface interface-type interface-number [ to interface-type
interface-number ] | all }
View
System view, VLAN interface view
Parameters
day day: Specifies the number of days. The day argument ranges from 0 to 365.
hour hour: Specifies the number of hours. The hour argument ranges from 0 to 23.
minute minute: Specifies the number of minutes. The minute argument ranges from 0 to 59.
unlimited: Specifies that the lease time is unlimited. (But actually, the system limits the maximum lease
time to about 25 years.)
interface interface-type interface-number [ to interface-type interface-number ]: Specifies the
interface(s), through which you can specify the corresponding interface address pool(s). The
interface-type argument specifies an interface type; the interface-number argument specifies an
interface number; the interface interface-type interface-number [ to interface-type interface-number ]
keyword and argument combination specifies an interface range.
all: Specifies all interface address pools.
Description
Use the dhcp server expired command to configure the lease time of the IP addresses dynamically
obtained in the specified DHCP interface address pool(s).
Use the undo dhcp server expired command to restore the default lease time.
The default lease time is one day.
Related commands: expired.
Examples
# Enter system view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
# Set the lease time of the IP addresses dynamically obtained in all DHCP interface address pools to be
1 day, 2 hours and 3 minutes.
[Sysname] dhcp server expired day 1 hour 2 minute 3 all
# Set the lease time of the IP addresses dynamically obtained from DHCP interface address pools on
VLAN-interface 2 through VLAN-interface 5 to be 2 days.
[Sysname-Vlan-interface1] quit
[Sysname] dhcp server expired day 2 interface Vlan-interface 2 to Vlan-interface 5
1-10

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents