diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-04-01 16:39:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-01 16:39:47 +0200 |
commit | ae96118ec38c4064552889aea5e50023a66aac1e (patch) | |
tree | ca81032cfa054a2b26d198ce2a5ce5b5a761f399 /data/templates | |
parent | 4999f605b024d041cdc18e69ea6cef48403a924e (diff) | |
parent | 9d34c488251c0d5111b4a3c880f2291548645db3 (diff) | |
download | vyos-1x-ae96118ec38c4064552889aea5e50023a66aac1e.tar.gz vyos-1x-ae96118ec38c4064552889aea5e50023a66aac1e.zip |
Merge pull request #3167 from aapostoliuk/T6150-equuleus
T6150: Fixed setting a static IP address by Radius in IPoE
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/accel-ppp/ipoe.config.tmpl | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/data/templates/accel-ppp/ipoe.config.tmpl b/data/templates/accel-ppp/ipoe.config.tmpl index 0599b5501..976cddd52 100644 --- a/data/templates/accel-ppp/ipoe.config.tmpl +++ b/data/templates/accel-ppp/ipoe.config.tmpl @@ -32,20 +32,29 @@ 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 gateway_address %} +{% for gw in gateway_address %} +gw-ip-address={{ gw }} +{% endfor %} +{% 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 %} |