-
-
Save odevodyssey/52603be8753164035b260b7fcbc24629 to your computer and use it in GitHub Desktop.
RPi4 DSA VLANs Switch Config - OpenWrt 21.02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config dnsmasq | |
option domainneeded '1' | |
option boguspriv '1' | |
option filterwin2k '0' | |
option localise_queries '1' | |
option rebind_protection '1' | |
option rebind_localhost '1' | |
option local '/lan/' | |
option domain 'lan' | |
option expandhosts '1' | |
option nonegcache '0' | |
option authoritative '1' | |
option readethers '1' | |
option leasefile '/tmp/dhcp.leases' | |
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto' | |
option nonwildcard '1' | |
option localservice '1' | |
option ednspacket_max '1232' | |
config dhcp 'lan' | |
option interface 'lan' | |
option start '100' | |
option limit '150' | |
option leasetime '12h' | |
option dhcpv4 'server' | |
option dhcpv6 'server' | |
option ra 'server' | |
list ra_flags 'managed-config' | |
list ra_flags 'other-config' | |
option ignore '1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 'fd6e:a865:4473::/48' | |
config device | |
option name 'br-lan' | |
option type 'bridge' | |
list ports 'eth0' | |
list ports 'eth1' | |
config interface 'lan' | |
option proto 'static' | |
option ipaddr '192.168.1.2’ | |
option netmask '255.255.255.0' | |
option ip6assign '60' | |
option device 'br-lan.1' | |
config bridge-vlan | |
option device 'br-lan' | |
option vlan '1' | |
list ports 'eth0' | |
list ports 'eth1:t' | |
config bridge-vlan | |
option device 'br-lan' | |
option vlan '2' | |
list ports 'eth1:t' | |
config interface 'lan2' | |
option proto 'none' | |
option device 'br-lan.2' |
@robinsmith3 the order should not matter in the network config, or any of the configs for that matter, to my understanding. I've changed the order around before for the configs, and haven't seen it cause any problems.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In network, does the order of the configs matter?