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:
parent
b050dddef9
commit
649f92c2c2
1 changed files with 3 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue