up vote 0 down vote favorite
share [g+] share [fb]

This is an exam question of Internet Protocol.

I thought the answer is "NO" but I want to make sure.

link|improve this question

No. It doesn't belong on any of the three sites. (At most on superuser.) Serverfault isn't about things that have to do with servers. Serverfault is about people who manage more than one server professionally and not as a hobby. – Georg Schölly Nov 15 '09 at 12:06
See the FAQ serverfault.com/faq: Server Fault is for system administrators and IT professionals, people who manage or maintain computers in a professional capacity. – Georg Schölly Nov 15 '09 at 12:07
Obviously, what we need is "Homework Fault" to take care of questions like this. – Evan Anderson Nov 15 '09 at 13:30
2  
RFC2131 is your friend. "Homework Fault" - :) – mh Nov 15 '09 at 14:16
2  
Why would you send this to Superuser? Its not just a dumping ground for crap we don't like. The topic of this question is around DHCP, were it a valid question, it would belong on this site. It's a bad, do my homework for me question, so it should be closed as such, not sent over to SU for them to close it properly. – Sam Nov 15 '09 at 18:59
feedback

migrated from serverfault.com Nov 16 '09 at 21:22

This question came from our site for system administrators and desktop support professionals.

closed as not a real question by afrazier, techie007, Sathya Oct 21 '11 at 9:27

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ.

5 Answers

You'll find what you're looking for here (and if you actually bother to read it you'll learn something, as opposed to just having the answer given to you).

link|improve this answer
feedback

A server of this protocol assigns an IP address per MAC address. So YES the protocol can support multiple IP addresses per Host given multiple NICs.

link|improve this answer
feedback

As far as I know the answer is no. not at the same time. (at least if the client have 1 nic)

link|improve this answer
feedback

Sure enough, a single DHCP server will not supply multiple addresses to one client and let it choose.

But if you have more than one DHCP servers on your network (for redundancy in legacy windows (2003) environments?) a client will often get one DHCPOFFER from each DHCP server. Then, the client chooses one server to send his DHCPREQUEST to. Usually the client takes the server which answered first.

link|improve this answer
hmmm.... there is a difference between a "Client" and a "Network Adapter" (NIC). A DHCP server doesn't really know about "Clients" per-se, just MAC addresses. Have a look at the "byte level" protocol definition to make sure. – jldupont Nov 16 '09 at 12:54
feedback

The answer is yes. It has to use a separate DHCPOFFER message for each IP address it wishes to offer. The client has to be programmed to wait some amount of time to see if it receives additional DHCPOFFER messages rather than responding to the first one.

This is most commonly used when there's more than one DHCP server. It is not unusual to have two DHCP servers on a subnet for redundancy. Often each DHCP server handles a different range of IP addresses. So the client may receive two offers, one from each server. To be general, the spec just says that a client may receive some number of offers from some number of servers and may choose which to accept.

Typically clients just accept the first offer they receive, but the specification is clear that they do not have to.

RFC 2131 3.1 3 says:

The client receives one or more DHCPOFFER messages from one or more servers. The client may choose to wait for multiple responses. The client chooses one server from which to request configuration parameters, based on the configuration parameters offered in the DHCPOFFER messages. The client broadcasts a DHCPREQUEST message that MUST include the 'server identifier' option to indicate which server it has selected, and that MAY include other options specifying desired configuration values. The 'requested IP address' option MUST be set to the value of 'yiaddr' in the DHCPOFFER message from the server.

By the way, it is entirely unreasonable to expect someone to know this off the top of their head without reference to the RFC. It's an obscure detail that isn't relevant to any real-world implementation that I know of.

In fact, it's possible that if you actually used it, it might confuse a client that hadn't been coded with this possibility in mind. For example, consider a client that has a table, indexed by server, that tracks the IP it was offered. The client might receive one DHCPOFFER, accept it, and then when it receives the second DHCPOFFER from the same server, it might overwrite the IP address entry for that server, losing track of the IP address it had accepted. This client is broken, of course, but such an error could lay undetected for years.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.