LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2016, 06:13 PM   #1
sosfc
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Rep: Reputation: Disabled
Smile nic bonding and jumbo frames


Hi guys,

This is my first post on the forum, so I apologize if my question was already asked.
I have two proxmox 4.2 (based on debian 8) servers with 4 nics.
1 is for admin network and 2 are dedicated to nas access (via NFS). Those nics are bonded and it works fine. Below is my bond :
auto bond0
iface bond0 inet static
address 192.168.253.199
netmask 255.255.255.0
slaves eth1 eth2
bond_miimon 100
bond_mode 802.3ad
bond_xmit_hash_policy layer2
bond_downdelay 500
bond_updelay 900

However, when I change the mtu of the bond to 9000 (and yhe one of the ywo slave interfaces), the test with ping -s 9000 my_nas_ip does not work

My switch is a netgear GS728TXS with MTU at 9028
My nas is a synology RS814 RP+ with MTU at 9000

I tried with a bridge instead of the bond, and ping -s 9000 my_nas_ip works

Is there anything I have forgotten to configure my bond ?

Thanks
Fernand
 
Old 06-04-2016, 11:49 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
First am I understanding you correctly you are only changing one interface and not both on the Bond?

Second Bond interface doesn't mean you are going to get double the download or upload. Connections between hosts will only use one of the 2 interfaces. That being said if you only changed one of the interfaces then it could be possible that the communications between hosts was using the interface you never changed.
 
Old 06-05-2016, 07:12 AM   #3
sosfc
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi
Thanks for your reply

First point : no, I also have to change the switch configration (remove the LACP configuration)
 
Old 06-06-2016, 09:40 AM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
OK, you should only be making the mtu change to the bond interface and you should also ensure that the switch is setup the same.

Last edited by lazydog; 06-06-2016 at 09:52 AM.
 
Old 06-10-2016, 02:57 PM   #5
sosfc
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Post

Hi

ok, I changed the configuration of my bond :
auto eth1
allow-hotplug eth1
iface eth1 inet manual
mtu 8000

allow-hotplug eth2
auto eth2
iface eth2 inet manual
mtu 8000

auto bond0
iface bond0 inet static
address 192.168.253.199
netmask 255.255.255.0
slaves eth1 eth2
bond_miimon 100
bond_mode 802.3ad
bond_xmit_hash_policy layer2
bond_downdelay 500
bond_updelay 900
mtu 8000

root@pve:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr1 state UP mode DEFAULT group default qlen 1000
link/ether e4:11:5b:d6:f2:64 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 8000 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
link/ether e4:11:5b:d6:f2:66 brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 8000 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
link/ether e4:11:5b:d6:f2:66 brd ff:ff:ff:ff:ff:ff
5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether e4:11:5b:d6:e2:f2 brd ff:ff:ff:ff:ff:ff
6: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 8000 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether e4:11:5b:d6:f2:66 brd ff:ff:ff:ff:ff:ff
7: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether e4:11:5b:d6:f2:64 brd ff:ff:ff:ff:ff:ff
root@pve:~#

The mtu of my switch is 8028.
It still doesn't work. Is there something I misunderstood ?
 
Old 06-10-2016, 11:46 PM   #6
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
What does the switch config look like for this connection?
 
Old 06-11-2016, 05:45 AM   #7
sosfc
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Post

Hi,

The switch is configured as follow (see sw.png)
- lag with the two ports
- mtu 8028
Attached Thumbnails
Click image for larger version

Name:	sw.png
Views:	169
Size:	9.2 KB
ID:	22072  
 
Old 06-11-2016, 07:38 PM   #8
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
I see they are part of a trunk. How is the trunk configured?
 
Old 06-12-2016, 11:30 AM   #9
sosfc
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Post

Hi

Yes that is correct, there is a trunk
See attached files : LACP , ports 11 and 12
Attached Thumbnails
Click image for larger version

Name:	sw2.png
Views:	217
Size:	18.1 KB
ID:	22089   Click image for larger version

Name:	sw3.png
Views:	40
Size:	4.7 KB
ID:	22090  
 
Old 06-13-2016, 08:50 AM   #10
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
OK, but how is the truck configured?
 
Old 06-13-2016, 01:42 PM   #11
sosfc
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Post

Hi

I think I didn't understand the question.
The trunk is declared with the LACP mode.
There is nowhere else I decladred it.
Have I forgotten something ?
 
Old 06-15-2016, 11:14 AM   #12
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Used the wrong term I'm looking for the Port-channel. Sorry
 
Old 06-15-2016, 12:04 PM   #13
sosfc
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Post

Hi Thank you for your reply.
See attached file, hope this is what you wanted !
Attached Thumbnails
Click image for larger version

Name:	sw5.png
Views:	154
Size:	9.2 KB
ID:	22115  
 
Old 06-15-2016, 01:42 PM   #14
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
It is a trunk member to what? How is the trunk configured?
 
Old 06-15-2016, 03:10 PM   #15
sosfc
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Post

I only created the trunk by selecting the ports in the LAG menbership and defining the LACP method.
Have I forgotten somethiong ?
 
  


Reply

Tags
bond, frames, jumbo, linux, mtu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
enable jumbo frames permanently prkhr4u Linux - Hardware 4 03-02-2014 10:34 PM
[SOLVED] sessions locking using jumbo frames clcbluemont Linux - Networking 3 09-09-2010 03:17 PM
How to set jumbo frames in linux? linuxunix Linux - Newbie 1 03-28-2010 09:07 AM
Jumbo Frames tntcoder Linux - Networking 2 09-03-2007 07:30 AM
Support of Jumbo frames by NIC bzlaskar Linux - Hardware 3 02-22-2007 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration