[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Monitoring DHCP Bindings

To monitor DHCP bindings, see:

Monitoring DHCP Binding Information

Purpose

Display DHCP client binding information.

Use the following keywords to qualify the binding information you want to display. All bindings are displayed if you do not specify an optional keyword.

Action

To display information about all DHCP bindings:

host1#show dhcp binding
BindingId      HwAddress      IpSubnet   IpAddress         Type     State
----------   --------------   --------   -------------   --------   -----
3053453401   7000.0002.9365   0.0.0.0    192.168.0.90    external   bound
3053453402   7000.0003.9365   0.0.0.0    192.168.0.91    external   bound
3053453403   7000.0004.9365   0.0.0.0    192.168.0.92    external   bound
3053453404   7000.0005.9365   0.0.0.0    192.168.0.93    external   bound
3053453405   7000.0006.9365   0.0.0.0    192.168.0.94    external   bound
3053453406   7000.0007.9365   0.0.0.0    192.168.0.95    external   bound
3053453407   7000.0008.9365   0.0.0.0    192.168.0.96    external   bound
3053453408   7000.0009.9365   0.0.0.0    192.168.0.97    external   bound
3053453409   7000.000a.9365   0.0.0.0    192.168.0.98    external   bound
3053453410   7000.000b.9365   0.0.0.0    192.168.0.99    external   bound
3053453411   7000.000c.9365   0.0.0.0    192.168.0.100   external   bound
3053453412   7000.000d.9365   0.0.0.0    192.168.0.101   external   bound
3070230529   7000.0001.9365   0.0.0.0    192.168.0.2     relay-p    bound
3070230530   7000.0002.9365   0.0.0.0    192.168.0.90    relay-p    bound
3070230531   7000.0003.9365   0.0.0.0    192.168.0.91    relay-p    bound
3070230532   7000.0004.9365   0.0.0.0    192.168.0.92    relay-p    bound
3070230533   7000.0005.9365   0.0.0.0    192.168.0.93    relay-p    bound
3070230534   7000.0006.9365   0.0.0.0    192.168.0.94    relay-p    bound

To display information about a specific DHCP binding ID:

host1#show dhcp binding 3070230530
BindingId:   3070230530
HwAddress:   7000.0002.9365
IpSubnet:    0.0.0.0
IpAddress:   192.168.0.90
State:       bound
Type:        relay-p
Server:      192.168.15.1
Giaddr:      192.168.0.1
Lease:       3600
Remaining:   2079
IpInterface: GigabitEthernet1/0/1.101
ClientId:    45-41-48-00-01-70-00-00-02-93-65
Interface:
Relay Agent: 

Agent Circuit Id: test circuit id
Agent Remote Id:  test remote id
Vendor Specific:  01-02-03-04-05-06-07-08-09-0a-0b-0c-0d-0e-0f-10
Unrecognized:     11-12-13-14-15-16-17-18-19-1a-1b-1c-1d-1e-1f-20

Meaning

Table 99 lists the show dhcp binding command output fields.

Table 99: show dhcp binding Output Fields 
Field Name
Field Description

BindingId

Client binding ID

HwAddress

MAC address of client

IpSubnet

For DHCP local server bindings, the subnet of the IP address assigned to the client; 0.0.0.0 for DHCP external server and DHCP relay proxy bindings

IpAddress

IP address assigned to client

State

State of the DHCP client binding

Type

Binding type; external (DHCP external server), local (DHCP local server), or relay-p (DHCP relay proxy)

Server

IP address of the DHCP server that allocated the client IP address

Giaddr

For DHCP relay proxy the IP address of the DHCP relay proxy; for DHCP local server bindings, the IP address of the DHCP relay that sent the packet or 0.0.0.0 if the packet comes from the client; for DHCP external server bindings, the giaddr from the DHCP packet

Lease

Total time for which the IP address is available, in seconds

Remaining

Time remaining on the current lease, in seconds

IpInterface

IP interface that is associated with the client

ClientId

DHCP Option 61 received from the client

Interface

Subinterface for DHCP local server bindings; does not apply to DHCP external server and DHCP relay proxy

Relay Agent

Indicates Relay Agent Information option (option 82)

Agent Circuit Id

Suboption 1 of the DHCP Relay Agent information option

Agent Remote Id

Suboption 2 of the DHCP relay agent information option

Vendor Specific

Suboption 9 of the DHCP relay agent information option


Related Topics

Monitoring DHCP Bindings (Displaying IP Address-to-MAC Address Bindings)

NOTE: This command is deprecated and might be removed completely in a future release. The function provided by this command has been replaced by the show dhcp binding command.


Purpose

Display the mapping between the assigned IP address and the MAC address of the subscriber's computer.

Action

To display the DHCP IP address to MAC address bindings:

host1#show ip dhcp-external binding

                        Dhcp External Binding
                        ----------------------
   Hardware      IpAddress    Server    Lease   Expire    Interface
--------------   ---------   --------   -----   ------   -----------
3000.0001.9365   10.1.1.2    10.9.3.3   3600    3540     ip201.1.1.2

Meaning    

Table 100 lists the show ip dhcp-external binding command output fields

Table 100: show ip dhcp-external binding Output Fields 
Field Name
Field Description

Hardware

MAC address of subscriber's computer

IpAddress

Subscriber client's IP address

Server

DHCP server's address

Lease

Time for which the IP address is available, in seconds

Expire

Time remaining on the current lease, in seconds

Interface

Interface that is associated with the subscriber's computer


Related Topics

Monitoring DHCP Bindings (Displaying DHCP Bindings Based on Binding ID)

NOTE: This command is deprecated and might be removed completely in a future release. The function provided by this command has been replaced by the show dhcp binding command.


Purpose

Display binding information for all DHCP clients.

Action

To display DHCP binding information:

host1(config)#show ip dhcp-external binding-id

      Dhcp External Binding Ids
      -------------------------
  Binding
    Id          Hardware      IpAddress
----------   --------------   ---------  
3193657721   3000.0001.9365   10.1.1.2

Meaning    

Table 101 lists the show ip dhcp-external binding-id command output fie

Table 101: show ip dhcp-external binding-id 
Field Name
Field Description

Binding Id

DHCP client binding ID option value associated with the user

Hardware

MAC address of the subscriber's computer

IpAddress

IP address assigned to the client


Related Topics

Monitoring DHCP Bindings (Local Server Binding Information)

NOTE: This command is deprecated and might be removed completely in a future release. The function provided by this command has been replaced by the show dhcp binding command.


Purpose

Display DHCP local server binding information for DHCP local server clients. Optionally, specify an IP address or an interface to display binding information for a particular address or interface.

Action

To display DHCP local server binding information for a specific IP address:

host1#show ip dhcp-local binding 192.168.1.3

                        Dhcp Local Bindings
                        -------------------
  Address         Hardware        Lease      Interface        State
-----------   -----------------   -----   ----------------   -------
192.168.1.3   11-11-22-22-33-33   (600)   fastEthernet 5/0   expired

To display DHCP local server binding information for a specific interface:

host1#show ip dhcp-local binding interface fastethernet 5/0.2

                        Dhcp Local Bindings
                        -------------------
  Address         Hardware        Lease      Interface          State
-----------   -----------------   -----   ------------------   -------
192.168.0.6   40-00-00-0b-00-01   240     fastEthernet 5/0.2   bound
192.168.0.7   40-00-00-0c-00-01   240     fastEthernet 5/0.2   bound
192.168.1.3   11-11-22-22-33-33   (600)   fastEthernet 5/0.2   expired

Meaning    

Table 102 lists the show ip dhcp-local binding command output fields.

Table 102: show ip dhcp-local binding Output Fields 
Field Name
Field Description

Address

IP address

Hardware

MAC address of subscriber's computer

Lease

Infinite, or the number of seconds in which the IP address is available; grace period is shown in parentheses for clients in a grace period

Interface

Interface whose statistics are reported

State

Binding state; expired or released state for clients currently in the grace period


Related Topics


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]