Lars Eggert writes:
> > Anyway, now I have a legitimate question, how can I setup mpd 
> > to change the MTU on the ng0 interface when it brings it up?
> 
> I do this via mpd's "set iface up-script", using a manually chosen MTU.
> 
> I'd be nice if mpd would do this automatically, based on the MTU of the
> underlying interface and the length of the encapsulation header...

Mpd is "supposed" to do this automatically, but it only does it for
the PPP headers, not the device headers (such as PPTP/IP/Ethernet).

In other words, there is a 'hard' MTU which is the maximum size of
a packet you are allowed to send -- which by the way is dictated
by (a) the transport layer for your PPP frames (in the case of PPTP,
this would be on the order of 65,000 bytes -- because with PPTP the
transport for the PPP frame is an IP packet) and (b) what the remote
peer asks for (typically 1500 or less), and there is also a 'soft'
MTU which is the largest MTU that will not cause any packets to get
fragmented at any level along the chain. Mpd only adjusts the
interface MTU to handle the 'hard' MTU part. If time permits I'll
have it try to be a little smarter.

On a related note, you can avoid these problems altogether if
you enable multi-link PPP (and the remote PPTP device supports it).
With multi-link, PPP packets themselves can be fragmented transparently
so the higher layer MTU can be much larger without any ill effects.

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to