From 9c2a75d8d69a340b9bd922353b847aca9f479510 Mon Sep 17 00:00:00 2001 From: 4ndr3 Date: Thu, 12 Nov 2020 10:11:24 +0100 Subject: [PATCH] =?UTF-8?q?bb-gleis4a-kern=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Richtfunk/bb-gleis4a-kern/etc/config/network | 222 +++++++++++++++++++ Richtfunk/bb-gleis4a-kern/etc/rc.local | 16 ++ 2 files changed, 238 insertions(+) create mode 100644 Richtfunk/bb-gleis4a-kern/etc/config/network create mode 100644 Richtfunk/bb-gleis4a-kern/etc/rc.local diff --git a/Richtfunk/bb-gleis4a-kern/etc/config/network b/Richtfunk/bb-gleis4a-kern/etc/config/network new file mode 100644 index 0000000..7dde591 --- /dev/null +++ b/Richtfunk/bb-gleis4a-kern/etc/config/network @@ -0,0 +1,222 @@ + +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 'fdd4:e442:4e96::/48' + +config device 'wan_eth0_2_dev' + option name 'eth0.2' + option macaddr 'f8:1a:67:5a:5d:e9' + +config interface 'wan6' + option proto 'dhcpv6' + option ifname 'br-wan' + option ip6table '1' + option sourcefilter '0' + option peerdns '0' + option reqprefix 'no' + +config switch + option name 'switch0' + option reset '1' + option enable_vlan '1' + +config switch_vlan + option device 'switch0' + option vlan '1' + option ports '3 4 5 0t' + +config switch_vlan + option device 'switch0' + option vlan '2' + option ports '1 0t' + +config interface 'wan' + option igmp_snooping '1' + option ifname 'eth0.2' + option multicast_querier '0' + option peerdns '0' + option auto '1' + option type 'bridge' + option proto 'dhcp' + option macaddr '76:62:cc:90:20:f0' + +config switch_vlan + option device 'switch0' + option vlan '5' + option ports '0t 2t' + +config interface 'wartung' + option proto 'static' + option ifname 'eth0.5' + option ipaddr '192.168.112.74' + option netmask '255.255.255.0' + +config switch_vlan + option vlan '6' + option ports '0t 2t' + option device 'switch0' + +config switch_vlan + option device 'switch0' + option vlan '10' + option ports '0t 2t' + +config interface 'sektor1' + option ifname 'eth0.10' + option macaddr 'de:ad:be:ef:90:90' + option proto 'gluon_mesh' + option fixed_mtu '1' + option transitive '1' + option igmp_snooping '0' + +config switch_vlan + option device 'switch0' + option vlan '11' + option ports '0t 2t' + +config interface 'sektor2' + option ifname 'eth0.11' + option macaddr 'de:ad:be:ef:90:91' + option proto 'gluon_mesh' + option fixed_mtu '1' + option transitive '1' + option igmp_snooping '0' + +config switch_vlan + option device 'switch0' + option vlan '21' + option ports '0t 2t' + +config interface 'pgkaltona' + option ifname 'eth0.21' + option macaddr 'de:ad:be:ef:90:92' + option proto 'gluon_mesh' + option fixed_mtu '1' + option transitive '1' + option igmp_snooping '0' + +config switch_vlan + option device 'switch0' + option vlan '37' + option ports '0t 2t' + +config interface 'moewe' + option ifname 'eth0.37' + option macaddr 'de:ad:be:ef:90:93' + option proto 'gluon_mesh' + option fixed_mtu '1' + option transitive '1' + option igmp_snooping '0' + +config switch_vlan + option device 'switch0' + option vlan '40' + option ports '0t 2t' + +config interface 'fux' + option ifname 'eth0.40' + option macaddr 'de:ad:be:ef:90:94' + option proto 'gluon_mesh' + option fixed_mtu '1' + option transitive '1' + option igmp_snooping '0' + +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 ifname 'br-wan' + option index '0' + option proto 'gluon_wired' + option disabled '1' + option transitive '1' + +config interface 'mesh_lan' + option igmp_snooping '0' + option ifname 'eth0.1' + option index '4' + option proto 'gluon_wired' + option disabled '1' + option transitive '1' + option macaddr '76:62:cc:90:20:f4' + +config interface 'mesh_vpn' + option ifname 'mesh-vpn' + option transitive '1' + option mtu '1312' + option macaddr '76:62:cc:90:20:f7' + option fixed_mtu '1' + option proto 'gluon_mesh' + +config interface 'mesh_radio0' + option proto 'gluon_mesh' + +config interface 'mesh_radio1' + option proto 'gluon_mesh' + +config interface 'client' + option igmp_snooping '1' + option type 'bridge' + option auto '1' + option ra_holdoff '30' + option multicast_querier '1' + option macaddr 'f8:1a:67:5a:5d:e8' + list ifname 'eth0.1' + list ifname 'eth0.6' + list ifname 'local-port' + list ifname 'bat0' + option ipv6 '1' + option keep_ra_dnslifetime '1' + option sourcefilter '0' + option peerdns '1' + option robustness '9' + 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 '16:41:95:40:f7:dc' + option peer_macaddr 'f8:1a:67:5a:5d:e8' + +config interface 'local_node' + option ifname 'local-node' + option ipaddr '10.112.96.1/19' + option ip6addr '2a03:2267:2::1/128' + option ip6deprecated '1' + option proto 'static' + +config interface 'gluon_bat0' + option gw_mode 'client' + option proto 'gluon_bat0' + +config interface 'bat0' + option multicast_router '2' + option ifname 'bat0' + option auto '1' + option macaddr 'f8:1a:67:5a:5d:e8' + option learning '1' + option proto 'none' + +config route6 'local_node_route6' + option target '2a03:2267:2::/64' + option gateway '::' + option interface 'client' + diff --git a/Richtfunk/bb-gleis4a-kern/etc/rc.local b/Richtfunk/bb-gleis4a-kern/etc/rc.local new file mode 100644 index 0000000..3b491be --- /dev/null +++ b/Richtfunk/bb-gleis4a-kern/etc/rc.local @@ -0,0 +1,16 @@ +# Put your custom commands here that should be executed once +# the system init finished. By default this file does nothing. + +# Hop penalty heruntersetzen +# No uci support for hop penalty after Gluon v2019.1.2 +INTERFACE="bat0" +PENALTY="5" +CURRENT=$(cat /sys/class/net/$INTERFACE/mesh/hop_penalty) +if [ "$PENALTY" != "$CURRENT" ]; then + echo $PENALTY > /sys/class/net/$INTERFACE/mesh/hop_penalty + uci set batman-adv.$INTERFACE.hop_penalty=$PENALTY + uci commit batman-adv +fi + + +exit 0