1b3ba
![]() |
|
|
|
|
|||||||
| Networking Network related discussions (including general TCP/IP stuff, routing, etc). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
I use link aggregation with CARP and I want to change the MTU on lagg0 to 9000. How to do that?
My rc.conf right now is this: Code:
defaultrouter="192.168.1.1" ifconfig_re0="up" ifconfig_msk0="up" cloned_interfaces="lagg0" ifconfig_lagg0="laggproto lacp laggport re0 laggport msk0 192.168.1.2/24"
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by DutchDaemon; December 22nd, 2011 at 05:52. Reason: [color] instead of [file]? Seriously? |
|
#3
|
||||
|
||||
|
From
Code:
man lagg | less -p MTU Quote:
Code:
ifconfig_re0="up mtu 9000" ifconfig_msk0="up" cloned_interfaces="lagg0" ifconfig_lagg0="laggproto lacp laggport re0 laggport msk0 192.168.1.2/24"
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by DutchDaemon; December 22nd, 2011 at 05:53. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#4
|
||||
|
||||
|
The sentence right after that says
Quote:
|
|
#5
|
||||
|
||||
|
I am lost about maximum and minimum values. To understand. I must set on re0 and msk0 the maximum or the minimum MTU? This phrase I cannot understand what means:
Quote:
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by DutchDaemon; December 22nd, 2011 at 05:54. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#6
|
||||
|
||||
|
By testing actual values, figure out the biggest MTU re0 supports (6122 here). Then figure out the biggest MTU msk0 supports. Use the smaller value of those two for both. So if msk0 can have an MTU of 9000, they both should be set to 6122, the smaller of the two. If msk0 only supports jumbo frames up to 4096, use 4096 for both. If msk0 doesn't support jumbo frames at all, they both have to be 1500 (so don't set the MTU at all).
Last edited by DutchDaemon; December 22nd, 2011 at 05:54. |
| The Following User Says Thank You to wblock@ For This Useful Post: | ||
sk8harddiefast (December 21st, 2011) | ||
|
#7
|
||||
|
||||
|
Ok. I understood
How can I find the highest limit of jumbo frames for my re0 and for my msk0? And set the minimum of them for both. Right?
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by DutchDaemon; December 22nd, 2011 at 05:55. Reason: STOP USING COLOR! |
|
#8
|
||||
|
||||
|
Try to set a value with ifconfig(8). My re0 gives an error for values larger than 6122. msk(4) says it will take up to 9022, but that might vary depending on the card. em(4) says the maximum is 16114, but mine only handles 9216. Try it:
# ifconfig msk0 mtu 9022If it works, the easiest way to change things is to set the new value in /etc/rc.conf and restart. Of course they both have to be the same for lagg(4), and the switch also has to support jumbo frames. |
|
#9
|
||||
|
||||
|
Code:
ifconfig msk0 mtu 9022 ifconfig: ioctl (set mtu): Invalid argument Quote:
Code:
ifconfig re0 mtu 6123 ifconfig: ioctl (set mtu): Invalid argument ifconfig re0 mtu 6122 ifconfig: ioctl (set mtu): Invalid argument
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by sk8harddiefast; December 21st, 2011 at 04:40. |
|
#10
|
||||
|
||||
|
Try much smaller values, like 4096.
|
|
#11
|
||||
|
||||
|
I tried even to set MTU on 2000. Even there I get the same answer :/
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by DutchDaemon; December 22nd, 2011 at 05:56. |
|
#12
|
||||
|
||||
|
The change on re0 ought to work. Are you trying that as root?
Last edited by DutchDaemon; December 22nd, 2011 at 05:56. |
|
#13
|
||||
|
||||
|
Even as root I get the same.
Code:
[ember@BSD|ZFS ~]$ su root Password: BSD|ZFS# ifconfig re0 mtu 6122 ifconfig: ioctl (set mtu): Invalid argument BSD|ZFS# ifconfig re0 mtu 2000 ifconfig: ioctl (set mtu): Invalid argument
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 |
|
#15
|
||||
|
||||
|
Code:
pciconf -lv | grep -A4 re0@
re0@pci0:5:4:0: class=0x020000 card=0x820d1043 chip=0x816710ec rev=0x10 hdr=0x00
vendor = 'Realtek Semiconductor Co., Ltd.'
device = 'RTL-8110SC/8169SC Gigabit Ethernet'
class = network
subclass = ethernet
Quote:
__________________
==================================== | -------> UNIX. Live Free Or Die! <-------- | ==================================== You can say: I can't do something because is difficult. You must say: I tried a lot before say that I can't. Never Give up. http://unixsystems.dyndns.org/ I am not an BSD expert. But I really want to help. Don't afraid to ask me anything. If I can I will help! Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416 Last edited by sk8harddiefast; December 22nd, 2011 at 00:08. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VirtualBox and Bridging with lagg0 on host | skeyby | Installation and Maintenance of FreeBSD Ports or Packages | 0 | December 1st, 2011 16:10 |
| Jumbo frames and windows mtu size | Sylhouette | Networking | 4 | November 9th, 2011 12:54 |
| Bridge and manipulating frames | espric | Firewalls | 2 | October 7th, 2011 19:13 |
| CARP + Jumbo Frames (can't set mtu) | Pfarthing6 | Networking | 2 | June 27th, 2011 19:05 |
| Non tagged frames statistics | Antti | Networking | 3 | November 3rd, 2009 00:35 |