forked from DGNum/liminix
vlan interfaces depend on parent
This commit is contained in:
parent
d290965711
commit
85b5edc39d
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,7 @@
|
||||||
"${openwrt}/target/linux/ramips/dts"
|
"${openwrt}/target/linux/ramips/dts"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
networkInterfaces = {
|
networkInterfaces = rec {
|
||||||
# lan and wan ports are both behind a switch on eth0
|
# lan and wan ports are both behind a switch on eth0
|
||||||
eth = interface { device = "eth0"; };
|
eth = interface { device = "eth0"; };
|
||||||
lan = interface {
|
lan = interface {
|
||||||
|
@ -51,12 +51,14 @@
|
||||||
device = "eth0.1";
|
device = "eth0.1";
|
||||||
link = "eth0";
|
link = "eth0";
|
||||||
id = "1";
|
id = "1";
|
||||||
|
dependencies = [eth];
|
||||||
};
|
};
|
||||||
wan = interface {
|
wan = interface {
|
||||||
type = "vlan";
|
type = "vlan";
|
||||||
device = "eth0.2";
|
device = "eth0.2";
|
||||||
id = "2";
|
id = "2";
|
||||||
link = "eth0";
|
link = "eth0";
|
||||||
|
dependencies = [eth];
|
||||||
};
|
};
|
||||||
wlan = interface {
|
wlan = interface {
|
||||||
device = "wlan0";
|
device = "wlan0";
|
||||||
|
|
Loading…
Reference in a new issue