I'm trying to set an alias for an interface facing local network, but when i try to bring it up I receive this error:
RTNETLINK answers: File exists
Failed to bring up eth1:0.
Here is my /etc/network/interfaces # Loopback device: auto lo iface lo inet loopback
# device: eth0
auto eth0
iface eth0 inet static
address X.X.X.X
broadcast X.X.X.X
netmask 255.255.255.0
gateway X.X.X.1
# device: eth1
auto eth1
iface eth1 inet static
address 10.0.0.1
netmask 255.255.252.0
# device: eth1:0
auto eth1:0
iface eth1:0 inet static
address 10.0.0.2
netmask 255.255.252.0
# default route to access subnet
up route add -net X.X.X.X netmask 255.255.255.0 gw X.X.X.1 eth0
ip addr. The ip does work though. – Dana the Sane Mar 22 '12 at 15:29