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:
parent
21aa4c10a8
commit
8d12314a6e
2 changed files with 10 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue