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: one Time elapsed since last save: 0d:0h:6m:52s Total number of active leases: 2 Address Pool State: active IP Address Exclusions: 192.168.1.45 IP Address Exclusions: 192.168.1.99 192.168.1.103 Pool Configured Options: bootfile: example.bin dhcp-default-router: 192.168.1.1 dns-server: 192.168.1.100 domain-name: example.com lease: 0 0 30 netbios-name-server: 192.168.1.101 network: 192.168.1.0 255.255.255.0 next-bootstrap-server: 192.168.1.102 tftp-server: 192.168.1.103
-
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 deployed address-pools: 1 Total number of undeployed address-pools: 0 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 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.brocade.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 Layer 3 device configuration using the
show run command.
device(config)# show run Current configuration: ! ver 08.0.40 ! module 1 icx7750-20-qxg-port-management-module module 2 icx7750-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
Parent topic: DHCP Servers