All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yan Seiner <yan@seiner.com>
To: linux-ppp@vger.kernel.org
Subject: MTU strategies
Date: Mon, 07 Dec 2015 17:35:13 +0000	[thread overview]
Message-ID: <5665C351.3020500@seiner.com> (raw)

I have a question on MTU size strategies.

I have a router that terminates a VPN.  The router connects via ppp to 
my ISP.  I have a physical interface, with a virtual interface for 
pppoe, and a tun interface for the VPN that runs over the pppoe interface.

The physical interface (eth0) has a MTU of 1500.

The pppoe interface has an MTU of 1492.

The vpn interface has an MTU of 1452, a figure I picked somewhat 
arbitrarily, assuming a 40 byte overhead for the vpn.

My question is then for the other interfaces on the router that face the 
LAN and the DMZ.  Should these be set to 1492 or 1500?

And my other question is for the DHCP clients.  Should they be set to 
1492 (and the one host that uses the VPN should be set to 1452)?

root@AP1:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0D:B9:35:C2:0C
           inet6 addr: fe80::20d:b9ff:fe35:c20c/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:184584 errors:0 dropped:0 overruns:0 frame:0
           TX packets:117581 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:208509762 (198.8 MiB)  TX bytes:16719097 (15.9 MiB)

root@AP1:~# ifconfig pppoe-wan
pppoe-wan Link encap:Point-to-Point Protocol
           inet addr:198.251.62.82  P-t-P:198.251.52.2 Mask:255.255.255.255
           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
           RX packets:182822 errors:0 dropped:0 overruns:0 frame:0
           TX packets:114465 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:3
           RX bytes:204567089 (195.0 MiB)  TX bytes:14019020 (13.3 MiB)

root@AP1:~# ifconfig tun0
tun0      Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
           inet addr:10.117.1.6  P-t-P:10.117.1.5 Mask:255.255.255.255
           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1452  Metric:1
           RX packets:289 errors:0 dropped:0 overruns:0 frame:0
           TX packets:407 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           RX bytes:39746 (38.8 KiB)  TX bytes:76331 (74.5 KiB)


             reply	other threads:[~2015-12-07 17:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-07 17:35 Yan Seiner [this message]
2015-12-08 22:12 ` MTU strategies Michael Richardson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5665C351.3020500@seiner.com \
    --to=yan@seiner.com \
    --cc=linux-ppp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.