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:
parent
effcd54c3a
commit
64919e2439
1 changed files with 6 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue