mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
New vars wan_try_dhcp_then_static_ip & dhcp_timeout
This commit is contained in:
parent
b050dddef9
commit
649f92c2c2
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,7 @@ require dhcp_server_identifier
|
||||||
slaac private
|
slaac private
|
||||||
|
|
||||||
# IIAB
|
# IIAB
|
||||||
timeout 10
|
timeout {{ dhcp_timeout }}
|
||||||
|
|
||||||
# always support Ethernet-to-Internet on RPi (avoid "denyinterfaces eth0")
|
# always support Ethernet-to-Internet on RPi (avoid "denyinterfaces eth0")
|
||||||
{% if is_rpi and hostapd_enabled %}
|
{% if is_rpi and hostapd_enabled %}
|
||||||
|
@ -64,6 +64,7 @@ static ip_address={{ wan_ip }}/24
|
||||||
static routers={{ wan_gateway }}
|
static routers={{ wan_gateway }}
|
||||||
static domain_name_servers={{ wan_nameserver }}
|
static domain_name_servers={{ wan_nameserver }}
|
||||||
|
|
||||||
|
{% if wan_try_dhcp_then_static_ip == "true" %}
|
||||||
interface {{ iiab_wan_iface }}
|
interface {{ iiab_wan_iface }}
|
||||||
{% if wan_ipV4LL == "false" %}
|
{% if wan_ipV4LL == "false" %}
|
||||||
arping 192.0.2.1
|
arping 192.0.2.1
|
||||||
|
@ -72,3 +73,4 @@ fallback {{ wan_gateway }}
|
||||||
arping {{ wan_gateway }}
|
arping {{ wan_gateway }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue