Set MTU using flannel config

1,257 views
Skip to first unread message

Sukumar

unread,
Dec 16, 2016, 8:59:33 AM12/16/16
to CoreOS User
Hello!

Is there any way for me to set my own MTU value in flannel?

core@ip-10-150-19-122 ~ $ cat /run/flannel/subnet.env
FLANNEL_NETWORK=10.0.0.0/16
FLANNEL_SUBNET=10.0.41.1/24
FLANNEL_MTU=9001

From what I understand, these values:
FLANNEL_NETWORK - can be set by inserting value into etcd
FLANNEL_SUBNET - created automatically
FLANNEL_MTU - derived from the default network interface of the host

How can I go about setting my own MTU value? (I'd like to set it to 1500)

Thanks!
Sukumar

Kyle Brown

unread,
Dec 19, 2016, 2:49:49 PM12/19/16
to Sukumar, CoreOS User
Sukumar,

MTU cannot be configured via subnet.env. See this comment by Eugene: flannel#463

MTU can be set manually: 

# ip link set dev flannel0 mtu 1300

Unfortunately, this will not survive a restart of the flanneld.service unit.

Cheers,
Kyle Brown


--
You received this message because you are subscribed to the Google Groups "CoreOS User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coreos-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sukumar

unread,
Dec 19, 2016, 4:43:50 PM12/19/16
to CoreOS User, sbh...@gmail.com
Hi Kyle,

Thanks for the clarification! I've now created a systemd service which does the job.

Cheers,
Sukumar
To unsubscribe from this group and stop receiving emails from it, send an email to coreos-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages