Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Bind IP/MAC to DHCP POOL

hi all,

i'm trying to statically bind a PC to the router's DHCP pool but it's giving me an error.

appreciate anyone's advise the correct way to enable this feature. TIA!

Wireless LAN adapter Wireless Network Connection:

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : DW1501 Wireless-N WLAN Half-Mini Card

   Physical Address. . . . . . . . . : EC-55-F9-01-F9-0C

   DHCP Enabled. . . . . . . . . . . : Yes

   Autoconfiguration Enabled . . . . : Yes

   Link-local IPv6 Address . . . . . : fe80::591:a686:6d91:7d3b%13(Preferred)

   IPv4 Address. . . . . . . . . . . : 192.168.1.26(Preferred)

   Subnet Mask . . . . . . . . . . . : 255.255.255.0

   Lease Obtained. . . . . . . . . . : Friday, November 08, 2013 10:46:42 PM

   Lease Expires . . . . . . . . . . : Saturday, November 09, 2013 10:46:42 PM

   Default Gateway . . . . . . . . . : 192.168.1.1

   DHCP Server . . . . . . . . . . . : 192.168.1.1

   DHCPv6 IAID . . . . . . . . . . . : 367810041

   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-16-FF-27-59-78-2B-CB-D4-A0-85

   DNS Servers . . . . . . . . . . . : 8.8.8.8

                                       4.2.2.2

   NetBIOS over Tcpip. . . . . . . . : Enabled

----

R1#sh run | s dhcp

no ip dhcp use vrf connected

ip dhcp excluded-address 192.168.1.1 192.168.1.20

ip dhcp pool LAN_POOL

   import all

   network 192.168.1.0 255.255.255.0

   default-router 192.168.1.1

   dns-server 8.8.8.8 4.2.2.2

R1#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#ip dhcp pool LAN_POOL

R1(dhcp-config)#host 192.168.1.25 255.255.255.0

% This command may not be used with network, origin, vrf, or relay pools.

R1(dhcp-config)#host 192.168.1.25 255.255.255.255

% This command may not be used with network, origin, vrf, or relay pools.

R1(dhcp-config)#client-identifier EC55.F901.F90C

% This command may not be used with network, origin, vrf, or relay pools.

Everyone's tags (4)
2 REPLIES

Re: Bind IP/MAC to DHCP POOL

Hi John,

for static entries, you need separate host-pools in addition to the network-pool:

ip dhcp pool LAN_POOL_025

host 192.168.1.25 255.255.255.0

client-identifier EC55.F901.F90C

! potentially: client-identifier 01EC.55F9.01F9.0C

http://www.cisco.com/en/US/docs/ios/12_4t/ip_addr/configuration/guide/htdhcpsv.html

"Manual bindings are just special address pools. There is no limit on the number of manual bindings, but you can only configure one manual binding per host pool."

HTH

Rolf

Re: Bind IP/MAC to DHCP POOL

I'l like to add one more remark about the format of the client-indentifier:

"The client identifier is formed by concatenating the media type and the MAC address. For example, the Microsoft client identifier for Ethernet address b708.1388.f166 is 01b7.0813.88f1.66, where 01 represents the Ethernet media type."

http://www.cisco.com/en/US/docs/ios-xml/ios/ipaddr/command/clear_ip_route_dhcp_through_ip_arp_entry_learn.html#GUID-B97FC1CE-C7E5-4AA1-AC53-9799257C763F

891
Views
5
Helpful
2
Replies
CreatePlease login to create content