summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-10-03 18:14:23 +0200
committerChristian Breunig <christian@breunig.cc>2023-10-03 18:17:26 +0200
commite062a8c11856f213983f5b41f50d4f9dbc0dde0f (patch)
tree67008555fde012dedad3be804fa0bcb13350640b /data/templates
parente258edd76090f370ff0c0f88382d099d814d85f1 (diff)
downloadvyos-1x-e062a8c11856f213983f5b41f50d4f9dbc0dde0f.tar.gz
vyos-1x-e062a8c11856f213983f5b41f50d4f9dbc0dde0f.zip
pppoe: T5630: allow to specify MRU in addition to already configurable MTU
Set the MRU (Maximum Receive Unit) value to n. PPPd will ask the peer to send packets of no more than n bytes. The value of n must be between 128 and 16384, the default was always 1492 to match PPPoE MTU. A value of 296 works well on very slow links (40 bytes for TCP/IP header + 256 bytes of data). Note that for the IPv6 protocol, the MRU must be at least 1280. CLI: set interfaces pppoe pppoe0 mru 1280
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/pppoe/peer.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/pppoe/peer.j2 b/data/templates/pppoe/peer.j2
index f30cefe63..2a99fcb2a 100644
--- a/data/templates/pppoe/peer.j2
+++ b/data/templates/pppoe/peer.j2
@@ -50,7 +50,7 @@ ifname {{ ifname }}
ipparam {{ ifname }}
debug
mtu {{ mtu }}
-mru {{ mtu }}
+mru {{ mru }}
{% if authentication is vyos_defined %}
{{ 'user "' + authentication.username + '"' if authentication.username is vyos_defined }}