IP aliasing through /etc/network/interfaces ? - TechRepublic
Question
March 26, 2009 at 09:36 AM
neon samurai

IP aliasing through /etc/network/interfaces ?

by neon samurai . Updated 17 years, 3 months ago

I’m spending today learning about network IP aliases.

The concept is simple; one network card listening for multiple IP addresses.

The manual setup is also simple:
ifconfig eth0 up
ifconfig eth0 192.168.1.1
ifconfig eth0:0 192.168.1.2
ifconfig eth0:1 192.168.1.3

Everything I’ve found for this so far suggests dropping the ifconfig commands into the rc.local startup file to be rerun at each system boot.

Is there a way to do the aliases through /etc/network/interfaces instead of in a seporate file? I’d prefer my full network config be contained in a single file so I don’t have to deal with one running before the other and such.

This discussion is locked

All Comments