
DHCP Relay Agent Configuration Guide 199
[SwitchA-Vlan-interface1] dhcp select interface
# Configure a static
.0.10
#Specify the lease duration, DNS server address, and WINS server address in the DHCP interface address pool.
Complete Configuration #
interface
ip address 192.168.0.1 255.255.255.0 dhcp select interface
dhcp server
dhcp server
#
dhcp server
#
Precautions After all the addresses in the interface address pool have been assigned, the DHCP server looks up IP addresses from the global address pool containing the network segment of the interface address pool for the DHCP clients. As a result, the IP addresses obtained from the global address pool and those obtained from the interface address pool are not on the same network segment, so the clients cannot communicate with each other.
In this example, the number of clients requesting IP addresses from
DHCP Relay Agent Since some DHCP packets are broadcast, DHCP is only applicable to the situation
Configuration Guide where DHCP clients and the DHCP server are in the same network segment, that is, you need to deploy at least one DHCP server for each network segment, which is not economical.
DHCP relay agent is designed to address this problem. It enables DHCP clients in a subnet to communicate with the DHCP server in another subnet to obtain IP addresses. In this way, the DHCP clients in multiple networks can use the same DHCP server, which is