Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help!!!

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
Webwally
Guest





PostPosted: Thu Apr 21, 2005 4:08 pm    Post subject: Help!!! Reply with quote

Hi,

Does anyone know how to save an MTU setting in Mandrake 10.1? Reason being that my ISP is AOL and my MTU settings need to be 1400. They are 1500 by default, no probs in setting the MTU to 1400, upon rebooting the MTU goes back to 1500. Don't know how to save it.

[root@Mandrake jason]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:E0:4D:85:C4:FF
inet addr:10.0.0.3 Bcast:255.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::2e0:4dff:fe85:c4ff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1400 Metric:1
RX packets:5528 errors:0 dropped:0 overruns:0 frame:0
TX packets:6226 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2364445 (2.2 Mb) TX bytes:763605 (745.7 Kb)
Interrupt:5 Base address:0xc000
Cheers

Jason
Back to top
mugstar
LXF regular


Joined: Mon Apr 11, 2005 1:43 am
Posts: 184
Location: Scotland

PostPosted: Thu Apr 21, 2005 6:34 pm    Post subject: RE: Help!!! Reply with quote

AFAIK:
(as root)
Take the interface down: `ifdown eth0`
Set the MTU: `ifconfig eth0 mtu 1400`
Bring the interface back up`ifup eth0`

Hopefully if you reboot and do `ifconfig eth0` the setting should be as you want.

`man ifconfig` for more.
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Apr 21, 2005 7:06 pm    Post subject: RE: Help!!! Reply with quote

Hi,

Tried the above, did'nt keep the setting.

Jason
Back to top
mugstar
LXF regular


Joined: Mon Apr 11, 2005 1:43 am
Posts: 184
Location: Scotland

PostPosted: Thu Apr 21, 2005 8:02 pm    Post subject: RE: Help!!! Reply with quote

Hokay.

Try editing /sys/class/net/eth0/mtu as root and make sure the correct value is there.
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7602
Location: Midlands, UK

PostPosted: Thu Apr 21, 2005 8:11 pm    Post subject: RE: Help!!! Reply with quote

From looking at the difference between Mandrake and SuSE, MTU can be set by editing /etc/sysconfig/network-scripts/ifcfg-eth0

At the moment it probably says something like

Code:

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.100
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=yes


Add a line that says

Code:

MTU='1400'


and that should stick after a reboot. Of course, you will need root permissions to edit the file.
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Apr 21, 2005 9:43 pm    Post subject: RE: Help!!! Reply with quote

Hi,
I entered /sys/class/net/eth0/mtu and got a message saying permission denied.
Back to top
Andy



Joined: Mon Apr 04, 2005 6:29 pm
Posts: 90
Location: Trowbridge

PostPosted: Thu Apr 21, 2005 9:51 pm    Post subject: Reply with quote

Stupid question, I know, but did you try to access it as root?

AndyH
Back to top
View user's profile Send private message AIM Address MSN Messenger
Guest






PostPosted: Thu Apr 21, 2005 9:54 pm    Post subject: Reply with quote

Hi Andy,

Yes I did.

Jason
Back to top
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8365
Location: Warrington, UK

PostPosted: Thu Apr 21, 2005 9:54 pm    Post subject: Reply with quote

/sys is a virtual filesystem, like /proc. any changes you make there won't survive a reboot. Rhakios' suggestion is the way to do it.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Apr 21, 2005 9:58 pm    Post subject: Reply with quote

Hi,

Tried this, no sign of ifcfg-eth0 in this path /etc/sysconfig/network-scripts/ifcfg-eth0

Jason
Back to top
mugstar
LXF regular


Joined: Mon Apr 11, 2005 1:43 am
Posts: 184
Location: Scotland

PostPosted: Thu Apr 21, 2005 10:00 pm    Post subject: Reply with quote

The file ifcfg-eth0 is in the directory /etc/sysconfig/network-scripts/

Where does /sys/class/net/eth0/mtu take the value from if it's not included in /etc/sysconfig/network-scripts/ifcfg-eth0?

(Just curious...)
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7602
Location: Midlands, UK

PostPosted: Thu Apr 21, 2005 11:56 pm    Post subject: Reply with quote

Then do you have ifcfg-eth-anything-at-all? If you don't, I'm rather curious as to how your ethernet card works at all. SuSE usually names the ifcfg file after the mac address of the card, but my version of Mandrake (10.1 official) uses eth0. Have a look in /etc/sysconfig/network-scripts and see what else is there.
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
Guest






PostPosted: Fri Apr 22, 2005 9:53 am    Post subject: Reply with quote

Hi,
found /etc/sysconfig/network-scripts/ifcfg-eth0, opened the file but could not edit it. Did'nt have permission!

Jason
Back to top
Guest






PostPosted: Fri Apr 22, 2005 10:36 am    Post subject: Reply with quote

Hi all,

Managed to edit the file and enter MTU=1400. Rebooted and guess what? Hooooray!!! It did as you said! rebooted at MTU 1400. All I can say is that you lads certainly know your stuff!!! and I'm greatfull for the help you all gave me!

P.S What a great website this is!!!

Cheers

Jason Wink
Back to top
Guest






PostPosted: Fri Apr 29, 2005 8:17 pm    Post subject: Reply with quote

**** you
Back to top
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast