mac
Commands for DHCP
305
Parameter: None.
Default: Enable.
Command Mode: Port mode.
Usage Guide: After the port disables DHCP services, directly drop all DHCP packets
sent by the port.
Example: The port disables DHCP services.
switch(config-if-ethernet1/3)#ip dhcp disable
26.1.16 ip dhcp excluded-address
Command: ip dhcp excluded-address <low-address> [<high-address>]
no ip dhcp excluded-address <low-address> [<high-address>]
Function: Specifies addresses excluding from dynamic assignment; the “no ip dhcp
excluded-address <low-address> [<high-address>]” command cancels the setting.
Parameters: <low-address> is the starting IP address, [<high-address>] is the ending
IP address.
Default: Only individual address is excluded by default.
Command mode: Global Mode
Usage Guide: This command can be used to exclude one or several consecutive
addresses in the pool from being assigned dynamically so that those addresses can be
used by the administrator for other purposes.
Example: Reserving addresses from 10.1.128.1 to 10.1.128.10 from dynamic
assignment.
Switch(config)#ip dhcp excluded-address 10.1.128.1 10.1.128.10
26.1.17 ip dhcp pool
Command: ip dhcp pool <name>
no ip dhcp pool <name>
Function: Configures a DHCP address pool and enter the pool mode; the “no ip dhcp
pool <name>“command deletes the specified address pool.
Parameters: <name> is the address pool name, up to 32 characters are allowed.
Command mode: Global Mode
Usage Guide: This command is used to configure a DHCP address pool under Global
Mode and enter the DHCP address configuration mode.
Example: Defining an address pool named “1”.
Switch(config)#ip dhcp pool 1
Switch(dhcp-1-config)#










