I want to configure a vlan interface by using a file in /etc/network/interfaces.d/
, e.g.
vlan1cfg
:
auto vlan1
iface vlan1 inet static
address <some addr>
netmask <some mask>
vlan-raw-device <some bridge>
post-up route add -net 224.0.0.0/4 vlan1
post-up ip addr add <some addr>/25 dev vlan1
post-up ip addr add <some addr>/25 dev vlan1
and conditionally on some systems I want to add an additional address to this interface by using an additional config file, e.g.
vlan1cfgadd
:
auto vlan1
iface vlan1 inet static
post-up ip addr add <some other addr>/25 dev vlan1
If I issue ifquery -v vlan1
it reports the parsing of all files, but only the commands of 1st parsed file are reported.
I thought the commands are collected from all files.
I want to do this setting in the network configuration at one place, is that possible somehow ?