1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

profile eth0 -> interface eth0 when wan_try_dhcp_before_static_ip == False

This commit is contained in:
A Holt 2019-09-03 15:23:15 -04:00 committed by GitHub
parent effcd54c3a
commit 64919e2439
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,16 +59,21 @@ static domain_name_servers=127.0.0.1
# IIAB static IP configuration, possibly trying DHCP first
{% if wan_ip != "dhcp" %}
{% if wan_try_dhcp_before_static_ip %}
profile static_eth0
static ip_address={{ wan_ip }}/24
static routers={{ wan_gateway }}
static domain_name_servers={{ wan_nameserver }}
{% if wan_try_dhcp_before_static_ip %}
# Check for DHCP on the wire first (for occasional field updates of IIAB,
# e.g. using "cablemodem" Ethernet ports) before falling back to above Static
# IP (e.g. 192.168.1.99 in Chiapas, Mexico) as used for everyday classrooms.
interface {{ iiab_wan_iface }}
fallback static_eth0
{% else %}
interface {{ iiab_wan_iface }}
static ip_address={{ wan_ip }}/24
static routers={{ wan_gateway }}
static domain_name_servers={{ wan_nameserver }}
{% endif %}
{% endif %}