diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-03-29 02:00:25 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-03-29 02:00:25 +0200 |
commit | 5f8a3a9464a8b5e8015d73a86110dad9c3b437b9 (patch) | |
tree | b771690de90636ebd1c1ba93b15f4ed313ff20ce /inventory/host_vars | |
parent | upgrade ch-router (diff) |
prepare networking for glt21
Diffstat (limited to 'inventory/host_vars')
-rw-r--r-- | inventory/host_vars/ele-tub.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/inventory/host_vars/ele-tub.yml b/inventory/host_vars/ele-tub.yml index 77a95e68..4ab8ae70 100644 --- a/inventory/host_vars/ele-tub.yml +++ b/inventory/host_vars/ele-tub.yml @@ -46,6 +46,18 @@ openwrt_mixin: /etc/htoprc: file: "{{ global_files_dir }}/common/htoprc" + /etc/rc.local: + content: | + # Put your custom commands here that should be executed once + # the system init finished. By default this file does nothing. + + ip rule add pref 42000 lookup default + ip rule del pref 32767 + ip route add default via {{ network_zones.murat_transfer.prefix | ipaddr(network_zones.murat_transfer.offsets['ele-mur']) | ipaddr('address') }} table 172 + ip rule add pref 33000 from {{ network_zones.funkfeuer.prefix }} lookup 172 + + exit 0 + openwrt_uci: system: @@ -106,6 +118,13 @@ openwrt_uci: netmask: 255.255.0.0 dns: "{{ network_zones.funkfeuer.dns }}" + - name: interface 'murattransfer' + options: + ifname: eth2 + proto: static + ipaddr: "{{ network_zones.murat_transfer.prefix | ipaddr(network_zones.murat_transfer.offsets[inventory_hostname]) | ipaddr('address') }}" + netmask: "{{ network_zones.murat_transfer.prefix | ipaddr('netmask') }}" + olsrd: - name: olsrd options: @@ -117,6 +136,7 @@ openwrt_uci: UseNiit: 'no' SmartGateway: 'no' MainIp: 10.12.91.28 + RtTableDefault: 253 - name: LoadPlugin options: |