From d1108488d44eb2db96e52ac3a8abc9f2fa9d7462 Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Mon, 10 Oct 2022 17:14:23 +0300 Subject: [PATCH] linksys: 2022, openwrt22 network config --- files/linksys-single-trunk/etc/config/network | 78 ++++++++++++++----- 1 file changed, 58 insertions(+), 20 deletions(-) diff --git a/files/linksys-single-trunk/etc/config/network b/files/linksys-single-trunk/etc/config/network index e4f7496..0a4c19c 100644 --- a/files/linksys-single-trunk/etc/config/network +++ b/files/linksys-single-trunk/etc/config/network @@ -4,8 +4,15 @@ config interface 'loopback' option ipaddr '127.0.0.1' option netmask '255.0.0.0' + +config device + option name 'br-lan' + option type 'bridge' + option ipv6 '0' + list ports 'lan1' + config interface 'management' - option ifname 'eth0' + option ifname 'br-lan.20' option proto 'static' option ipaddr '' option netmask '255.255.255.0' @@ -13,25 +20,56 @@ config interface 'management' option dns '10.20.0.1' option ipv6 'no' -config interface 'wireless' - option ifname 'eth1' - option proto 'none' - option ipv6 'no' - option force_link '1' - option type 'bridge' -config switch - option name 'switch0' - option reset '1' - option enable_vlan '1' +config bridge-vlan + option device 'br-lan' + option vlan '1' + list ports 'lan1' + +config bridge-vlan + option device 'br-lan' + option vlan '20' + list ports 'lan1:t' + +config bridge-vlan + option device 'br-lan' + option vlan '21' + list ports 'lan1:t' + +config bridge-vlan + option device 'br-lan' + option vlan '23' + list ports 'lan1:t' -config switch_vlan - option device 'switch0' - option vlan '20' - option ports '4t 5' - -config switch_vlan - option device 'switch0' - option vlan '22' - option ports '4t 6' +config interface 'userwifi' + option proto 'none' + option device 'br-lan.21' + option defaultroute '0' + option peerdns '0' + option delegate '0' + +config interface 'videowifi' + option proto 'none' + option device 'br-lan.23' + option defaultroute '0' + option peerdns '0' + option delegate '0' + +config device + option name 'br-lan.20' + option type '8021q' + option ifname 'br-lan' + option vid '20' + +config device + option name 'br-lan.21' + option type '8021q' + option ifname 'br-lan' + option vid '21' + +config device + option name 'br-lan.23' + option type '8021q' + option ifname 'br-lan' + option vid '23'