1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

use profile/arping for static in dhcpcd.conf

This commit is contained in:
Jerry Vonau 2019-09-02 11:50:38 -05:00
parent 21aa4c10a8
commit 8d12314a6e
2 changed files with 10 additions and 1 deletions

View file

@ -51,6 +51,7 @@ strict_networking: False
iiab_demo_mode: False
gui_static_wan: False
wan_cidr:
wan_force_static: False
# Set defaults for discovery process as strings
wifi1: "not found-1"

View file

@ -58,8 +58,16 @@ static domain_name_servers=127.0.0.1
# IIAB static IP configuration:
{% if wan_ip != "dhcp" %}
interface {{ iiab_wan_iface }}
profile {{ wan_gateway }}
static ip_address={{ wan_ip }}/24
static routers={{ wan_gateway }}
static domain_name_servers={{ wan_nameserver }}
interface {{ iiab_wan_iface }}
{% if wan_force_static == "true" %}
arping 192.0.2.1
fallback {{ wan_gateway }}
{% else %}
arping {{ wan_gateway }}
{% endif %}
{% endif %}