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
[Parameter]
switch
:
Behavior of the auto IP function
Setting value
Description
enable
Enable the auto IP function
disable
Disable the auto IP function
[Initial value]
auto-ip enable *VLAN #1 only
[Input mode]
interface mode
Command Reference | Layer 3 functions |
193