Skip to content

Commit

Permalink
T6150: Fixed setting a static IP address by Radius in IPoE
Browse files Browse the repository at this point in the history
Fixed setting a static IP address by Radius in IPoE
Allowing using named pools by default
  • Loading branch information
aapostoliuk committed Mar 22, 2024
1 parent 713b2f3 commit a6100d4
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions data/templates/accel-ppp/ipoe.config.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,24 @@ interface={{ ifname }},shared={{ interface.shared }},mode={{ interface.mode }},i
{% endfor %}
{% if auth_mode == 'noauth' %}
noauth=1
{% if client_named_ip_pool %}
{% for pool in client_named_ip_pool %}
{% if pool.subnet is defined %}
ip-pool={{ pool.name }}
{% endif %}
{% if pool.gateway_address is defined %}
gw-ip-address={{ pool.gateway_address }}/{{ pool.subnet.split('/')[1] }}
{% endif %}
{% endfor%}
{% endif %}
{% elif auth_mode == 'local' %}
username=ifname
password=csid
{% elif auth_mode == 'radius' %}
attr-dhcp-client-ip=Framed-IP-Address
attr-dhcp-mask=Framed-IP-Netmask
{% endif %}
{% if client_named_ip_pool %}
{% for pool in client_named_ip_pool %}
{% if pool.subnet is defined %}
ip-pool={{ pool.name }}
{% endif %}
{% if pool.gateway_address is defined %}
gw-ip-address={{ pool.gateway_address }}/{{ pool.subnet.split('/')[1] }}
{% endif %}
{% endfor%}
{% endif %}

proxy-arp=1

{% for interface in interfaces %}
Expand Down

0 comments on commit a6100d4

Please sign in to comment.