DHCP-client configuration tasks
294
SmartWare Software Configuration Guide
27 • DHCP configuration
Release or renew a DHCP lease manually (advanced)
After enabling the DHCP-client, the interface receives a DHCP lease from the DHCP-server. To manually
release and/or renew this DHCP lease use the command described below.
This procedure describes how to release and renew the DHCP lease
Mode:
interface
Note
If you are connected by Telnet over the IP interface on which you release the
DHCP lease, the connection is lost after entering the command
dhcp-client
release
. You need an other way (e.g. a serial connection) to connect to the
SmartNode again and to enter the command
dhcp-client renew
!
Get debug output from DHCP-client
This procedure describes how to enable/disable DHCP-client debug monitor
Mode:
Any
Example:
Enable DHCP debug monitor
This example shows how to enable the DHCP-client debug monitor and the debug output of the command
dhcp-client release
and
dhcp-client renew
.
node(cfg)#context ip
node(ctx-ip)[router]#interface eth0
node(if-ip)[eth0]#debug dhcp-client
node(if-ip)[eth0]#dhcp-client release
01:12:28 DHCPC > router/eth0 (Rels): Unicasting DHCP release (xid 490cb56b, secs
1).
01:12:29 DHCPC > router/eth0 (Rels): Shutting down.
01:12:29 DHCPC > router/eth0 (Rels): Tearing down IP interface
2001-01-01T01:12:30 : LOGINFO : Link down on interface eth0.
2001-01-01T01:12:30 : LOGINFO : Link up on interface eth0.
node(if-ip)[eth0]#dhcp-client renew
01:17:46 DHCPC > router/eth0 (Init): Tearing down IP interface
01:17:46 DHCPC > router/eth0 (Init): Broadcasting DHCP discover (xid 0f839e56, secs
0).
01:17:46 DHCPC > router/eth0 (Init): Requesting IP address 172.16.224.102
01:17:47 DHCPC > router/eth0 (Slct): Got offer from 172.16.1.10 for IP
172.16.224.102
01:17:47 DHCPC > router/eth0 (Slct): Selected offer for 172.16.224.102
01:17:47 DHCPC > router/eth0 (Slct): Broadcasting DHCP request (select) (xid
6ff42c38, secs 1).
Step
Command
Purpose
1
node
(if-ip)[
name
]#dhcp-client release
Releases DHCP lease. (See note)
2
node
(if-ip)[
name
]#dhcp-client renew
Gets a new DHCP lease from the DHCP-server
Step
Command
Purpose
1
node
(if-ip)[
name
]#[no] debug dhcp-client
Enables/disables the DHCP-client debug monitor