I want to organize interface aliases (for example eth0:1
) in separate files (/etc/network/conf.d/eth0_1.cnf
).
Anyone know the syntax to load this external file from /etc/network/interfaces
, or where I can find it? I do not want the interface to start automatically.
I've had a look at man interfaces(8)
without any luck. But I have seen this done before, and know it's possible.
I tried load /etc/network/conf.d/eth0_1.cnf
and include /etc/network/conf.d/eth0_1.cnf
directives, no dice.
OS is ubuntu 11. Any ideas are really appreciated.
Edit: Thanks. When I saw this done before it was on centos/rh.
Edit: source
looks promising but I can't seem to get it going. When I put:
source /etc/network/interfaces.d/*.conf
at the top of
/etc/network/interfaces
I get the error: /etc/network/interfaces:3: misplaced option
So maybe this didn't get included in Ubuntu 11.04? Where did you see that it was included there?
source
. See updated answer.