How to View, Modify, and Reclaim DHCP IP Pools and Configure Management Addresses on a Layer 2 Switch
This guide demonstrates how to display DHCP pool information, adjust lease durations using interface or global methods, reclaim allocated IP addresses, and configure a management IP address on a layer‑2 switch via VLAN and VLANIF settings, including command‑line examples.
The following instructions show how to manage DHCP address pools and configure a management IP address on a layer‑2 switch using the command‑line interface.
1. View the details of an IP pool named pool1 :
display ip pool name pool1
Pool-name : pool1
Pool-No : 2
Lease : 3 Days 0 Hours 0 Minutes // lease period 3 days
Domain-name : -
DNS-server0 : 10.10.10.5
DNS-server1 : 10.10.10.6
NBNS-server0 : 20.20.20.5
Netbios-type : -
Position : Local Status : Unlocked
Gateway-0 : 10.10.10.10
Mask : 255.255.255.0
VPN instance : --
---
Start End Total Used Idle(Expired) Conflict Disable
10.10.10.1 10.10.10.254 253 0 253(0) 0 02. Modify the DHCP lease time using the interface method (example for VLANIF100):
[swt] interface vlanif 100
[swt-Vlanif100] ip address 10.10.10.10 24
[swt-Vlanif100] dhcp select interface
[swt-Vlanif100] dhcp server lease day 2 hour 2 minute 303. Modify the DHCP lease time using the global method (example for pool global1 ):
[swt] ip pool global1
[swt-ip-pool-global1] lease day 2 hour 2 minute 304. Reclaim (release) IP addresses from a DHCP pool:
• Using a global address pool:
<swt> reset ip pool name pool1
[swt] ip pool pool1
[swt-ip-pool-pool1] undo static-bind ip-address 10.1.1.5 // remove static bind• Using an interface address pool:
<swt> reset ip pool interface vlanif100 10.1.1.5 // release IP
[swt] interface vlanif 100
[swt-Vlanif100] undo dhcp server static-bind ip-address 10.1.1.5 // remove static bind5. Configure a management IP address on the switch by assigning an address to a VLAN interface:
[swt] interface Vlanif 1 // enter VLANIF 1 view
[swt-Vlanif1] ip address 100.1.1.1 24 // set management addressThese commands allow administrators to inspect, adjust, and clean up DHCP pools as well as set up a reachable management address on a layer‑2 switch.
Practical DevOps Architecture
Hands‑on DevOps operations using Docker, K8s, Jenkins, and Ansible—empowering ops professionals to grow together through sharing, discussion, knowledge consolidation, and continuous improvement.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.