Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Two dhcp addresses on the same interface
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
birro
n00b
n00b


Joined: 06 Sep 2003
Posts: 13
Location: SE/STK

PostPosted: Sat Mar 20, 2004 5:41 am    Post subject: Two dhcp addresses on the same interface Reply with quote

Maybe this question is stupid, but does anyone know if it's possible (by using virtual interfaces) to have more
than one address assigned to the same (physical) interface from a dhcp server?

for example:

eth0 xxx.xxx.xxx.xxx (external address assigned from dhcp server)
eth0:0 xxx.xxx.xxx.xxx (also external address assigned from dhcp server)
and so on..

Just adding iface_eth0:0="dhcp" into /etc/conf.d/net did not work. (tried both after/before bringing the virtual interface up)

I have heard that dhcp servers only gives out one lease per mac address, so if that's true this might not be possible at all.

Please enlighten me =)

Regards
Back to top
View user's profile Send private message
ben
Apprentice
Apprentice


Joined: 10 Jun 2002
Posts: 285
Location: Switzerland

PostPosted: Sat Mar 20, 2004 8:28 am    Post subject: Reply with quote

the dhcp server will give you an address based on your MAC address. So you may have to fake another MAC addresse for the second IP you need.

BTW I can understand why one may want two FIXED IP addresses, but why do you want two dynamic IP adresses on the same interfaces.

HTH

Ben
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum