cisco Catalyst 2960 — Enabling DHCP Server Port-Based Address Allocation

Procedure What to do next After enabling DHCP port-based address allocation on the switch, use the ip dhcp pool global configuration command to preassign IP addresses and to associate them to clients. Configuring DHCP Enabling DHCP Server Port-Based Address Allocation Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 ip dhcp use subscriber-id client-id Example:

Device(config)# ip dhcp use subscriber-id client-id Configures the DHCP server to globally use the subscriber identifier as the client identifier on all incoming DHCP messages. Step 4 ip dhcp subscriber-id interface-name Example: Device(config)# ip dhcp subscriber-id interface-name Automatically generates a subscriber identifier based on the short name of the interface. A subscriber identifier configured on a specific interface takes precedence over this command. Step 5 interface interface-type interface-number Example: Device(config)# interface gigabitethernet 1/0/1 Specifies the interface to be configured, and enters interface configuration mode.

Step 6 ip dhcp server use subscriber-id client-id Example: Device(config-if)# ip dhcp server use subscriber-id client-id Configures the DHCP server to use the subscriber identifier as the client identifier on all incoming DHCP messages on the interface. Step 7 end Example: Device(config-if)# end Exits interface configuration mode and returns to privileged EXEC mode. Configuring DHCP 20