You are not logged in.
Pages: 1
hey all. how i can change the MTU permanantly?
Offline
probably just add the 'mtu 1420' or whatever... to the line in rc.conf for your interface.
that line is just fed to ifconfig i believe.
"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
probably just add the 'mtu 1420' or whatever... to the line in rc.conf for your interface.
that line is just fed to ifconfig i believe.
i tried that after searching the forums for the answer. someone suggested adding "mtu xxxx" to the eth0 line in rc.conf. but that just killed my net.
Offline
where did you add it into the eth0 line?
it should look like..
eth0="eth0 10.128.128.50 netmask 255.255.255.0 broadcast 10.128.128.255 mtu 1420""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
where did you add it into the eth0 line?
it should look like..eth0="eth0 10.128.128.50 netmask 255.255.255.0 broadcast 10.128.128.255 mtu 1420"
ahh, ok. i did it wrong then (n00b!) hehe
i did it like eth0="dhcp" "mtu 1492"
lemme try the correct way, ill get back to ya!.
Offline
oh. if your doing dhcp.. i don't know if that will work..
hmm...
"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
nope, didnt work. the search continues.
Offline
Echo the desired value to /sys/class/net/eth0/mtu (add "echo value > /sys/class/net/eth0/mtu" to /etc/rc.local to make it permanent).
Creating an iptables rule should also work, but that's a bit more complicated solution.
Offline
Echo the desired value to /sys/class/net/eth0/mtu (add "echo value > /sys/class/net/eth0/mtu" to /etc/rc.local to make it permanent).
Creating an iptables rule should also work, but that's a bit more complicated solution.
ok, that didnt work. it didnt kill my net this time, but ifconfig says MTU is still at 1500. there is also an error line at bootup. it goes by so fast (arch boots soo FAST i luv it!) that i cant read it all. but i did catch that its refering to the echo line in /etc/rc.local.
heres how i have it entered in rc.local
!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
#set mtu
"echo 1492 > /sys/class/net/eth0/mtu"
does that look right?
Offline
there shouldn't be any quotes around the echo line scarney
"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
doh! grr. ok lemme fix that heh.
Offline
Remove the "".
Execute it normally in command line (as root) to see whether it actually works before rebooting.
If you have bash set up not to overwrite files with >, use >> instead.
Offline
weee, it works!. removing the quotes did it, you guys are the best.
Offline
if I'm not mistaken you can also set it via ifconfig
Offline
Now that you mention - actually, you're right.
It's actually as easy as executing "ifconfig eth0 mtu value". Seems we were too stuck on setting it while putting the interface up (vide cactus' suggestion) ;-)
Offline
ifconfig sets it temporarily. once ya reboot, it resets back to 1500.
Offline
Well, it's the same with changing mtu in /sys - that's why one should add either of those lines to /etc/rc.local, in order to make it permanent.
Offline
Pages: 1