1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

New vars wan_try_dhcp_then_static_ip & dhcp_timeout

This commit is contained in:
A Holt 2019-09-02 17:54:24 -04:00 committed by GitHub
parent b050dddef9
commit 649f92c2c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ require dhcp_server_identifier
slaac private
# IIAB
timeout 10
timeout {{ dhcp_timeout }}
# always support Ethernet-to-Internet on RPi (avoid "denyinterfaces eth0")
{% if is_rpi and hostapd_enabled %}
@ -64,6 +64,7 @@ static ip_address={{ wan_ip }}/24
static routers={{ wan_gateway }}
static domain_name_servers={{ wan_nameserver }}
{% if wan_try_dhcp_then_static_ip == "true" %}
interface {{ iiab_wan_iface }}
{% if wan_ipV4LL == "false" %}
arping 192.0.2.1
@ -72,3 +73,4 @@ fallback {{ wan_gateway }}
arping {{ wan_gateway }}
{% endif %}
{% endif %}
{% endif %}