Dell POWEREDGE M1000E User Manual

Page 564

Advertising
background image

22-22

Cisco Catalyst Blade Switch 3130 and 3032 for Dell Software Configuration Guide

OL-13270-03

Chapter 22 Configuring DHCP Features and IP Source Guard

Configuring DHCP Server Port-Based Address Allocation

Beginning in privileged EXEC mode follow these steps to preassign an IP address and to associate it to
a client identified by the interface name.

To disable DHCP port-based address allocation, use the no ip dhcp use subscriber-id client-id global
configuration command. To disable the automatic generation of a subscriber identifier, use the no ip
dhcp subscriber-id interface-name
global configuration command. To disable the subscriber identifier
on an interface, use the no ip dhcp server use subscriber-id client-id interface configuration command.

To remove an IP address reservation from a DHCP pool, use the no address ip-address client-id string
DHCP pool configuration command.

In this example, a subscriber identifier is automatically generated, and the DHCP server ignores any
client identifier fields in the DHCP messages and uses the subscriber identifier instead. The subscriber
identifier is based on the short name of the interface and the client preassigned IP address 10.1.1.7.

switch# show running config

Building configuration...

Current configuration : 4899 bytes

!

version 12.2

!

hostname switch

!

no aaa new-model

clock timezone EST 0

ip subnet-zero

ip dhcp relay information policy removal pad

no ip dhcp use vrf connected

ip dhcp use subscriber-id client-id

ip dhcp subscriber-id interface-name

ip dhcp excluded-address 10.1.1.1 10.1.1.3

!

ip dhcp pool dhcppool

network 10.1.1.0 255.255.255.0

address 10.1.1.7 client-id “Et1/0” ascii

<output truncated>

Command

Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

ip dhcp pool poolname

Enter DHCP pool configuration mode, and define the
name for the DHCP pool. The pool name can be a
symbolic string (such as Engineering) or an integer
(such as 0).

Step 3

network network-number [mask | /prefix-length]

Specify the subnet network number and mask of the
DHCP address pool.

Step 4

address ip-address client-id string [ascii]

Reserve an IP address for a DHCP client identified by
the interface name.

string—can be an ASCII value or a hexadecimal
value.

Step 5

end

Return to privileged EXEC mode.

Step 6

show ip dhcp pool

Verify DHCP pool configuration.

Step 7

copy running-config startup-config

(Optional) Save your entries in the configuration file.

Advertising