hit counter script

Cisco Catalyst 2960 Software Configuration Manual page 547

Hide thumbs Also See for Catalyst 2960:
Table of Contents

Advertisement

Chapter 20
Configuring DHCP and IP Source Guard Features
Command
Step 7
show ip dhcp pool
Step 8
copy running-config startup-config
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. To change the address pool to nonrestricted, enter the no
reserved-only 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>
This example shows that the preassigned address was correctly reserved in the DHCP pool:
Switch# show ip dhcp pool dhcppool
Pool dhcp pool:
Utilization mark (high/low) : 100 / 0
Subnet size (first/next) : 0 / 0
Total addresses : 254
Leased addresses : 0
Excluded addresses : 4
Pending event : none
1 subnet is currently in the pool:
Current index
10.1.1.1
1 reserved address is currently in the pool
Address
10.1.1.7 Et1/0
For more information about configuring the DHCP server port-based address allocation feature, go to
Cisco.com, and enter Cisco IOS IP Addressing Services in the Search field to access the Cisco IOS
software documentation. You can also access the documentation:
http://www.cisco.com/en/US/docs/ios/ipaddr/command/reference/iad_book.html
OL-26520-01
IP address range
10.1.1.1 - 10.1.1.254
Client
Catalyst 2960 and 2960-S Switches Software Configuration Guide, Release 15.0(1)SE
Configuring DHCP Server Port-Based Address Allocation
Purpose
Verify DHCP pool configuration.
(Optional) Save your entries in the configuration file.
Leased/Excluded/Total
0
/ 4 / 254
20-23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 2960-s

Table of Contents