Skip to content

Commit

Permalink
openwrt: init files for mt798x (OpenWrt One)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarcasticadmin committed Jan 26, 2025
1 parent 41b7880 commit 030a817
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 0 deletions.
87 changes: 87 additions & 0 deletions openwrt/files-mt798x/etc/config/network.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config device
option name 'br-lan'
option type 'bridge'
option stp '1'
list ports 'eth0'
list ports 'eth1'

config bridge-vlan
option device 'br-lan'
option vlan '100'
list ports 'eth0:t'
list ports 'eth1:t'

config bridge-vlan
option device 'br-lan'
option vlan '500'
list ports 'eth0:t'
list ports 'eth1:t'

config device
option name 'scaleslow-br'
option type 'bridge'
option stp '1'
list ports 'br-lan.100'
list ports 'br-lan.500'

config interface 'scaleslow'
option device 'scaleslow-br'
option proto 'none'

config bridge-vlan
option device 'br-lan'
option vlan '101'
list ports 'eth0:t'
list ports 'eth1:t'

config bridge-vlan
option device 'br-lan'
option vlan '501'
list ports 'eth0:t'
list ports 'eth1:t'

config device
option name 'scalefast-br'
option type 'bridge'
option stp '1'
list ports 'br-lan.101'
list ports 'br-lan.501'

config interface 'scalefast'
option device 'scalefast-br'
option proto 'none'

config bridge-vlan
option device 'br-lan'
option vlan '103'
list ports 'eth0:t'
list ports 'eth1:t'

config bridge-vlan
option device 'br-lan'
option vlan '503'
list ports 'eth0:t'
list ports 'eth1:t'

config device
option name 'mgmt-br'
option type 'bridge'
option stp '1'
list ports 'br-lan.103'
list ports 'br-lan.503'

config interface 'mgmt'
option device 'mgmt-br'
option proto 'dhcp'
option reqopts '224 225 226'

config interface 'mgmt6'
option device '@mgmt'
option proto 'dhcpv6'
option reqprefix 'no'
33 changes: 33 additions & 0 deletions openwrt/files-mt798x/etc/config/wireless.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/18000000.wifi'
option channel '11'
option band '2g'
option htmode 'HT20'
option num_global_macaddr '7'

config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/soc/18000000.wifi+1'
option channel '36'
option band '5g'
option htmode 'HE80'
option num_global_macaddr '7'

config wifi-iface 'scaleslow_radio0'
option device 'radio0'
option ssid 'scale-public-slow'
option mode 'ap'
option network 'scaleslow'
option encryption 'psk2'
option key 'penguins'
option disabled '0'

config wifi-iface 'scalefast_radio1'
option device 'radio1'
option ssid 'scale-public-fast'
option mode 'ap'
option network 'scalefast'
option encryption 'psk2'
option key 'penguins'
option disabled '0'

0 comments on commit 030a817

Please sign in to comment.