<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="font-family: Calibri, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">
<br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="font-family: Calibri, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:users-bounces@openvz.org">users-bounces@openvz.org</a>&gt; on behalf of Axton &lt;<a href="mailto:axton.grams@gmail.com">axton.grams@gmail.com</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>OpenVZ users &lt;<a href="mailto:users@openvz.org">users@openvz.org</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Sunday 28 February 2016 20:27<br>
<span style="font-weight:bold">To: </span>OpenVZ users &lt;<a href="mailto:users@openvz.org">users@openvz.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[Users] Virtuozzo7 beta - jumbo frames on veth<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div dir="ltr">I need to configure some veth interfaces with jumbo frames.&nbsp; I can setup everything properly on the host where the interfaces all have mtu 9000:
<div>
<div>2: enp0s20f0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 9000 qdisc mq master team0 state UP mode DEFAULT qlen 1000</div>
<div>&nbsp; &nbsp; link/ether 0c:c4:7a:6b:95:55 brd ff:ff:ff:ff:ff:ff</div>
</div>
<div>
<div>3: enp0s20f1: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 9000 qdisc mq master team0 state UP mode DEFAULT qlen 1000</div>
<div>&nbsp; &nbsp; link/ether 0c:c4:7a:6b:95:55 brd ff:ff:ff:ff:ff:ff</div>
</div>
<div>
<div>4: enp0s20f2: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 9000 qdisc mq master team0 state UP mode DEFAULT qlen 1000</div>
<div>&nbsp; &nbsp; link/ether 0c:c4:7a:6b:95:55 brd ff:ff:ff:ff:ff:ff</div>
</div>
<div>
<div>5: enp0s20f3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 9000 qdisc mq master team0 state UP mode DEFAULT qlen 1000</div>
<div>&nbsp; &nbsp; link/ether 0c:c4:7a:6b:95:55 brd ff:ff:ff:ff:ff:ff</div>
</div>
<div>
<div>7: team0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 9000 qdisc noqueue state UP mode DEFAULT</div>
<div>&nbsp; &nbsp; link/ether 0c:c4:7a:6b:95:55 brd ff:ff:ff:ff:ff:ff</div>
</div>
<div>
<div>46: team0.97@team0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 9000 qdisc noqueue master vmbr97 state UP mode DEFAULT</div>
<div>&nbsp; &nbsp; link/ether 0c:c4:7a:6b:95:55 brd ff:ff:ff:ff:ff:ff</div>
</div>
<div>
<div>47: vmbr97: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 9000 qdisc noqueue state UP mode DEFAULT</div>
<div>&nbsp; &nbsp; link/ether 0c:c4:7a:6b:95:55 brd ff:ff:ff:ff:ff:ff</div>
</div>
<div><br>
</div>
<div>When I start a container with a veth interface on vmbr97, the bridge interface falls back to mtu 1500:<br>
</div>
<div>
<div><br>
</div>
<div>[root@cluster-02 network-scripts]# prlctl start <a href="http://ha21t02dh.tech.abc.org">
ha21t02dh.tech.abc.org</a></div>
<div>Starting the CT...</div>
<div>The CT has been successfully started.</div>
</div>
<div>
<div>[root@cluster-02 network-scripts]# ip link show vmbr97</div>
<div>47: vmbr97: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UP mode DEFAULT</div>
<div>&nbsp; &nbsp; link/ether 0c:c4:7a:6b:95:55 brd ff:ff:ff:ff:ff:ff</div>
</div>
<div><br>
</div>
<div>brctl shows that this container is the only one on this network:</div>
<div><br>
</div>
<div>
<div>[root@cluster-02 network-scripts]# brctl show vmbr97</div>
<div>bridge name &nbsp; &nbsp; bridge id &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STP enabled &nbsp; &nbsp; interfaces</div>
<div>vmbr97 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;8000.0cc47a6b9555 &nbsp; &nbsp; &nbsp; no &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;team0.97</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; veth42f2f0a5</div>
</div>
<div><br>
</div>
<div>The container is running centos7.&nbsp; I have setup mtu 9000 inside the container:</div>
<div><br>
</div>
<div>
<div>CT-6598defa /# cat /etc/sysconfig/network-scripts/ifcfg-eth1</div>
<div>DEVICE=eth1</div>
<div>BOOTPROTO=none</div>
<div>ONBOOT=yes</div>
<div>HOSTNAME=<a href="http://ha21t02dh-c.tech.abc.org">ha21t02dh-c.tech.abc.org</a></div>
<div>NM_CONTROLLED=no</div>
<div>TYPE=Ethernet</div>
<div>MTU=9000</div>
<div>IPADDR=10.1.28.9</div>
<div>PREFIX=22</div>
<div>DEFROUTE=no</div>
<div>IPV6INIT=no</div>
<div>IPV6_AUTOCONF=no</div>
<div>DOMAIN=&quot;...&quot;</div>
<div>DNS1=10.0.20.250</div>
<div>DNS2=10.0.20.252</div>
</div>
<div><br>
</div>
<div>I can manually fix the issue by setting the mtu to 9000 on the veth interface after the container is started as follows.</div>
<div><br>
</div>
<div>
<div>
<div>
<div>[root@cluster-01 ~]# ip l show vmbr97</div>
<div>47: vmbr97: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UP mode DEFAULT</div>
<div>&nbsp; &nbsp; link/ether 0c:c4:7a:6b:92:56 brd ff:ff:ff:ff:ff:ff</div>
</div>
</div>
<div>[root@cluster-01 ~]# ip link set dev veth42346d2f mtu 9000<br>
</div>
</div>
<div>
<div>[root@cluster-01 ~]# ip l show vmbr97</div>
<div>47: vmbr97: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 9000 qdisc noqueue state UP mode DEFAULT</div>
<div>&nbsp; &nbsp; link/ether 0c:c4:7a:6b:92:56 brd ff:ff:ff:ff:ff:ff</div>
</div>
<div><br>
</div>
<div>The problem with having to do this each time a container is stopped/started should be obvious.</div>
<div><br>
</div>
<div>My question is this: how do I configure the host and guest so the mtu settings for jumbo frames are setup properly at container start time for the veth interface on the host.</div>
</div>
</div>
</div>
</blockquote>
</span>
<div style="font-family: Calibri, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">
We don't have such setting (MTU for veth) right now &#8211; libvzctl should be patched for it.</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">
<br>
</div>
<div><font face="Calibri,sans-serif">Setup of veth params is performed in&nbsp;</font><font face="Andale Mono" style="font-size: 12px;">/usr/libexec/libvzctl/scripts/vz-netns_dev_add,</font><font> O</font>ne can modify it (or vz-functions and add a call of new function
 to the vz-netns_dev<span style="font-style: italic;">_</span>add) to add above manual step there. Disadvantage of patching in place is that after libvzctl update these changes will be lost. So, patch to libvzctl is definitely the preferable way to fix it permanently.</div>
<div><br>
</div>
<div>Thank you,</div>
<div>Dmitry.</div>
<div><br>
</div>
<div><font face="Andale Mono" style="font-size: 12px;">&nbsp;&nbsp;</font></div>
<span id="OLK_SRC_BODY_SECTION" style="font-family: Calibri, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div dir="ltr">
<div><br>
</div>
<div>Axton Grams</div>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>