One MAC, two IP with DHCP (dhclient) how?

Peter B pb at
Fri Sep 4 18:12:56 UTC 2009

In an enviroment where the ethernet network interface is connected to a public
ethernet network (internet). And a IPv4 address assignment scheme is static.
One can simple add primary IP by:
  ifconfig <interface> inet

And an additional aliases with:
  ifconfig <interface> inet alias

This alias IP can then be used within a jail(8) enviroment.       
So far all is perfectly fine.

But in an enviroment where the primary IP is retrieved or set with DHCP by
  dhclient <interface>

How does one request an additional IP beside the primary one ..?
Setting an alias directly with ifconfig won't work because the upstream network
won't route it.

Should one set an explicit xid or Client ID somehow? and how is that done in
such case?
(option dhcp-client-identifier data-string; in dhclient.conf)

More information about the freebsd-questions mailing list