Hi,
I'm wondering if there is a possibility to assign an IP address via dhcp to
a subinterface (eg eth0:1).
When I configure my /etc/network/interfaces like:
iface eth1 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
network xxx.xxx.xxx.xxx
broadcast xxx.xxx.xxx.xxx
iface eth1:1 inet dhcp
I'm unable to assign an IP address to eth1:1. Even when I check the logfile
on my dhcp server, I don't see any requests. When I use a networksniffer, I
don't find anything.
However, when I tell my system to receive a dhcp address for eth1, there is
no problem.
here is what I get:
ifup eth1:1
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.
Please contribute if you find this software useful.
For info, please visit
http://www.isc.org/dhcp-contrib.html
ppp0: unknown hardware address type 512
ip6tnl0: unknown hardware address type 769
sit0: unknown hardware address type 776
gre0: unknown hardware address type 778
SIOCSIFFLAGS: Cannot assign requested address
ppp0: unknown hardware address type 512
ip6tnl0: unknown hardware address type 769
sit0: unknown hardware address type 776
gre0: unknown hardware address type 778
Bind socket to interface: No such device
exiting.
Failed to bring up eth1:1.
does anyone have a clue?
regards,
Jeroen
ps: is it possible to specify a differen hwaddr for a subinterface? I guess
this is not possible, but I'm wondering if anyone was able to do that.