[ale] A quick question about dhcp

Brian MacLeod nym.bnm at gmail.com
Fri Aug 21 10:45:08 EDT 2009


Guys,

>
> Is there away that I can dhcp not to issue ip, if the client-hostname
> = "BMC_DHCP"? I am only asking becuase the Dell BMC is killing me
> because, before we can get ip from our dhcpd server, all the ip are
> taken by the Dells BMC. Right now, we can't turn off the BMC because
> that would be an outage. So I have to set up in my dhcpd.conf file.
>
>

Well, sure, you can do it that way, and as long as you know that all the
BMCs will act in that manner (I am BMC_DHCP_, then what you do is set up a
class:

---
class "test1" {
match if option host-name = "BMC_DHCP";
}
---

Then set up a restriction on the pool of IP addresses:
pool {
    range 123.45.67.89 123.45.78.99;
    deny members of "test1";
}

---

To do this via MAC addresses:

----
class "test1" {
 match hardware;
}

subclass "test1" 1:00:11:22:33:44:57;      # (this subclass bit should NOT
be contained in the class definition)

----

But if the machine and BMC are sharing the NIC, then your blasting the OS's
ability to get DHCP as well.

The best bet would be to match a dhcp-client-identifier or
vendor-class-identifier because these typically do not change (well, the
users never really get a chance to ever change these, plus, this allows the
OS to use the NIC because the OS will change these identifiers when it goes
to use the card.  What the magic string is, I don't know in your case, but
for an example:

----

class "test1" {
      match if option vendor-class-identifier = "Hewlett-Packard JetDirect";
}

---

Salt to taste.  Might look at putting the line in without a match, and
checking your dhcp leases to see if you are getting that option back from
the BMCs in order to know what it is, or maybe it is in the documentation.
I've tried some Google searches myself to find it but to no avail.

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20090821/61984363/attachment.html 


More information about the Ale mailing list