Hi,
I want to have three networks:
- LAN (where I have the personal devices)
- GUESTS
- SONOS (where sonos speakers live)
So that LAN and GUESTS can both access SONOS, while they are still ignorant to each other.
Every time I reboot the Archer C6 v2
with OpenWrt 23.05.5
, I need to run the following commands to get eth0.4
up and running:
ip link add link eth0 name eth0.4 type vlan id 4
ip link set eth0.4 up
Lastly, I'm adding eth0.4
to the sonos bridge:
brctl addif br-sonos eth0.4
No matter what I try, all the other eth0.x
go up, but eth0.4
.
This is the /etc/config/network
: (not the whole thing, just what I think is relevant, but let me know if you need more)
config interface 'guests'
option proto 'static'
option ipaddr '10.1.1.1'
option netmask '255.255.255.0'
option device 'br-guests'
config switch_vlan
option device 'switch0'
option vlan '3'
option ports '0t'
option vid '3'
option description 'GUESTS'
config switch_vlan
option device 'switch0'
option vlan '4'
option ports '0t 5'
option vid '4'
option description 'SONOS'
config interface 'sonos'
option proto 'static'
option device 'br-sonos'
option ipaddr '192.168.100.1'
option netmask '255.255.255.0'
option type 'bridge'
config device
option name 'br-guests'
option type 'bridge'
list ports 'eth0.3'
list ports 'phy0-ap1'
config device
option type 'bridge'
option name 'br-sonos'
list ports 'eth0.4'
list ports 'phy1-ap1'
DHCP is also set up:
config dhcp 'sonos'
option interface 'sonos'
option start '2'
option limit '9'
option leasetime '12h'
I also have /etc/config/mdns-repeater
:
config mdns_repeater 'lan_sonos'
list interface 'br-lan'
list interface 'br-sonos'
config mdns_repeater 'guests_sonos'
list interface 'br-guests'
list interface 'br-sonos'
Once the system is up, when I run the commands at the top, everything is working flawlessly. eth0.4
has a sonos speaker connected. And as soon as I mdns-repeater br-lan br-sonos
, everything works flawlessly, at least from LAN.
I've noticed that when I set both:
mdns-repeater br-lan br-sonos
mdns-repeater br-guests br-sonos
Then only the first one works, but that's another stoy.
I am sure the speaker is connected to eth0.4
because as soon as I make that link available, the speaker becomes available in the network.
Why is eth0.4
not going up automatically? This drives me nuts.
Thank you so much in advance!