5.8 DHCP Commands

5.8.1 DHCP Client Commands

5.8.1.1 Get dhcp client info

Description:

Use this command to get DHCP client information for clients, on the specified interface, or for all the interfaces.

Command Syntax:

get dhcp client info [ifname <interface-name>]

Parameters:

NameDescription

This specifies the interface name on which DHCP is running. If this

is not specified, then information for clients on all such interfaces will

Ifname

be displayed.

<interface-namef>

Type : Optional

Valid values : eth-*,aggr-*

Mode:

Super-User, User

Example:

$get dhcp client info ifname eth-0

Output:

 

 

 

 

 

If-name

Server

Status

Lease Start Date Lease Time (sec)

------------------------------------------------------------

eth-0

1.1.1.1

Bound

Thu Jan 01 00:00:38 1970 500

Output Fields:

 

 

 

 

 

 

FIELD

 

 

Description

 

 

 

 

 

 

 

 

 

 

If-Name

 

 

This is an interface on which DHCP is running: It can be :

 

 

 

 

eth-*, aggr-*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

This specifies the address of the DHCP server with whom

 

 

Server

 

 

the client has obtained the IP address and other

 

 

 

 

 

 

configuratio.s

 

 

 

 

 

 

 

 

Status

 

 

This specifies the current state of the client. It may be:Init,

 

 

 

 

 

 

 

 

220

IDL series User Guide