RE: Allocating Static IP Addresses with DHCP

From: Huan Pham (huan.pham@valuenet.com.au)
Date: Thu Feb 21 2008 - 22:34:15 ARST


Hi Walter,

Most likely, your printer does not use its MAC as the DHCP client
identifier, but a combination of its MAC and others. If you do "debug ip
dhcp server packet" on your router, and unplug/plug your printer, you will
be able to see the DHCP Client ID used by Printer. Use that value in your
router config, instead of the printer MAC, then you should be fine.

As the Client ID used by Printer dit not match the one defined in your
config, the router assigned the next available IP, in the DHCP dynamic pool,
which is 10.121.251.36.

Not sure the format used by your printer, but a Cisco router when works as a
DHCP client, use a long ID format of something like, which include MAC
address:
 
0063.6973.636f.2d30.3065.302e.3165.6238.2e65.6230.652d.4574.30

Check the link below for further details on the DHCP Client ID format.

http://www.cisco.com/en/US/docs/ios/12_4/cfg_fund/configuration/guide/cfhans
tl.html#wpxref59506

Cheers,
 
Huan
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Matemane, Walter
Sent: Thursday, 21 February 2008 4:25 PM
To: ccielab@groupstudy.com
Subject: Allocating Static IP Addresses with DHCP

Hi group,

Bellow is my configs to allocate static IP to my PC, but it is not
working as expected. It get allocated the next IP, i.e 10.121.251.36
instead of 10.121.251.35 as per the configs.

Do I miss something here?

ip dhcp excluded-address 10.121.251.33

ip dhcp excluded-address 10.121.251.34

!

ip dhcp pool Networks

   network 10.121.251.32 255.255.255.240

   domain-name XYZ

   default-router 10.121.251.33

   netbios-name-server 10.120.100.250

   dns-server 10.120.100.250

!

ip dhcp pool Printer

   host 10.121.251.35 255.255.255.240

   client-identifier 0014.22b7.9aad

   client-name IT-Printer

   domain-name XYZ

   default-router 10.121.251.33

   netbios-name-server 10.120.100.250

   dns-server 10.120.100.250

   netbios-node-type h-node

!

!

Thanks

Walter

****************************************************************************
*
*******
The e-mail and attachments are confidential and intended only for selected
recipients. If you have received it in error, you may not in any way
disclose
or rely on the contents. You may not keep, copy or distribute the e-mail.
Should you receive it, immediately notify the sender of the error and delete
the e-mail.Also note that this form of communication is not secure, it can
be
intercepted, and may not necessarily be free of errors and viruses in spite
of
reasonable efforts to secure this medium.

****************************************************************************
*
*******



This archive was generated by hypermail 2.1.4 : Sat Mar 01 2008 - 16:54:49 ARST