Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When setting up a web server with multiliple IP-based virtual hosts, I've always used the

eth0:x alias notation in /etc/network/interfaces. The wiki on my hosting provider states however that this is deprecated and one should now use the iproute tools.

Is this correct, and what's the difference between using aliases and using iproute?


share|improve this question
up vote 3 down vote accepted

Yes, device aliases are deprecated, and have been for a long time. My guess is that they'll probably never go away, because far too many people will go to their graves using aliases because that's what they've always done.

There's not a huge amount of difference between the two approaches, in practice; I've switched to using iproute mainly because it saves me having to think about interfaces -- rather than having to go "which alias has the IP address I want to remove?" or "what's the next alias interface name that's available?" I can just say "oh, I'd like another IP address or four on this interface" and "let's just delete that IP address from that interface". It's just plain neater, IMO.

share|improve this answer
I know there are examples all over the internet but it could be great to have a basic example of the two approaches – Doud Jan 31 '12 at 1:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.