@@ -39,9 +39,12 @@ bridge_config:
3939 # and two adapters connected
4040 # thus we get
4141 # eth0 for all the stuff (via tagged VLANs)
42- # eth1 for WAN
42+ # eth1 for all the stuff (via tagged VLANs) and WAN (also tagged VLAN)
43+ # Using br-lan as a bridge for also WAN sounds a bit hacky,
44+ # but makes life easier for defining "normal" VLANs on multiple ports
4345 ports :
4446 - eth0
47+ - eth1
4548 # TODO: do we need this?
4649 # This bridge won't ever be empty
4750 empty : true
@@ -57,6 +60,7 @@ networks:
5760 id : 99
5861 ports :
5962 - eth0:t*
63+ - eth1:t
6064 broadcast_mdns : true
6165 dhcp :
6266 start : 100
@@ -65,7 +69,11 @@ networks:
6569
6670 wan :
6771 proto : dhcp
68- device : eth1
72+ device : br-lan
73+ vlan :
74+ id : 90
75+ ports :
76+ - eth1:t
6977 collect_dns_statistics : false
7078
7179 guest :
@@ -78,6 +86,7 @@ networks:
7886 id : 20
7987 ports :
8088 - eth0:t
89+ - eth1:t
8190 type : bridge
8291 dhcp :
8392 start : 100
@@ -101,6 +110,7 @@ networks:
101110 id : 30
102111 ports :
103112 - eth0:t
113+ - eth1:t
104114 type : bridge
105115 # TODO: this is only added so home-assistant, IoT devices and homekit-hub can see each other
106116 broadcast_mdns : true
@@ -124,6 +134,7 @@ networks:
124134 id : 31
125135 ports :
126136 - eth0:t
137+ - eth1:t
127138 type : bridge
128139 # TODO: this is only added so home-assistant, IoT devices and homekit-hub can see each other
129140 broadcast_mdns : true
@@ -149,6 +160,7 @@ networks:
149160 id : 40
150161 ports :
151162 - eth0:t
163+ - eth1:t
152164 type : bridge
153165 # TODO: this is only added so home-assistant, IoT devices and homekit-hub can see each other
154166 broadcast_mdns : true
@@ -297,12 +309,17 @@ dhcp:
297309 ip : &homekit_homepod_one "192.168.1.11"
298310 dns : true
299311
312+ mainswitch :
313+ # mac: 'XX:XX:XX:XX:XX:XX'
314+ ip : " 192.168.1.2"
315+ dns : true
316+
300317 aprouter :
301318 # mac: 'XX:XX:XX:XX:XX:XX'
302319 ip : " 192.168.1.3"
303320 dns : true
304321
305- mainswitch :
322+ labswitch :
306323 # mac: 'XX:XX:XX:XX:XX:XX'
307324 ip : " 192.168.1.4"
308325 dns : true
0 commit comments