Per Port DHCP Address Allocation
No new CLI added. The device on interface FA0/0/1 should get 192.0.2.90.
The minimum configuration looks like the following example:
conf t
ip dhcp excluded-address 192.0.2.1 192.0.2.80
ip dhcp excluded-address 192.0.2.100 192.0.2.255
ip dhcp use subscriber-id client-id
end
conf t
ip dhcp pool 16
network 192.0.2.0 255.255.255.0
address 192.0.2.90 client-id Fa0/0/1 ascii
end
The show output CLI appears like the following:
Router#show ip dhcp binding
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type State Interface
Hardware address/
User name
192.0.2.90 0046.6130.2f30.2f31 Infinite Manual Active Unknown
Note |
The client-id has to be the short-name of the interface. Use "Fa" for FastEthernet interface. Use "Gi" for GigabitEthernet interface. |