You are not logged in.

#1 2008-12-24 12:23:56

Rude
Member
Registered: 2008-12-24
Posts: 12

How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

Hi all,

I am new to archlinux, and so far I love it! I could do with a bit of assistance though.
How does one go about enabling jumbo frames? I am on a gigabit network and would like to tweak jumbo frames to keep everything in sync on my network. I know the e1000 driver supports it as does my card, I just cant figure out how to write it up so it's activated upon boot.
Does it go in rc.conf, or do I need netcfg or something?
The interface is basically a regular DHCP connection on eth1.

Thanks!

Rude

Last edited by Rude (2008-12-27 11:08:25)

Offline

#2 2008-12-26 20:02:27

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

Try: ifconfig eth0 mtu 16000

Offline

#3 2008-12-26 23:25:40

Rude
Member
Registered: 2008-12-24
Posts: 12

Re: How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

Thanks for the reply.
That would change it, but just for the current session.
It needs to go in a config file, like network profile file or something to make it permanent.
Typically on other distros this would go in /etc/network or /etc/sysconfig/network-script/ifcfg-eth*

I cant find it on archlinux...what do you guys use for detailed network config? I know there's a basic piece in rc.conf but does this support an MTU parameter?

Thanks!

Rude

Offline

#4 2008-12-27 00:14:01

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

you just add it to the line in your rc.conf. just put 'mtu 9000' at the end of the 'eth0 blah blah blah' line.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2008-12-27 10:59:29

Rude
Member
Registered: 2008-12-24
Posts: 12

Re: How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

What if it's configured for DHCP?
Currently the rc.conf network section looks like this:

eth1="dhcp"
INTERFACES=(eth1)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

Mind you, by default I got no profiles in etc/network.d because of the "dhcp" setting. I think this is also the reason why my network interfaces are greyed out when I launch Gnome network settings (system - administration - network - it shows "this interface is not configured").

When I add mtu 9000 on the eth1=dhcp line, network doesn't start properly as I believe it starts looking for a device named mtu. I have tested several ways of writing it up but none of them worked. Can you tell me what you'd put in the config file to make it run, or how I can create a profile for the network card under network.d?

Thanks for all the help!

Rude

Offline

#6 2008-12-27 11:07:26

Rude
Member
Registered: 2008-12-24
Posts: 12

Re: How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

Solved!

I noticed some parameters for wireless networking include a IWCONFIG="<arguments>" line.
I figured that would probably work for IFCONFIG as well. And it did!

So, here's what you need to do:

In rc.conf after all the other network stuff, add a line that reads this:

IFCONFIG="mtu 9000"

I suppose you can pass any parameters here that IFCONFIG will normally take.
Thanks for all the help guys!

Rude

Offline

#7 2009-04-23 20:03:30

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

Rude wrote:

Solved!

I noticed some parameters for wireless networking include a IWCONFIG="<arguments>" line.
I figured that would probably work for IFCONFIG as well. And it did!

So, here's what you need to do:

In rc.conf after all the other network stuff, add a line that reads this:

IFCONFIG="mtu 9000"

I suppose you can pass any parameters here that IFCONFIG will normally take.
Thanks for all the help guys!

Rude

Can you post your /etc/rc.conf in full?  I am attempting to follow your instructions but my mtu isn't changing.  Here is mine:

eth1="dhcp"
INTERFACES=(eth1)
IFCONFIG="mtu 4000"
ROUTES=(gateway)

Last edited by graysky (2009-04-24 19:05:59)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2009-04-24 05:14:14

Rude
Member
Registered: 2008-12-24
Posts: 12

Re: How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

Hi,

Actually, later it didn't work for me anymore either. I am not sure why, but I've been having some problems passing network config for bridging and NIC bonding when using DHCP as well, that seem to relate to this bug:
http://bugs.archlinux.org/task/11781

Not sure if the problem lies in the same area with the network script apparently containing a bug.

Anyway, if you just want to get it to work and don't care about using a more crude solution, adding a line to /etc/rc.local will do the trick:

ifconfig eth1 mtu 4000

Hope it helps!

Rude

Offline

#9 2009-04-24 12:04:05

banshee28
Member
Registered: 2008-10-18
Posts: 336

Re: How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

Rude wrote:

Hi,

Actually, later it didn't work for me anymore either. I am not sure why, but I've been having some problems passing network config for bridging and NIC bonding when using DHCP as well, that seem to relate to this bug:
http://bugs.archlinux.org/task/11781

Not sure if the problem lies in the same area with the network script apparently containing a bug.

Anyway, if you just want to get it to work and don't care about using a more crude solution, adding a line to /etc/rc.local will do the trick:

ifconfig eth1 mtu 4000

Hope it helps!

Rude

i put just that in my rc.local and it still shows mtu 1500 in ifconfig. I also tried to enter a few variations of this on the cml  but none seem to take.

bash-3.2# ifconfig eht0 MTU 4000
MTU: Unknown host
ifconfig: `--help' gives usage information.
bash-3.2# ifconfig eht0 "MTU 4000"
MTU 4000: Unknown host
ifconfig: `--help' gives usage information.
bash-3.2# ifconfig eht0 MTU:4000
MTU:4000: Unknown host
ifconfig: `--help' gives usage information.
bash-3.2#

Arch64, AMD64, LXDE

Offline

#10 2009-04-24 13:41:58

dmartins
Member
Registered: 2006-09-23
Posts: 360

Re: How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

banshee28 wrote:
bash-3.2# ifconfig eht0 MTU 4000
MTU: Unknown host
ifconfig: `--help' gives usage information.
bash-3.2# ifconfig eht0 "MTU 4000"
MTU 4000: Unknown host
ifconfig: `--help' gives usage information.
bash-3.2# ifconfig eht0 MTU:4000
MTU:4000: Unknown host
ifconfig: `--help' gives usage information.
bash-3.2#

It's eth0, not eht0 wink

Offline

#11 2009-04-24 13:42:42

Rude
Member
Registered: 2008-12-24
Posts: 12

Re: How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

You are using capital MTU - try lower case.

Offline

#12 2009-04-24 19:08:40

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: How to enable Jumbo Frames on archlinux (MTU 9000)? <SOLVED>

Rude wrote:

Hi,

Actually, later it didn't work for me anymore either. I am not sure why, but I've been having some problems passing network config for bridging and NIC bonding when using DHCP as well, that seem to relate to this bug:
http://bugs.archlinux.org/task/11781

Not sure if the problem lies in the same area with the network script apparently containing a bug.

Anyway, if you just want to get it to work and don't care about using a more crude solution, adding a line to /etc/rc.local will do the trick:

ifconfig eth1 mtu 4000

Hope it helps!

Rude

Yeah, that's what I've been doing.  See this thread for details.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB