summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-02-08 13:02:20 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-02-08 13:02:20 +0000
commit9733bbae4e21c7b4f7bbd6f2bd7a48a4338cb4d6 (patch)
treea508dd461c59791b7960006543dfef65c6590016
parent6b9b36db47a44b688c0bf08649845012a2b13f67 (diff)
downloadvyos-1x-9733bbae4e21c7b4f7bbd6f2bd7a48a4338cb4d6.tar.gz
vyos-1x-9733bbae4e21c7b4f7bbd6f2bd7a48a4338cb4d6.zip
T2603: PPPoE-server change default min-mtu value 1280
Minimum acceptable MTU. If client will try to negotiate less then specified MTU then it will be NAKed or disconnected if rejects greater MTU. Change 'min-mtu' from 1492 to 1280
-rw-r--r--data/templates/accel-ppp/pppoe.config.j22
-rw-r--r--interface-definitions/service-pppoe-server.xml.in1
2 files changed, 1 insertions, 2 deletions
diff --git a/data/templates/accel-ppp/pppoe.config.j2 b/data/templates/accel-ppp/pppoe.config.j2
index f4129d3e2..c536bafa5 100644
--- a/data/templates/accel-ppp/pppoe.config.j2
+++ b/data/templates/accel-ppp/pppoe.config.j2
@@ -69,8 +69,6 @@ ccp={{ "1" if ppp_options.ccp is vyos_defined else "0" }}
unit-preallocate={{ "1" if authentication.radius.preallocate_vif is vyos_defined else "0" }}
{% if ppp_options.min_mtu is vyos_defined %}
min-mtu={{ ppp_options.min_mtu }}
-{% else %}
-min-mtu={{ mtu }}
{% endif %}
{% if ppp_options.mru is vyos_defined %}
mru={{ ppp_options.mru }}
diff --git a/interface-definitions/service-pppoe-server.xml.in b/interface-definitions/service-pppoe-server.xml.in
index 68592b96b..db8522287 100644
--- a/interface-definitions/service-pppoe-server.xml.in
+++ b/interface-definitions/service-pppoe-server.xml.in
@@ -122,6 +122,7 @@
<validator name="numeric" argument="--range 68-65535"/>
</constraint>
</properties>
+ <defaultValue>1280</defaultValue>
</leafNode>
<leafNode name="mru">
<properties>