2015-02-23 23:41:36 +01:00
|
|
|
|
|
|
|
config interface 'loopback'
|
|
|
|
option ifname 'lo'
|
|
|
|
option proto 'static'
|
|
|
|
option ipaddr '127.0.0.1'
|
|
|
|
option netmask '255.0.0.0'
|
|
|
|
|
2015-10-14 22:14:15 +02:00
|
|
|
config globals 'globals'
|
|
|
|
option ula_prefix 'fd13:bd3e:0d0b::/48'
|
|
|
|
|
|
|
|
config interface 'wan6'
|
|
|
|
option proto 'dhcpv6'
|
|
|
|
option ifname 'br-wan'
|
|
|
|
option ip6table '1'
|
|
|
|
option peerdns '0'
|
|
|
|
|
2015-02-23 23:41:36 +01:00
|
|
|
config switch
|
2015-10-14 22:14:15 +02:00
|
|
|
option name 'switch0'
|
2015-02-23 23:41:36 +01:00
|
|
|
option reset '1'
|
|
|
|
option enable_vlan '1'
|
|
|
|
|
|
|
|
config switch_vlan
|
2015-10-14 22:14:15 +02:00
|
|
|
option device 'switch0'
|
2015-02-23 23:41:36 +01:00
|
|
|
option vlan '1'
|
|
|
|
option ports '0t 3 4 5'
|
|
|
|
|
|
|
|
config switch_vlan
|
2015-10-14 22:14:15 +02:00
|
|
|
option device 'switch0'
|
2015-02-23 23:41:36 +01:00
|
|
|
option vlan '2'
|
|
|
|
option ports '0t 1'
|
|
|
|
|
|
|
|
config switch_vlan
|
2015-04-09 22:34:30 +02:00
|
|
|
option vlan '5'
|
|
|
|
option ports '0t 2t'
|
|
|
|
option vid '5'
|
|
|
|
option device 'switch0'
|
2015-02-23 23:41:36 +01:00
|
|
|
|
|
|
|
config switch_vlan
|
2015-04-09 22:34:30 +02:00
|
|
|
option vlan '10'
|
|
|
|
option ports '0t 2t'
|
|
|
|
option vid '10'
|
|
|
|
option device 'switch0'
|
2015-02-23 23:41:36 +01:00
|
|
|
|
|
|
|
config switch_vlan
|
2015-04-09 22:34:30 +02:00
|
|
|
option vlan '20'
|
|
|
|
option ports '0t 2t'
|
|
|
|
option vid '20'
|
|
|
|
option device 'switch0'
|
2015-02-23 23:41:36 +01:00
|
|
|
|
|
|
|
config interface 'vlan5'
|
2015-04-09 22:34:30 +02:00
|
|
|
option proto 'static'
|
|
|
|
option ifname 'eth0.5'
|
|
|
|
option ipaddr '192.168.112.2'
|
|
|
|
option netmask '255.255.255.0'
|
|
|
|
|
|
|
|
config interface 'vlan10'
|
|
|
|
option proto 'batadv'
|
|
|
|
option mesh 'bat0'
|
|
|
|
option mtu '1500'
|
|
|
|
option ifname 'eth0.10'
|
|
|
|
option macaddr 'de:ad:be:ef:90:00'
|
|
|
|
|
|
|
|
config interface 'vlan20'
|
|
|
|
option proto 'batadv'
|
|
|
|
option mesh 'bat0'
|
|
|
|
option mtu '1500'
|
|
|
|
option ifname 'eth0.20'
|
|
|
|
option macaddr 'de:ad:be:ef:90:01'
|
2015-02-23 23:41:36 +01:00
|
|
|
|
|
|
|
config interface 'wan'
|
2015-10-14 22:14:15 +02:00
|
|
|
option igmp_snooping '0'
|
2015-02-23 23:41:36 +01:00
|
|
|
option ifname 'eth0.2'
|
2015-04-09 22:34:30 +02:00
|
|
|
option auto '1'
|
2015-02-23 23:41:36 +01:00
|
|
|
option peerdns '0'
|
2015-10-14 22:14:15 +02:00
|
|
|
option type 'bridge'
|
|
|
|
option proto 'dhcp'
|
|
|
|
option macaddr 'fa:1b:67:5a:5d:e8'
|
2015-02-23 23:41:36 +01:00
|
|
|
|
|
|
|
config rule6 'wan6_lookup'
|
|
|
|
option mark '0x01/0x01'
|
|
|
|
option lookup '1'
|
|
|
|
|
|
|
|
config route6 'wan6_unreachable'
|
|
|
|
option type 'unreachable'
|
|
|
|
option table '1'
|
|
|
|
option target '::/0'
|
|
|
|
option metric '65535'
|
|
|
|
option gateway '::'
|
|
|
|
option interface 'loopback'
|
|
|
|
|
|
|
|
config interface 'client'
|
|
|
|
option reqprefix 'no'
|
|
|
|
option ifname 'eth0.1 bat0'
|
|
|
|
option proto 'dhcpv6'
|
|
|
|
option type 'bridge'
|
2015-04-09 22:34:30 +02:00
|
|
|
option igmp_snooping '0'
|
2015-10-14 22:14:15 +02:00
|
|
|
option macaddr 'f8:1a:67:5a:5d:e8'
|
|
|
|
option peerdns '1'
|
2015-02-23 23:41:36 +01:00
|
|
|
|
|
|
|
config interface 'bat0'
|
|
|
|
option ifname 'bat0'
|
2015-10-14 22:14:15 +02:00
|
|
|
option macaddr 'f8:1a:67:5a:5d:e8'
|
2015-02-23 23:41:36 +01:00
|
|
|
option proto 'none'
|
|
|
|
|
|
|
|
config interface 'mesh_radio0'
|
|
|
|
option mesh 'bat0'
|
2015-10-14 22:14:15 +02:00
|
|
|
option proto 'batadv'
|
2015-02-23 23:41:36 +01:00
|
|
|
option mtu '1528'
|
|
|
|
|
|
|
|
config interface 'mesh_radio1'
|
|
|
|
option mesh 'bat0'
|
2015-10-14 22:14:15 +02:00
|
|
|
option proto 'batadv'
|
2015-02-23 23:41:36 +01:00
|
|
|
option mtu '1528'
|
|
|
|
|
2015-10-14 22:14:15 +02:00
|
|
|
config interface 'mesh_wan'
|
|
|
|
option auto '0'
|
|
|
|
option ifname 'br-wan'
|
|
|
|
option mesh 'bat0'
|
|
|
|
option proto 'batadv'
|
|
|
|
|
|
|
|
config interface 'mesh_lan'
|
|
|
|
option ifname 'eth0.1'
|
|
|
|
option auto '0'
|
|
|
|
option macaddr 'fa:1b:68:5a:5d:e8'
|
|
|
|
option mesh 'bat0'
|
|
|
|
option proto 'batadv'
|
|
|
|
|
|
|
|
config interface 'mesh_vpn'
|
|
|
|
option ifname 'mesh-vpn'
|
|
|
|
option mesh_no_rebroadcast '1'
|
|
|
|
option macaddr 'fa:1e:67:5a:5d:e8'
|
|
|
|
option mesh 'bat0'
|
|
|
|
option proto 'batadv'
|
|
|
|
|
2015-02-23 23:41:36 +01:00
|
|
|
config device 'local_node_dev'
|
|
|
|
option macaddr '16:41:95:40:f7:dc'
|
|
|
|
option ifname 'br-client'
|
|
|
|
option name 'local-node'
|
|
|
|
option type 'macvlan'
|
|
|
|
|
|
|
|
config interface 'local_node'
|
|
|
|
option ifname 'local-node'
|
|
|
|
option ipaddr '10.112.0.1'
|
2015-04-09 22:34:30 +02:00
|
|
|
option ip6addr '2a03:2267::1/128'
|
2015-02-23 23:41:36 +01:00
|
|
|
option netmask '255.255.192.0'
|
2015-10-14 22:14:15 +02:00
|
|
|
option proto 'static'
|
2015-02-23 23:41:36 +01:00
|
|
|
|
|
|
|
config route6 'local_node_route6'
|
2015-04-09 22:34:30 +02:00
|
|
|
option target '2a03:2267::/64'
|
2015-02-23 23:41:36 +01:00
|
|
|
option gateway '::'
|
|
|
|
option interface 'client'
|
|
|
|
|