Multiple IPs on single interface
I am adding multiple IPs with different subnets to my single
interface on this machine.
Everything works fine except whenever I issue an `ifup eth0:1`
command I get this...
# ifup eth0:1
SIOCADDRT: File exists
Failed to bring up eth0:1.
And it's the first time I try to bring it up. But despite the
message, it works fine. The IP suddenly becomes pingable after that.
Doing `ifup eth0:0` is fine, no output.
The thing is if I remove eth0:1 stanza, and I try to do `ifup eth0:0`
it will say the same-thing.
Everything is working, I just want to know why I am getting that
error, and if it's safe to permanently save this interfaces file
despite the errors.
iface lo inet loopback
iface eth0 inet static
iface eth0:0 inet static
iface eth0:1 inet static
up route add -host 117.10.267.1 dev eth0
up route add default gw 117.10.267.1
P.S. IPs are fake, but it's pretty much what mine looks like.