View previous topic :: View next topic |
Author |
Message |
birro n00b
Joined: 06 Sep 2003 Posts: 13 Location: SE/STK
|
Posted: Sat Mar 20, 2004 5:41 am Post subject: Two dhcp addresses on the same interface |
|
|
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 |
|
|
ben Apprentice
Joined: 10 Jun 2002 Posts: 285 Location: Switzerland
|
Posted: Sat Mar 20, 2004 8:28 am Post subject: |
|
|
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 |
|
|
|