User Manual

Table Of Contents
[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.
[Example]
Use the DHCP client to assign an IPv4 address to VLAN #100.
SWR2311P(config)#interface vlan100
SWR2311P(config-if)#ip address dhcp
7.1.4 Show DHCP client status
[Syntax]
show dhcp lease
[Input mode]
unprivileged EXEC mode, priviledged 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]
[Example]
Show the current DHCP client status.
SWR2311P>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
7.1.5 Set auto IP function
[Syntax]
auto-ip switch
no auto-ip
Command Reference | Layer 3 functions | 215