|
@@ -0,0 +1,178 @@
|
|
|
+
|
|
|
+config interface 'loopback'
|
|
|
+ option ifname 'lo'
|
|
|
+ option proto 'static'
|
|
|
+ option ipaddr '127.0.0.1'
|
|
|
+ option netmask '255.0.0.0'
|
|
|
+
|
|
|
+config globals 'globals'
|
|
|
+ option ula_prefix 'fd71:2197:679e::/48'
|
|
|
+
|
|
|
+config interface 'wan6'
|
|
|
+ option proto 'dhcpv6'
|
|
|
+ option ifname 'br-wan'
|
|
|
+ option ip6table '1'
|
|
|
+ option peerdns '0'
|
|
|
+ option sourcefilter '0'
|
|
|
+
|
|
|
+config switch
|
|
|
+ option name 'switch0'
|
|
|
+ option reset '1'
|
|
|
+ option enable_vlan '1'
|
|
|
+
|
|
|
+config switch_vlan
|
|
|
+ option device 'switch0'
|
|
|
+ option vlan '1'
|
|
|
+ option ports '0t 1'
|
|
|
+
|
|
|
+config switch_vlan
|
|
|
+ option device 'switch0'
|
|
|
+ option vlan '2'
|
|
|
+ option ports '5 6'
|
|
|
+
|
|
|
+config switch_vlan
|
|
|
+ option device 'switch0'
|
|
|
+ option vlan '3'
|
|
|
+ option ports '0t 3 4t'
|
|
|
+ option vid '2005'
|
|
|
+
|
|
|
+config switch_vlan
|
|
|
+ option device 'switch0'
|
|
|
+ option vlan '4'
|
|
|
+ option vid '2010'
|
|
|
+ option ports '0t 2 4t'
|
|
|
+
|
|
|
+config switch_vlan
|
|
|
+ option device 'switch0'
|
|
|
+ option vlan '5'
|
|
|
+ option ports '0t 4t'
|
|
|
+ option vid '2020'
|
|
|
+
|
|
|
+config interface 'vlan2005'
|
|
|
+ option proto 'static'
|
|
|
+ option ifname 'eth1.2005'
|
|
|
+ option netmask '255.255.0.0'
|
|
|
+ option ipaddr '172.24.4.9'
|
|
|
+
|
|
|
+config interface 'vlan2010'
|
|
|
+ option mtu '1500'
|
|
|
+ option ifname 'eth1.2010'
|
|
|
+ option proto 'gluon_mesh'
|
|
|
+ option fixed_mtu '1'
|
|
|
+ option macaddr 'de:ff:d0:bb:04:00'
|
|
|
+
|
|
|
+config interface 'vlan2020'
|
|
|
+ option mtu '1500'
|
|
|
+ option ifname 'eth1.2020'
|
|
|
+ option proto 'gluon_mesh'
|
|
|
+ option fixed_mtu '1'
|
|
|
+ option macaddr 'de:ff:d0:bb:04:01'
|
|
|
+
|
|
|
+config interface 'wan'
|
|
|
+ option peerdns '0'
|
|
|
+ option ifname 'eth0'
|
|
|
+ option auto '1'
|
|
|
+ option type 'bridge'
|
|
|
+ option proto 'dhcp'
|
|
|
+ option multicast_querier '0'
|
|
|
+ option macaddr '06:87:44:7d:fd:48'
|
|
|
+ option igmp_snooping '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 proto 'gluon_mesh'
|
|
|
+ option fixed_mtu '1'
|
|
|
+
|
|
|
+config interface 'mesh_vpn'
|
|
|
+ option ifname 'mesh-vpn'
|
|
|
+ option mesh_no_rebroadcast '1'
|
|
|
+ option mesh 'bat0'
|
|
|
+ option transitive '1'
|
|
|
+ option macaddr '06:87:44:7d:fd:4f'
|
|
|
+ option fixed_mtu '1'
|
|
|
+ option proto 'gluon_mesh'
|
|
|
+ option mtu '1280'
|
|
|
+
|
|
|
+config route 'local_node_route4'
|
|
|
+ option target '10.233.0.0'
|
|
|
+ option gateway '0.0.0.0'
|
|
|
+ option netmask '255.255.0.0'
|
|
|
+ option interface 'client'
|
|
|
+
|
|
|
+config interface 'mesh_lan'
|
|
|
+ option ifname 'eth1'
|
|
|
+ option auto '0'
|
|
|
+ option mesh 'bat0'
|
|
|
+ option igmp_snooping '0'
|
|
|
+ option transitive '1'
|
|
|
+ option fixed_mtu '1'
|
|
|
+ option proto 'gluon_mesh'
|
|
|
+ option type 'bridge'
|
|
|
+ option macaddr '06:87:44:7d:fd:4c'
|
|
|
+
|
|
|
+config interface 'ibss_radio0'
|
|
|
+ option proto 'gluon_mesh'
|
|
|
+
|
|
|
+config interface 'client'
|
|
|
+ option igmp_snooping '1'
|
|
|
+ option type 'bridge'
|
|
|
+ option auto '1'
|
|
|
+ option multicast_querier '1'
|
|
|
+ option macaddr 'c4:6e:1f:0d:22:4a'
|
|
|
+ list ifname 'bat0'
|
|
|
+ list ifname 'eth1.1'
|
|
|
+ list ifname 'eth1'
|
|
|
+ list ifname 'local-port'
|
|
|
+ option ipv6 '1'
|
|
|
+ option keep_ra_dnslifetime '1'
|
|
|
+ option sourcefilter '0'
|
|
|
+ option peerdns '0'
|
|
|
+ option robustness '3'
|
|
|
+ option reqprefix 'no'
|
|
|
+ option query_interval '2000'
|
|
|
+ option query_response_interval '500'
|
|
|
+ option proto 'dhcpv6'
|
|
|
+
|
|
|
+config device 'local_node_dev'
|
|
|
+ option type 'veth'
|
|
|
+ option name 'local-node'
|
|
|
+ option peer_name 'local-port'
|
|
|
+ option macaddr '02:ff:d0:09:ff:02'
|
|
|
+ option peer_macaddr 'c4:6e:1f:0d:22:4a'
|
|
|
+
|
|
|
+config interface 'local_node'
|
|
|
+ option ifname 'local-node'
|
|
|
+ option ipaddr '10.233.254.254/16'
|
|
|
+ option ip6addr '2a03:2260:300a:1000::ffd0/128'
|
|
|
+ option ip6deprecated '1'
|
|
|
+ option proto 'static'
|
|
|
+
|
|
|
+config interface 'gluon_bat0'
|
|
|
+ option proto 'gluon_bat0'
|
|
|
+
|
|
|
+config interface 'bat0'
|
|
|
+ option multicast_router '2'
|
|
|
+ option ifname 'bat0'
|
|
|
+ option auto '1'
|
|
|
+ option macaddr 'c4:6e:1f:0d:22:4a'
|
|
|
+ option learning '1'
|
|
|
+ option proto 'none'
|
|
|
+
|
|
|
+config route6 'local_node_route6'
|
|
|
+ option target '2a03:2260:300a:1000::/64'
|
|
|
+ option gateway '::'
|
|
|
+ option interface 'client'
|
|
|
+
|