cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
909
Views
0
Helpful
3
Replies

DHCP problem !

Spinu Viorel
Level 1
Level 1

Hello,

I have a 1812 cisco router, I have 2 vlans (172.31.0.0/24 and 172.31.2.0/24) and I configured this :

ip dhcp pool dhcp-vlan2

import all

network 172.31.0.0 255.255.255.0

domain-name domain1.com

dns-server x.x.x.x

default-router 172.31.0.1

lease infinite

!

ip dhcp pool dhcp-vlan3

import all

network 172.31.2.0 255.255.255.0

domain-name domain2.com

dns-server x.x.x.x

default-router 172.31.2.1

lease infinite

ip dhcp pool name1

host 172.31.2.20

hardware-address 01ab.cdef.ghij.kl

client-name name2

The problem is that this manual binding in the end is not working; the host with that MAC gets another IP everytime I renew the dhcp request.

Before setting this manual binding I had that host setup staticly with that IP.

Where is the problem?

1 Accepted Solution

Accepted Solutions

Richard Burts
Hall of Fame
Hall of Fame

Spinu

Try using the client-identifier instead of the hardware-address command.

I found this is the command reference:

Microsoft DHCP clients require client identifiers instead of hardware addresses. 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. For a list of media type codes, refer to the "Address Resolution Protocol Parameters" section of RFC 1700, Assigned Numbers.

Examples

The following example specifies the client identifier for Mac address b7.0813.8811.66 in dotted-hexadecimal notation:

client-identifier 01b7.0813.8811.66

If you want more detail you can start with this link:

http://www.cisco.com/en/US/docs/ios/12_1/iproute/command/reference/1rddhcp.html#wp1017792

HTH

Rick

HTH

Rick

View solution in original post

3 Replies 3

Richard Burts
Hall of Fame
Hall of Fame

Spinu

Try using the client-identifier instead of the hardware-address command.

I found this is the command reference:

Microsoft DHCP clients require client identifiers instead of hardware addresses. 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. For a list of media type codes, refer to the "Address Resolution Protocol Parameters" section of RFC 1700, Assigned Numbers.

Examples

The following example specifies the client identifier for Mac address b7.0813.8811.66 in dotted-hexadecimal notation:

client-identifier 01b7.0813.8811.66

If you want more detail you can start with this link:

http://www.cisco.com/en/US/docs/ios/12_1/iproute/command/reference/1rddhcp.html#wp1017792

HTH

Rick

HTH

Rick

many thanksr burts ! u realy helped me !

Spinu

I am glad that you got it worked out and that my suggestion was helpful. I find that sometimes the Cisco documentation is very good about telling you how to configure a particular function (hardware-address and client-identifier) and not so good at helping distinguish when you use one and when you use the other.

Thank you for using the rating system to indicate that your problem was resolved (and thanks for the rating). It makes the forum more useful when people can read a problem and can know that there were responses which did resolve the problem.

The forum is an excellent place to learn about Cisco networking. I encourage you to continue your participation in the forum.

HTH

Rick

HTH

Rick