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

Merge pull request #283 from jvonau/rpi_static

sync from jvonau:rpi_static
This commit is contained in:
A Holt 2019-09-02 15:43:42 -04:00 committed by GitHub
commit b35c2a1324
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

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

View file

@ -38,6 +38,7 @@ require dhcp_server_identifier
slaac private
# IIAB
timeout 10
# always support Ethernet-to-Internet on RPi (avoid "denyinterfaces eth0")
{% if is_rpi and hostapd_enabled %}
@ -58,8 +59,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_ipV4LL == "false" %}
arping 192.0.2.1
fallback {{ wan_gateway }}
{% else %}
arping {{ wan_gateway }}
{% endif %}
{% endif %}