Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Example… I have a Ubuntu LAMP server that will need several IP address for the sake of hosting SSL sites. Can I assign more than 1 address with a DHCP reservation?

share|improve this question
Um, why are you using DHCP to configure IPs on a server? This is generally considered to be a Bad Thing... – voretaq7 Jul 1 '10 at 17:16
DHCP on a production LAMP server, not a good idea in the least. So many thing could go wrong... – Chris S Jul 1 '10 at 21:41
up vote 2 down vote accepted

Not multiple per MAC but if you're VLAN tagging & trunking your NICs then your DHCP server will think they're different adapters.

share|improve this answer
+1, Possible, but still a bad idea for this situation (being a LAMP box and all) – Chris S Jul 1 '10 at 21:41

In my home setup I'm using dnsmasq as a local dns and dhcp server. It has an option through which you can specify an IP address based on what it's called a "dhcp client identifier", i.e. a string which gets passed by the dhcp client to the dhcp server when requesting a lease.

I'm using it to assign the same ip to all of my laptops at home, either if they are on the wire or on the wifi connection (different MACs, same IP).

Hence, what I'm thinking of about your problem is you defining as many aliases of your NIC (eth0, eth0:1, eth0:2 ...) as needed and then having dhclient request a lease for each alias specifying every time a different client id (for example, "eth0", "eth0_1", "eth0_2" ...).

I'm not if this works and someone might well prove me wrong, but I'd give this a try: quick and easy to test.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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