ifconfig / eth0 aliases vs iproute2 / ip up?

The static IP address networking guide here recommends using interface aliases instead of ip add.

Comments like http://serverfault.com/a/484737 and http://inai.de/2008/02/19 make it seem like a really old deprecated mechanism.

Does anyone use ip add instead?

1 Reply

Either works. I use 'ip addr add' almost exclusively because it's easier to remember, and I can manually set preferredlft to divert outgoing traffic from such IP addresses, e.g. "ip addr add 2600:3c03::13:3702/64 dev eth0 preferredlft 0"

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct