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:
commit
b35c2a1324
2 changed files with 11 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue