2016-04-30 15:03:32 +02:00
|
|
|
|
|
|
|
config interface 'loopback'
|
|
|
|
option ifname 'lo'
|
|
|
|
option proto 'static'
|
|
|
|
option ipaddr '127.0.0.1'
|
|
|
|
option netmask '255.0.0.0'
|
|
|
|
|
|
|
|
config interface 'wan'
|
|
|
|
option ifname 'eth0.2'
|
|
|
|
option proto 'dhcp'
|
|
|
|
option type 'bridge'
|
|
|
|
option accept_ra '0'
|
|
|
|
option auto '1'
|
|
|
|
option peerdns '0'
|
|
|
|
option macaddr 'c2:4b:00:38:ad:5c'
|
|
|
|
option igmp_snooping '0'
|
|
|
|
|
|
|
|
config switch
|
|
|
|
option reset '1'
|
|
|
|
option enable_vlan '1'
|
|
|
|
option name 'switch0'
|
|
|
|
|
|
|
|
config switch_vlan
|
|
|
|
option vlan '1'
|
|
|
|
option ports '0t 3 4 5'
|
|
|
|
option device 'switch0'
|
|
|
|
|
|
|
|
config switch_vlan
|
|
|
|
option vlan '2'
|
|
|
|
option ports '0t 1'
|
|
|
|
option device 'switch0'
|
|
|
|
|
|
|
|
config switch_vlan
|
|
|
|
option vlan '5'
|
|
|
|
option ports '0t 2t'
|
|
|
|
option device 'switch0'
|
|
|
|
|
|
|
|
config switch_vlan
|
|
|
|
option vlan '30'
|
|
|
|
option ports '0t 2t'
|
|
|
|
option device 'switch0'
|
|
|
|
|
|
|
|
config interface 'vlan5'
|
|
|
|
option proto 'static'
|
|
|
|
option ifname 'eth0.5'
|
|
|
|
option ipaddr '192.168.112.42'
|
|
|
|
option netmask '255.255.255.0'
|
|
|
|
|
|
|
|
config interface 'vlan30'
|
2016-05-15 12:27:17 +02:00
|
|
|
option mesh_no_rebroadcast '1'
|
2016-04-30 15:03:32 +02:00
|
|
|
option proto 'batadv'
|
|
|
|
option mesh 'bat0'
|
|
|
|
option ifname 'eth0.30'
|
|
|
|
option macaddr 'de:ad:be:ef:90:a0'
|
|
|
|
|
|
|
|
config interface 'client'
|
|
|
|
option type 'bridge'
|
|
|
|
option macaddr 'c0:4a:00:38:ad:5c'
|
|
|
|
option proto 'dhcpv6'
|
|
|
|
option reqprefix 'no'
|
|
|
|
option peerdns '1'
|
|
|
|
option igmp_snooping '0'
|
|
|
|
option ifname 'bat0'
|
|
|
|
|
|
|
|
config interface 'mesh'
|
|
|
|
option proto 'batadv'
|
|
|
|
option mtu '1528'
|
|
|
|
option mesh 'bat0'
|
|
|
|
|
|
|
|
config interface 'mesh5'
|
|
|
|
option proto 'batadv'
|
|
|
|
option mtu '1528'
|
|
|
|
option mesh 'bat0'
|
|
|
|
|
|
|
|
config interface 'mesh_vpn'
|
|
|
|
option ifname 'mesh-vpn'
|
|
|
|
option proto 'batadv'
|
|
|
|
option mesh 'bat0'
|
|
|
|
option mesh_no_rebroadcast '1'
|
|
|
|
option macaddr 'c2:4e:00:38:ad:5c'
|
|
|
|
|
|
|
|
config interface 'wan6'
|
|
|
|
option proto 'dhcpv6'
|
|
|
|
option ifname 'br-wan'
|
|
|
|
option peerdns '0'
|
|
|
|
option ip6table '1'
|
|
|
|
|
|
|
|
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 'mesh_wan'
|
|
|
|
option auto '0'
|
|
|
|
option ifname 'br-wan'
|
|
|
|
option mesh 'bat0'
|
|
|
|
option proto 'batadv'
|
|
|
|
|
|
|
|
config route 'local_node_route4'
|
|
|
|
option target '10.112.0.0'
|
|
|
|
option gateway '0.0.0.0'
|
|
|
|
option netmask '255.255.192.0'
|
|
|
|
option interface 'client'
|
|
|
|
|
|
|
|
config interface 'mesh_lan'
|
|
|
|
option ifname 'eth0.1'
|
|
|
|
option macaddr 'c2:4b:01:38:ad:5c'
|
|
|
|
option mesh 'bat0'
|
|
|
|
option proto 'batadv'
|
|
|
|
option auto '1'
|
|
|
|
|
|
|
|
config interface 'bat0'
|
|
|
|
option ifname 'bat0'
|
|
|
|
option macaddr 'c0:4a:00:38:ad:5c'
|
|
|
|
option proto 'none'
|
|
|
|
|
|
|
|
config interface 'mesh_radio0'
|
|
|
|
option mesh 'bat0'
|
|
|
|
option proto 'batadv'
|
|
|
|
option mtu '1528'
|
|
|
|
|
|
|
|
config interface 'mesh_radio1'
|
|
|
|
option mesh 'bat0'
|
|
|
|
option proto 'batadv'
|
|
|
|
option mtu '1528'
|
|
|
|
|
|
|
|
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'
|
|
|
|
option ip6addr '2a03:2267::1/128'
|
|
|
|
option netmask '255.255.192.0'
|
|
|
|
option proto 'static'
|
|
|
|
|
|
|
|
config route6 'local_node_route6'
|
|
|
|
option target '2a03:2267::/64'
|
|
|
|
option gateway '::'
|
|
|
|
option interface 'client'
|
|
|
|
|