In article <(E-Mail Removed)>,
Cedric Blancher wrote:
>> But still there is a difference between 1) Adding the IP using "ifconfig
>> interface:id" 2) Adding the IP using "ip addr add" and the
>> route using "route add"
>
> Except the fact you do not create an aliased interface, I don't think
> there's any difference. I personaly prefer use ifconfig for I can see
> aliases as eth0:idx.
I use /sbin/ip to add my aliases, but I use the ethX:alias syntax.

A
compromise, as it were. It's also necessary if you want to use the alias
interface with iptables. Well, I think you can only use the whole ethX
interface, which includes any :alias.
I use aliases for different services, so they're portable if I need to
move them to another machine (set up the service on B, stop the service
on A, cancel the alias on A, set up the alias on B, start the service on
B ... and everyone goes on as if nothing had happened.) If the alias is
in the same subnet no special routing is needed.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply