Monitoring DHCP Bindings
To monitor DHCP bindings, see:
- Monitoring DHCP Binding Information
- Monitoring DHCP Bindings (Displaying IP Address-to-MAC Address Bindings)
- Monitoring DHCP Bindings (Displaying DHCP Bindings Based on Binding ID)
- Monitoring DHCP Bindings (Local Server Binding Information)
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.
- externalDisplays DHCP external server bindings
- localDisplays DHCP local server bindings
- relay-proxyDisplays DHCP relay proxy bindings
- detailShows detailed information for the specified DHCP bindings
- binding-idDisplays information for the specified DHCP binding
Action
To display information about all DHCP bindings:
host1#show dhcp bindingBindingId HwAddress IpSubnet IpAddress Type State---------- -------------- -------- ------------- -------- -----3053453401 7000.0002.9365 0.0.0.0 192.168.0.90 external bound3053453402 7000.0003.9365 0.0.0.0 192.168.0.91 external bound3053453403 7000.0004.9365 0.0.0.0 192.168.0.92 external bound3053453404 7000.0005.9365 0.0.0.0 192.168.0.93 external bound3053453405 7000.0006.9365 0.0.0.0 192.168.0.94 external bound3053453406 7000.0007.9365 0.0.0.0 192.168.0.95 external bound3053453407 7000.0008.9365 0.0.0.0 192.168.0.96 external bound3053453408 7000.0009.9365 0.0.0.0 192.168.0.97 external bound3053453409 7000.000a.9365 0.0.0.0 192.168.0.98 external bound3053453410 7000.000b.9365 0.0.0.0 192.168.0.99 external bound3053453411 7000.000c.9365 0.0.0.0 192.168.0.100 external bound3053453412 7000.000d.9365 0.0.0.0 192.168.0.101 external bound3070230529 7000.0001.9365 0.0.0.0 192.168.0.2 relay-p bound3070230530 7000.0002.9365 0.0.0.0 192.168.0.90 relay-p bound3070230531 7000.0003.9365 0.0.0.0 192.168.0.91 relay-p bound3070230532 7000.0004.9365 0.0.0.0 192.168.0.92 relay-p bound3070230533 7000.0005.9365 0.0.0.0 192.168.0.93 relay-p bound3070230534 7000.0006.9365 0.0.0.0 192.168.0.94 relay-p boundTo display information about a specific DHCP binding ID:
host1#show dhcp binding 3070230530BindingId: 3070230530HwAddress: 7000.0002.9365IpSubnet: 0.0.0.0IpAddress: 192.168.0.90State: boundType: relay-pServer: 192.168.15.1Giaddr: 192.168.0.1Lease: 3600Remaining: 2079IpInterface: GigabitEthernet1/0/1.101ClientId: 45-41-48-00-01-70-00-00-02-93-65Interface:Relay Agent:Agent Circuit Id: test circuit idAgent Remote Id: test remote idVendor Specific: 01-02-03-04-05-06-07-08-09-0a-0b-0c-0d-0e-0f-10Unrecognized: 11-12-13-14-15-16-17-18-19-1a-1b-1c-1d-1e-1f-20Meaning
Table 99 lists the show dhcp binding command output fields.
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 bindingDhcp External Binding----------------------Hardware IpAddress Server Lease Expire Interface-------------- --------- -------- ----- ------ -----------3000.0001.9365 10.1.1.2 10.9.3.3 3600 3540 ip201.1.1.2Meaning
Table 100 lists the show ip dhcp-external binding command output fields
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-idDhcp External Binding Ids-------------------------BindingId Hardware IpAddress---------- -------------- ---------3193657721 3000.0001.9365 10.1.1.2Meaning
Table 101 lists the show ip dhcp-external binding-id command output fie
DHCP client binding ID option value associated with the user
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.3Dhcp Local Bindings-------------------Address Hardware Lease Interface State----------- ----------------- ----- ---------------- -------192.168.1.3 11-11-22-22-33-33 (600) fastEthernet 5/0 expiredTo display DHCP local server binding information for a specific interface:
host1#show ip dhcp-local binding interface fastethernet 5/0.2Dhcp Local Bindings-------------------Address Hardware Lease Interface State----------- ----------------- ----- ------------------ -------192.168.0.6 40-00-00-0b-00-01 240 fastEthernet 5/0.2 bound192.168.0.7 40-00-00-0c-00-01 240 fastEthernet 5/0.2 bound192.168.1.3 11-11-22-22-33-33 (600) fastEthernet 5/0.2 expiredMeaning
Table 102 lists the show ip dhcp-local binding command output fields.