Skip to content

Commit

Permalink
init specific files for mt7622 arch
Browse files Browse the repository at this point in the history
  • Loading branch information
sarcasticadmin committed Aug 23, 2023
1 parent 9569fe4 commit 5dcefbc
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 0 deletions.
108 changes: 108 additions & 0 deletions openwrt/files-mt7622/etc/config/network.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
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 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'wan'

config bridge-vlan
option device 'br-lan'
option vlan '100'
list ports 'lan1:t'
list ports 'lan2:t'
list ports 'lan3:t'
list ports 'lan4:t'
list ports 'wan:t'

config bridge-vlan
option device 'br-lan'
option vlan '500'
list ports 'lan1:t'
list ports 'lan2:t'
list ports 'lan3:t'
list ports 'lan4:t'
list ports 'wan: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 'lan1:t'
list ports 'lan2:t'
list ports 'lan3:t'
list ports 'lan4:t'
list ports 'wan:t'

config bridge-vlan
option device 'br-lan'
option vlan '501'
list ports 'lan1:t'
list ports 'lan2:t'
list ports 'lan3:t'
list ports 'lan4:t'
list ports 'wan: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 'lan1:t'
list ports 'lan2:t'
list ports 'lan3:t'
list ports 'lan4:t'
list ports 'wan:t'

config bridge-vlan
option device 'br-lan'
option vlan '503'
list ports 'lan1:t'
list ports 'lan2:t'
list ports 'lan3:t'
list ports 'lan4:t'
list ports 'wan: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'
31 changes: 31 additions & 0 deletions openwrt/files-mt7622/etc/config/wireless.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
config wifi-device 'radio0'
option type 'mac80211'
option phy 'wl0'
option channel '11'
option band '2g'
option htmode 'HT20'

config wifi-device 'radio1'
option type 'mac80211'
option phy 'wl1'
option channel '36'
option band '5g'
option htmode 'HE80'

config wifi-iface 'scaleslow_radio0'
option device 'radio0'
option ssid 'scale-public-slow'
option mode 'ap'
option network 'scaleslow'
option encryption 'psk2'
option key 'tuxlinux'
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 'tuxlinux'
option disabled '0'

0 comments on commit 5dcefbc

Please sign in to comment.