Hi.
I have OpenWrt 22.03.5 installed on a Linksys MR8300.
It's basically a default configuration plus a guest network as per:
At the moment all the switch ports are assigned to the default "br-lan" device.
I can assign all the switch ports to the "br-guest" device and this works fine.
I would like to assign a single port to the "br-guest" device, leaving the rest assigned to the default "br-lan" device.
Network devices are as follows:
ls -l /sys/class/net
lrwxrwxrwx 1 root root 0 Aug 20 12:26 br-guest -> ../../devices/virtual/net/br-guest
lrwxrwxrwx 1 root root 0 Aug 20 12:26 br-lan -> ../../devices/virtual/net/br-lan
lrwxrwxrwx 1 root root 0 Jan 1 1970 eth0 -> ../../devices/platform/soc/c080000.edma/net/eth0
lrwxrwxrwx 1 root root 0 Jan 1 1970 eth1 -> ../../devices/platform/soc/c080000.edma/net/eth1
lrwxrwxrwx 1 root root 0 Jan 1 1970 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx 1 root root 0 Aug 20 12:26 wlan0 -> ../../devices/platform/soc/40000000.pci/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0
lrwxrwxrwx 1 root root 0 Aug 20 12:26 wlan0-1 -> ../../devices/platform/soc/40000000.pci/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0-1
lrwxrwxrwx 1 root root 0 Aug 20 12:26 wlan1 -> ../../devices/platform/soc/a000000.wifi/net/wlan1
lrwxrwxrwx 1 root root 0 Aug 20 12:26 wlan1-1 -> ../../devices/platform/soc/a000000.wifi/net/wlan1-1
lrwxrwxrwx 1 root root 0 Aug 20 12:26 wlan2 -> ../../devices/platform/soc/a800000.wifi/net/wlan2
lrwxrwxrwx 1 root root 0 Aug 20 12:26 wlan2-1 -> ../../devices/platform/soc/a800000.wifi/net/wlan2-1
Network configuration is as follows:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd82:73ef:4cc9::/48'
config device
option name 'br-lan'
option type 'bridge'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
option peerdns '0'
list dns '9.9.9.9'
list dns '149.112.112.112'
config interface 'wan6'
option device 'eth1'
option proto 'dhcpv6'
option reqaddress 'none'
option reqprefix 'auto'
list dns '2620:fe::fe'
list dns '2620:fe::9'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 0'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '5 0'
config device 'guest_dev'
option name 'br-guest'
option type 'bridge'
list ports 'eth0'
config interface 'guest'
option device 'br-guest'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
I believe I have to configure a new VLAN as per:
but everything I've tried results in all the switch ports becoming unusable.
This is my latest configuration attempt:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd82:73ef:4cc9::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
option peerdns '0'
list dns '9.9.9.9'
list dns '149.112.112.112'
config interface 'wan6'
option device 'eth1'
option proto 'dhcpv6'
option reqaddress 'none'
option reqprefix 'auto'
list dns '2620:fe::fe'
list dns '2620:fe::9'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 0'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '5 0'
config device 'guest_dev'
option name 'br-guest'
option type 'bridge'
list ports 'eth0.3'
config interface 'guest'
option device 'br-guest'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config switch_vlan
option device 'switch0'
option vlan '3'
option ports '4 0'
This seems like such a basic request that I'm sure someone has already asked this question but, I've hunted high and low and cannot find an answer, so apologies if I've missed it.
If anyone can advise either that I'm going about this all wrong, or what I've misconfigured / not configured, it would be much appreciated.
Thanks in advance.