(crossposted at arstechnica, nobody there too helpful )
I am trying to setup a linux box with a single eth interface (some intel nic) but I want to grab multiple dhcp addresses with it (not static). Is this possible? I am running ubuntu.
Here's my /etc/network/interfaces:
--------------
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth0:1
iface eth0:1 inet dhcp
hwaddress ether 08:00:46:18:3D:99
auto eth0:2
iface eth0:2 inet dhcp
hwaddress ether 08:00:46:E8:4D:09
-----------
When i try and bring up eth0:x I get the following:
SIOCSIFFLAGS: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address
Bind socket to interface: No such device
Failed to bring up eth0:1.
I also get this gem in /var/log/syslog:
Sep 10 23:08:32 tiger-laptop dhclient: There is already a pid file /var/run/dhclient.eth0:1.pid with pid 134993416
Sep 10 23:08:32 tiger-laptop dhclient: Internet Systems Consortium DHCP Client V3.0.4
Sep 10 23:08:32 tiger-laptop dhclient: Copyright 2004-2006 Internet Systems Consortium.
Sep 10 23:08:32 tiger-laptop dhclient: All rights reserved.
Sep 10 23:08:32 tiger-laptop dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Sep 10 23:08:32 tiger-laptop dhclient:
Sep 10 23:08:33 tiger-laptop dhclient: Bind socket to interface: No such device
I have tried a variety of comibinations. Putting statics on the eth0:x subints with dhcp or static on the eth0 int works just fine. IE this works:
eth0 as dhcp
eth0:1 as static
eth0:2 as static
eth0:x as static
or this works
eth0 as static
eth0:1 as static
eth0:2 as static
eth0:x as static
however, this does not work (and this is what I want):
eth0 as static or dhcp
eth0:x as dhcp
edited title for clarity
I am trying to setup a linux box with a single eth interface (some intel nic) but I want to grab multiple dhcp addresses with it (not static). Is this possible? I am running ubuntu.
Here's my /etc/network/interfaces:
--------------
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth0:1
iface eth0:1 inet dhcp
hwaddress ether 08:00:46:18:3D:99
auto eth0:2
iface eth0:2 inet dhcp
hwaddress ether 08:00:46:E8:4D:09
-----------
When i try and bring up eth0:x I get the following:
SIOCSIFFLAGS: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address
Bind socket to interface: No such device
Failed to bring up eth0:1.
I also get this gem in /var/log/syslog:
Sep 10 23:08:32 tiger-laptop dhclient: There is already a pid file /var/run/dhclient.eth0:1.pid with pid 134993416
Sep 10 23:08:32 tiger-laptop dhclient: Internet Systems Consortium DHCP Client V3.0.4
Sep 10 23:08:32 tiger-laptop dhclient: Copyright 2004-2006 Internet Systems Consortium.
Sep 10 23:08:32 tiger-laptop dhclient: All rights reserved.
Sep 10 23:08:32 tiger-laptop dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Sep 10 23:08:32 tiger-laptop dhclient:
Sep 10 23:08:33 tiger-laptop dhclient: Bind socket to interface: No such device
I have tried a variety of comibinations. Putting statics on the eth0:x subints with dhcp or static on the eth0 int works just fine. IE this works:
eth0 as dhcp
eth0:1 as static
eth0:2 as static
eth0:x as static
or this works
eth0 as static
eth0:1 as static
eth0:2 as static
eth0:x as static
however, this does not work (and this is what I want):
eth0 as static or dhcp
eth0:x as dhcp
edited title for clarity