DHCP Server Configuration Examples 809
n
Using the save command does not save DHCP server lease information. Therefore,
when the system boots up or the reset dhcp server ip-in-use command is
executed, no lease information will be available in the configuration file. In this
case, the server will deny the request for lease extension from a client and the
client needs to request an IP address again.
DHCP Server
Configuration
Examples
DHCP networking involves two types:
■ The DHCP server and client are on the same subnet and exchange messages
directly.
■ The DHCP server and client are not on the same subnet and they communicate
with each other via a DHCP relay agent.
The DHCP server configuration for the two types is the same.
Network requirements
■ The DHCP server (Switch A) assigns IP address to clients in subnet 10.1.1.0/24,
which is subnetted into 10.1.1.0/25 and 10.1.1.128/25.
■ The IP addresses of VLAN-interfaces 1 and 2 on Switch A are 10.1.1.1/25 and
10.1.1.129/25 respectively.
■ In the address pool 10.1.1.0/25, the address lease duration is ten days and
twelve hours, domain name suffix aabbcc.com, DNS server address 10.1.1.2,
gateway 10.1.1.126, and WINS server 10.1.1.4.
■ In the address pool 10.1.1.128/25, the address lease duration is five days,
domain name suffix aabbcc.com, DNS server address 10.1.1.2, and gateway
address 10.1.1.254, and there is no WINS server address.
■ The domain name and DNS server address on the subnets 10.1.1.0/25 and
10.1.1.128/25 are the same. Therefore, the domain name suffix and DNS
server address can be configured only for the subnet 10.1.1.0/24. The subnet
10.1.1.128/25 can inherit the configuration of the subnet 10.1.1.0/24.
n
In this example, the number of requesting clients connected to VLAN-interface 1
should be less than 122, and that of clients connected to VLAN-interface 2 less
than 124.
Clear information about IP
address conflicts
reset dhcp server conflict { all | ip
ip-address }
Available in user
view
Clear information about
dynamic bindings
reset dhcp server ip-in-use { all | ip
ip-address | pool [ pool-name ]}
Clear information about
DHCP server statistics
reset dhcp server statistics
To do… Use the command… Remarks