Release Or Renew A Dhcp Lease Manually (Advanced); Get Debug Output From Dhcp-Client - Patton electronics SmartNode Series Software Configuration Manual

Software for smartnode series
Hide thumbs Also See for SmartNode Series:
Table of Contents

Advertisement

SmartWare Software Configuration Guide

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
Step
1
node(if-ip)[name]#dhcp-client release
2
node(if-ip)[name]#dhcp-client renew
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
release
SmartNode again and to enter the command

Get debug output from DHCP-client

This procedure describes how to enable/disable DHCP-client debug monitor
Mode: Any
Step
1
node(if-ip)[name]#[no] debug dhcp-client Enables/disables the DHCP-client debug monitor
Example: Enable DHCP debug monitor
This example shows how to enable the DHCP-client debug monitor and the debug output of the command
and
dhcp-client release
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
2001-01-01T01:12:30 : LOGINFO
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):
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).
DHCP-client configuration tasks
Command
. You need an other way (e.g. a serial connection) to connect to the
Command
.
dhcp-client renew
: Link down on interface eth0.
: Link up on interface eth0.
Purpose
Releases DHCP lease. (See note)
Gets a new DHCP lease from the DHCP-server
dhcp-client renew
Requesting IP address 172.16.224.102
27 • DHCP configuration
dhcp-client
!
Purpose
294

Advertisement

Table of Contents
loading

This manual is also suitable for:

Smartware release 5.1

Table of Contents