interface-set-mtu!

Synopsis

(interface-set-mtu! interface mtu-size)

Parameters

  • interface
  • mtu-size

Description

This procedure sets the MTU for the specified interface. Values netween 1000 and 10000 are accepted. Superuser (root) permissions are required. For injecting 802.1Q tagged packets increasing the standard MTU of 1500 by 4 bytes to 1504 is recommended, for additional IEEE 802.1ad “double tagging” 1508. If this procedure returns #f, (strerror (errno)) may be useful.

Side Effects

The MTU size is set.

Return Value

#t on success, #f on failure.

Example

> (define interface (interface-attach "en0"))
interface
> (interface-set-mtu! interface 1504)
#t
>