Displaying DHCP server information

The following DHCP show commands can be entered from any level of the CLI.
Use one of the commands to view DHCP server information. The commands do not need to be entered in the specified order.
  • Display a specific active lease, or all active leases.
    device# show ip dhcp-server binding
    Bindings from all pools:
    IP Address Client-ID/ Lease expiration Type
    Hardware address
    192.168.1.2 0000.005d.a440 0d:0h:29m:31s Automatic
    192.168.1.3 0000.00e1.26c0 0d:0h:29m:38s Automatic
  • Display information about a specific address pool or all address pools.
    device# show ip dhcp-server address-pools
    Showing all address pool(s):
    
                           Pool Name:  dhcp
        Time elapsed since last save:  00d:00h:00m:00s
       Total number of active leases:  0
                  Address Pool State:  pending
    
             Pool Configured Options:
                               lease:  1 0 0
                             network:  10.10.10.0 255.255.255.0
    option   3 (Default-Router     ):  ip 10.10.10.1
    option   6 (Domain Server      ):  ip 192.168.1.100
    option  15 (Domain Name        ):  ascii example.com
    option  44 (NETBIOS Name Srv   ):  ip 192.168.1.101
    option  60 (Vendor Class Id    ):  hex 00
    option  67 (Bootfile-Name      ):  ascii example.bin
    option 150 (TFTP Server Addr   ):  ip 192.168.1.103
    option 176 (IP Tele-VoiceSrvr  ):  MCIPADD=10.10.10.1,MCPORT=5,HTTPSRVR=20.20.20.1,L2QAUD=5,
    option 242 (IP Tele-DataSrvr   ):  MCIPADD=10.10.10.1,
    
  • Display the lease binding database that is stored in flash memory.
    device# show ip dhcp-server flash
    Address Pool Binding:
    IP Address Client-ID/ Lease expiration Type
    Hardware address
    192.168.1.2 0000.005d.a440 0d:0h:18m:59s Automatic
    192.168.1.3 0000.00e1.26c0 0d:0h:19m:8s Automatic
  • Display information about active leases, deployed address pools, undeployed address pools, and server uptime.
    device# show ip dhcp-server summary
    DHCP Server Summary:
    Total number of active leases: 2
    Total number of address-pools: 1
    Server uptime: 0d:0h:8m:27s
  • Display DHCP configuration information on a Layer 2 device.
    device(config)# show ip
    Switch IP address: 10.44.16.116
    Subnet mask: 255.255.255.0
    Default router address: 10.44.16.1
    TFTP server address: 10.44.16.41
    Configuration filename: foundry.cfg
    Image filename: None
  • Display IP address information for a Layer 2 device.
    device(config)# show ip address
    IP Address Type Lease Time Interface
    10.44.16.116 Dynamic 174 0/1/1
  • Display IP address information for a Layer 3 device.
    device(config)# show ip address
    IP Address Type Lease Time Interface
    10.44.3.233 Dynamic 672651 0/1/2
    10.0.0.1 Static N/A 0/1/15
  • Display the Layer 2 device configuration using the show run command.
    device(config)# show run
    Current configuration:
    !
    ver 08.0.40
    !
    module 1 icx-24-port-base-module
    !
    !ip dns domain-list englab.ruckuswireless.com
    ip dns domain-list companynet.com
    ip dns server-address 10.31.2.10
    ip route 0.0.0.0/0 10.25.224.1
    !ipv6 raguard policy p1
    !ipv6 dns server-address 200::1 8000::60 7000::61
    !!
    end
  • Display the Layer 3 device configuration using the show run command.
    device(config)# show run
    Current configuration:
    !
    ver 08.0.40
    !
    module 1 icx7650-20-qxg-port-management-module
    module 2 icx7650-qsfp-6port-qsfp-240g-module
    !
    vlan 1 name DEFAULT-VLAN by port
    !
    ip dns server-address 10.44.3.111
    interface ethernet 0/1/2
    ip address 10.44.3.233 255.255.255.0 dynamic
    ip dhcp-client lease 691109
    interface ethernet 0/1/15
    ip address 10.0.0.1 255.0.0.0
    ip helper-address 1 10.44.3.111
    !
    end