dap: fix network/vlans
This commit is contained in:
parent
0ca80cd84d
commit
2b4d9b3b8a
|
@ -1,14 +1,14 @@
|
||||||
config interface 'loopback'
|
config interface 'loopback'
|
||||||
option ifname 'lo'
|
option device 'lo'
|
||||||
option proto 'static'
|
option proto 'static'
|
||||||
option ipaddr '127.0.0.1'
|
option ipaddr '127.0.0.1'
|
||||||
option netmask '255.0.0.0'
|
option netmask '255.0.0.0'
|
||||||
|
|
||||||
|
|
||||||
config device
|
config device
|
||||||
option name 'br-lan'
|
option name 'br-lan'
|
||||||
option type 'bridge'
|
option type 'bridge'
|
||||||
option ipv6 '0'
|
option ipv6 '0'
|
||||||
list ports 'eth0'
|
list ports 'eth0'
|
||||||
|
|
||||||
config interface 'management'
|
config interface 'management'
|
||||||
|
@ -20,56 +20,61 @@ config interface 'management'
|
||||||
option dns '10.20.0.1'
|
option dns '10.20.0.1'
|
||||||
option ipv6 'no'
|
option ipv6 'no'
|
||||||
|
|
||||||
|
config switch
|
||||||
|
option name 'switch0'
|
||||||
|
option reset '1'
|
||||||
|
option enable_vlan '0'
|
||||||
|
|
||||||
config bridge-vlan
|
config switch_vlan
|
||||||
option device 'br-lan'
|
option device 'switch0'
|
||||||
option vlan '1'
|
option vlan '1'
|
||||||
list ports 'eth0'
|
option ports '2 0'
|
||||||
|
|
||||||
config bridge-vlan
|
|
||||||
option device 'br-lan'
|
|
||||||
option vlan '20'
|
|
||||||
list ports 'eth0:t'
|
|
||||||
|
|
||||||
config bridge-vlan
|
|
||||||
option device 'br-lan'
|
|
||||||
option vlan '21'
|
|
||||||
list ports 'eth0:t'
|
|
||||||
|
|
||||||
config bridge-vlan
|
|
||||||
option device 'br-lan'
|
|
||||||
option vlan '23'
|
|
||||||
list ports 'eth0:t'
|
|
||||||
|
|
||||||
config interface 'userwifi'
|
|
||||||
option proto 'none'
|
config bridge-vlan
|
||||||
option device 'br-lan.21'
|
option device 'br-lan'
|
||||||
option defaultroute '0'
|
option vlan '20'
|
||||||
option peerdns '0'
|
list ports 'eth0:t'
|
||||||
option delegate '0'
|
|
||||||
|
config bridge-vlan
|
||||||
config interface 'videowifi'
|
option device 'br-lan'
|
||||||
option proto 'none'
|
option vlan '21'
|
||||||
option device 'br-lan.23'
|
list ports 'eth0:t'
|
||||||
option defaultroute '0'
|
|
||||||
option peerdns '0'
|
config bridge-vlan
|
||||||
option delegate '0'
|
option device 'br-lan'
|
||||||
|
option vlan '23'
|
||||||
config device
|
list ports 'eth0:t'
|
||||||
option name 'br-lan.20'
|
|
||||||
option type '8021q'
|
config interface 'userwifi'
|
||||||
option ifname 'br-lan'
|
option proto 'none'
|
||||||
option vid '20'
|
option device 'br-lan.21'
|
||||||
|
option defaultroute '0'
|
||||||
config device
|
option peerdns '0'
|
||||||
option name 'br-lan.21'
|
option delegate '0'
|
||||||
option type '8021q'
|
|
||||||
option ifname 'br-lan'
|
config interface 'videowifi'
|
||||||
option vid '21'
|
option proto 'none'
|
||||||
|
option device 'br-lan.23'
|
||||||
config device
|
option defaultroute '0'
|
||||||
option name 'br-lan.23'
|
option peerdns '0'
|
||||||
option type '8021q'
|
option delegate '0'
|
||||||
option ifname 'br-lan'
|
|
||||||
option vid '23'
|
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'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue