Routing and DHCP – How Does a Device Choose Between Multiple DHCP Pools?

dhcpip addressrouting

In a router , you can create and configure multiple DHCP pools each one with its own default route and dns server . And because the DHCP pool configuration is not specific to an interface in a router, I want to understand from which pool a device will pick its IP address . Is it random ? Or is it based on the address used by device to connect to the DHCP server ?

Best Answer

While configuring DHCP pool " default gateway information is configured for example

Switch(config) ip DHCP pool vlan30

Switch(config)# network 192.168.10.0 255.255.255.0

Switch(config)#ip default gateway 192.168.10.1

This last command tell the device to allocate ips from this DHCP scope for pc using default gateway 192.168.10.1

Related Topic