User Manual

Table Of Contents
A secondary address cannot be set for interfaces that are set as DHCP clients.
If this command is executed with the "no" syntax, the DHCP client setting is deleted.
[Note]
The lease time requested from the DHCP server is fixed at 72 hours. However, the actual lease time will depend on the setting
of the DHCP server.
Even if this command is used to obtain the default gateway, DNS server, and default domain name from the DHCP server, the
settings of the ip route, ip name-server, ip domain-name commands take priority.
If an IPv4 address cannot be obtained from the DHCP server even by using this command, then an IPv4 link local address
(169.254.xxx.xxx/16) is automatically assigned only to VLAN interfaces for which the Auto IP function is enabled.
This command cannot be used if the stack function is enabled and the stack port is using the Auto IP function.
[Example]
Use the DHCP client to assign an IPv4 address to VLAN #100.
SWR2310(config)#interface vlan100
SWR2310(config-if)#ip address dhcp
7.1.4 Show DHCP client status
[Syntax]
show dhcp lease
[Input mode]
unprivileged EXEC mode, privileged EXEC mode
[Description]
Shows the DHCP client status. The following items are shown.
Interface that is operating as a DHCP client
Assigned IPv4 address
Lease expiration time
Lease renewal request time
Lease rebinding time
DHCP server name
Information obtained as DHCP options
Net mask
Default gateway
Lease time
DNS server
DHCP server ID
Domain name
[Note]
This command cannot be used if the stack function is enabled.
[Example]
Show the current DHCP client status.
SWR2310>show dhcp lease
Interface vlan1
--------------------------------------------------------------------------------
IP Address: 192.168.100.2
Expires: 2018/01/01 00:00:00
Renew: 2018/01/01 00:00:00
Rebind: 2018/01/01 00:00:00
Server:
Options:
subnet-mask 255.255.255.0
default-gateway 192.168.100.1
dhcp-lease-time 259200
domain-name-servers 192.168.100.1
dhcp-server-identifier 192.168.100.1
domain-name example.com
Command Reference | Layer 3 functions | 233