cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
7823
Views
10
Helpful
3
Replies

Bind IP/MAC to DHCP POOL

johnlloyd_13
Level 9
Level 9

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.

3 Replies 3

Rolf Fischer
Level 9
Level 9

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

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

ip dhcp pool Static

client-identifier 01C0.74AD.39CF.9B

host 192.168.50.6 255.255.255.0

 

 

I am doing you described steps but an error "An already binding exists for 192.168.50.6"

what to do now

 

The phone already has IP assigned to it