Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On OpenBSD, is it possible to request multiple IP-addresses via DHCP on a single physical interface? It looks like DHCP leased addresses can't be assigned as aliases. I though of creating a virtual interface and forward traffic to the physical interface, then run dhclient on the virtual interface (it doesn't matter if the second address is assigned to a virtual interface and not as an alias to the physical interface). Unfortunately I wasn't able to get it to work like that.

Any suggestions? How would you do it?

share|improve this question
    
This might help: old.nabble.com/IP-Aliasing-with-DHCP-td26312405.html –  tomeduarte Dec 3 '11 at 23:32
1  
Thanks, I tried the idea with the bridge and two vether interfaces, however it didn't work. I added these virtual interface to set skip in pf.conf, is there something more I'd need to consider? –  watain Dec 4 '11 at 9:15
add comment

1 Answer

up vote 3 down vote accepted

DHCP requests are tied to MAC addresses, so normally a single interface can only request a single IP. I would see if you could get OpenBSD to create two subinterfaces each with their own MAC addresses and DHCP requests. Other option is to create a VLAN trunk so you can request a DHCP address in separate VLANs.

share|improve this answer
add comment

Your Answer

 
discard

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.