From owner-freebsd-net@FreeBSD.ORG Tue Sep 10 12:23:49 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5704430B for ; Tue, 10 Sep 2013 12:23:49 +0000 (UTC) (envelope-from michael.schuh@gmail.com) Received: from mail-oa0-x231.google.com (mail-oa0-x231.google.com [IPv6:2607:f8b0:4003:c02::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 24981252C for ; Tue, 10 Sep 2013 12:23:49 +0000 (UTC) Received: by mail-oa0-f49.google.com with SMTP id i7so7680569oag.22 for ; Tue, 10 Sep 2013 05:23:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Kg0YH9GnyB0TBzLKEWa21B7e84zQ7jRskxYlPUCOn7k=; b=leFuupcNOW8wLiR8vNpsVRu7WKoKTHMDHVp+O3+Qt9Mkrla2UGn9me7MC+LPgm86G9 3nRd0HZYA6LxGFUyjIM/eZnzzlw2BO2OpoRd1tOD3T627k7gjAKRS3gGTee1PSRTi0dH eJd1oJOAkDyIKFF+4+JcFTtKXZS8AanSGDjYKy0wgckVETYLbb3QSmr7trBDT6RD/pp5 jfKIDdlj62utQCbVrf2P7nM2LhCw7MO22EuugxAebpXIIzk26M7Wc74/LLrPJu5933VS 9bNxbku/OkxwBkYqaD6DKiC5sV+npx8hGajRWj9OVW2wkIgLnS0Y4N+IwCuXMYITsT4a ftng== MIME-Version: 1.0 X-Received: by 10.182.129.201 with SMTP id ny9mr15754564obb.0.1378815828399; Tue, 10 Sep 2013 05:23:48 -0700 (PDT) Received: by 10.60.52.7 with HTTP; Tue, 10 Sep 2013 05:23:48 -0700 (PDT) Date: Tue, 10 Sep 2013 14:23:48 +0200 Message-ID: Subject: Re: igb Intel Gigabit Network Connection I350, lagg, vlan - increase mtu From: Michael Schuh To: FreeBSD Net Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Sep 2013 12:23:49 -0000 > Hi, > > My server is running with 4 Gigabit NICs: > > igb0@pci0:5:0:0: class=0x020000 card=0x152115d9 chip=0x15218086 > rev=0x01 hdr=0x00 > vendor = 'Intel Corporation' > device = 'I350 Gigabit Network Connection' > class = network > subclass = ethernet > igb1@pci0:5:0:1: class=0x020000 card=0x152115d9 chip=0x15218086 > rev=0x01 hdr=0x00 > vendor = 'Intel Corporation' > device = 'I350 Gigabit Network Connection' > class = network > subclass = ethernet > igb2@pci0:5:0:2: class=0x020000 card=0x152115d9 chip=0x15218086 > rev=0x01 hdr=0x00 > vendor = 'Intel Corporation' > device = 'I350 Gigabit Network Connection' > class = network > subclass = ethernet > igb3@pci0:5:0:3: class=0x020000 card=0x152115d9 chip=0x15218086 > rev=0x01 hdr=0x00 > vendor = 'Intel Corporation' > device = 'I350 Gigabit Network Connection' > class = network > subclass = ethernet > > > those NICs are connected to switch with LACP aggregation: > > lagg0: flags=8843 metric 0 mtu 1500 > > options=401bb > ether 00:25:90:c1:1d:18 > inet6 fe80::225:90ff:fec1:1d18%lagg0 prefixlen 64 scopeid 0x8 > nd6 options=21 > media: Ethernet autoselect > status: active > laggproto lacp lagghash l2,l3,l4 > laggport: igb3 flags=1c > laggport: igb2 flags=1c > laggport: igb1 flags=1c > laggport: igb0 flags=1c > > > Using this lagg interface I created 2 vlan interfaces: > > vlan14: flags=8843 metric 0 mtu > 1500 > options=103 > ether 00:25:90:c1:1d:18 > inet 192.168.1.65 netmask 0xffffff00 broadcast 192.168.1.255 > inet6 fe80::225:90ff:fec1:1d18%vlan14 prefixlen 64 scopeid 0x9 > nd6 options=29 > media: Ethernet autoselect > status: active > vlan: 14 parent interface: lagg0 > > > vlan900: flags=8843 metric 0 mtu > 1500 > options=103 > ether 00:25:90:c1:1d:18 > inet6 fe80::225:90ff:fec1:1d18%vlan900 prefixlen 64 scopeid 0xa > inet 172.25.25.65 netmask 0xffff0000 broadcast 172.25.255.255 > nd6 options=29 > media: Ethernet autoselect > status: active > vlan: 900 parent interface: lagg0 > > > I would like to increase the MTU on cards, but I can't set it in any way: > > % sudo ifconfig igbX mtu 9000 [14:59:37] > ifconfig: ioctl (set mtu): Invalid argument > > > event setting the MTU to 1500 (default value) results in same error. > same for lagg0, and vlanX > > > How can I increase the MTU for lagg interface ? > Is it possible without rebooting or only via /etc/rc.conf ? > > Regards, > -- > Marek Salwerowicz > Hi Marek, if i remember well the order of doing so is important. #1 set the mtu on each physical NIC to 9000 #2 create the lagg . . . on a running system it might consist of: destroy the vlans, destroy the lagg, set the mtu on each nic and rebuild the lagg and add the vlans. HTH regards michael