Setting MTU

Hi,

My dsl connection works best if the mtu is set to 1400.

The problem is although 1400 is already set as mtu value in network managaer it connects at 1492 which I found out by

ifconfig ppp0

At 1492 some pages won’t open at all so I do

sudo ifconfig ppp0 mtu 1400

It stays at 1400 until I disconnect the dsl connection. Once I redial it again reverts back to 1492.

How do I make 1400 as the permanent mtu value?

Thanks in advance.

On 03/18/2011 10:06 PM, suse kid wrote:
>
> How do I make 1400 as the permanent mtu value?

two ways:

add/change MTU=‘1400’ in /etc/sysconfig/network/ifcfg-ppp0 (IF it is
that ppp0, if not, use different, maybe eth0)

OR

YaST => System => /etc/sysconfig Editor => Hardware => Network =>
<Choose interface> (in this case ppp0) => MTU then type 1400 in the
“Setting of MTU” at the top and then press OK


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.1.8, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

@suse_kid
If I may, usually 1500 is the standard for DSL.
You’re connected PC to modem to DSL ?
Modem doesn’t have username, password, mtu for your DSL ISP?
IIRC, you should be using mtu sizes in multiples of 16, ie, 1404, 1420, etc.

Mainboard of my PC just went bad. I will apply your solution as soon as I replace it.

No matter what mtu value I set it connects at 1492.
Okay I will try 1404 instead of 1400.
While downloading files from sites like rapidshare, etc if you don’t have a premium account they impose a time gap between two downloads. So what I do is I simply disconnect & redial my dsl connection which renews my ip & I can then continue downloading the next file. If I configure my dsl connection using the modem’s inbuilt dialer I have to restart the modem each time I want to renew my ip which reduces the life of modem/router in the long run. I have already lost a modem because of this reason. Therefore in my case a bridged connection is more appropriate.

@suse_kid
Ok, so you’re using your DSL modem as a Dial up modem, by physically turning off the modem forcing it to obtain a new IP from it’s DHCP server. Instead of patience? Chuckle, sorry.
Why would that affect your MTU size?
I think there’s an issue with traffic through DSL connections that’s supposed to improve QoS after being connected for a few days. Howeever you’re changing the IP every 4hrs or so, maybe that’s why you have trouble with some sites?
Have you tried accessing the site with anonymous surfing? Tor, Jap?

No. I used to do that. Now I don’t physically turn off the modem. Instead I just disconnect my dsl connection using network manager & the connect again which renews my global which is provided by my ISP.

This problem of some sites not opening is quite old. I guess it started approx. two years back. Yes, I tried proxy sites & the pages opened too. But I wanted a solution & not a workaround. After googling I got the idea of changing the mtu value & it worked. Now I just want to set the mtu value permanently. I will replace my mainboard within this week & write back what happens.

Thanks.

I have purchase a new motherboard but I am facing a problem with openSUSE not loading.

openSUSE 11.4 won’t boot after installing new motherboard

Logged in as root…then added MTU=‘1400’ in /etc/sysconfig/network/ifcfg-eth0

Didn’t find any ppp0 there.

Then logeed out of root account & logfed into my regular account
but still mtu of eth0 is 1500 & that of ppp0 is 1492.

On 03/24/2011 08:06 PM, suse kid wrote:
>
> Logged in as root…then added MTU=‘1400’ in
> /etc/sysconfig/network/ifcfg-eth0
>
> Didn’t find any ppp0 there.
>
> Then logeed out of root account& logfed into my regular account

did you log into KDE, Gnome, LXDE or other desktop environment (which)
as root and edit the listed file? and then log out, and log back in as
yourself again??

> but still mtu of eth0 is 1500& that of ppp0 is 1492.

are you using a dial up modem or broadband over ethernet or what?


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.1.8, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

Yes, I
1> logged into gnome as root
2> edited the listed file
3> then logged out from the root account
4> logged back as myself
5> then in terminal did su to become root then used ifconfig to find out the status of eth0 & ppp0

I am using broadband over ethernet. I have configured my connection using network manager.
So, I am quite surprised to find no such file as ppp0 in /etc/sysconfig/network/.

Its ppp0’s mtu which I wish to change not eth0’s.

On 03/25/2011 12:06 AM, suse kid wrote:

> I am using broadband over ethernet. I have configured my connection
> using network manager.
> So, I am quite surprised to find no such file as ppp0 in
> /etc/sysconfig/network/.
>
> Its ppp0’s mtu which I wish to change not eth0’s.

couple of things, first ppp0 is the interface you would use if you had
a modem connected to your motherboard…since you don’t, and you are
using ethernet to connect to your broadband modem, you are using eth0

so, stop trying to set MTU or anything else in ppp0, there is no ppp0

OWWWW! i just read your first post again: i can’t help you in your
effort to avoid buying a premium account…

well, i think while you use the … hmmmmm, i was gonna say you
would have to change the ppp MTU after that port was in use…but, i
really have no idea how you call up a ppp link though a broadband
modem…you figure all of that out yourself…sorry…

BUT–second, you should never log into KDE/Gnome/XFCE or any other
*nix-like graphical user interface desktop environment as root…

doing so 1) opens you up to several different security problems if you
(for example) browse the net, 2) too many too easy ways to damage your
system no matter how careful your actions (for example: well
documented cases of unintended change of ownership of ~/.ICEauthority
and ~/.Xauthority from user to root sometimes occurs), 3) and, anyway
logging into KDE/etc as root is never required to do any and all
administrative duties…

so, always log in as yourself, and “become root” by using a root
powered application (like YaST, File Manager Superuser Mode) or using
“su -”, sudo, kdesu, or gnomesu in a terminal to launch whatever tool
is needed (like Kwrite to edit a config file)…read more on all that
here:

http://en.opensuse.org/SDB:Login_as_root
http://tinyurl.com/ydbwssh
http://tinyurl.com/4nsaqst
http://tinyurl.com/6ry6yd

additionally: after logging into KDE/Gnome/etc as root, if you
experience problems (for example, with uncommanded file ownership and
permissions changes) and if you can provide us with details of what
you were doing while you were logged in as root, that would help us
identify if there’s a bug that needs to be fixed…thanks for your help…


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.1.8, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

I am trying to learn something here so please consider replying.

Network manager shows two connections one is eth0 (which was already there) & the other is dsl connection 1 (which I have configured) .

When I am connected to eth0 (& not dsl connection 1) ifconfig in terminal prints information about two interfaces namely eth0 & lo.

Whereas when I am connected to dsl connection 1 ifconfig in terminal prints information about three interfaces namely eth0, lo & **ppp0 **

Q1) What is this ppp0 ?

While logged in as myself I tried

@linux-so4e:~> sudo gedit /etc/sysconfig/network/ifcfg-eth0

(gedit:6526): Gtk-WARNING **: cannot open display:

As you can see it didn’t work. Was I doing something wrong ?

On 03/25/2011 05:06 PM, suse kid wrote:
>
> Whereas when I am connected to dsl connection 1 ifconfig in terminal
> prints information about three interfaces namely eth0, lo& *ppp0 *
>
> Q1) WHAT IS THIS PPP0 ?

sorry i do not know…i do know that when i was using a dial up modem
i was always dealing with ppp0, and since i moved to broadband via
ethernet i’ve not seen a ppp0 on my system…i really have NO idea
how you are causing a broadband modem to “dial up”…

well, let me ask: do you have a dial up modem attached? if so then
that is what that ppp0 is…

but, i have no idea how to set two different MTUs, one for ethernet
and one for dial up…

>
> (gedit:6526): Gtk-WARNING **: cannot open display:
>
> As you can see it didn’t work. Was I doing something wrong ?

yes…

for example: in openSUSE if you are logged into the GUI as a regular
user (which you should always be) then to (for example) use gedit
with root power you must use this:


gnomesu gedit

if using KDE you would use kdesu

and, if you look at what i wrote i referenced both kdesu and gnomesu…

here is the deal: don’t assume techniques and procedures you may have
learned in one Linux distro will work in all…

when i started in Linux an old guy told me to: consider each distro as
a different operating system…

and, i’ve found that to be a really good thing to remember…for
example, there are on the net any number of man pages available to
read…but, the only man page you should ever reference for your
system is ON your system…because only that one is for your system…

make sense? (lots to learn here, even if you have 10 years experience
in Red Hat/Debian etc etc etc etc…)


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.1.8, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

No, I don’t have a dial up modem connected to my system. I connect using an adsl modem/router. D-Link 1-Port Ethernet & USB ADSL2+ Router

Okay…no problem . Thanks for your time.


gnomesu gedit

Thanks again.

On 03/25/2011 11:36 PM, suse kid wrote:
>
> Okay…no problem . Thanks for your time.

welcome!!

>
> gnomesu gedit
>
> Thanks again.

welcome again…always.


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.1.8, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

SOLUTION FOUND

gnomesu nautilus

Then goto

/etc/NetworkManager/system-connections/

open the file with the name of your dsl connection

change

[ppp]
refuse-eap=true
refuse-mschap=true
refuse-mschapv2=true
nodeflate=true
mru=1492 >>>>>>>>>>>>Change this to your desired value
mtu=1492>>>>>>>>>>>>
Change this to your desired value
lcp-echo-failure=3
lcp-echo-interval=20

Then

sudo /etc/init.d/network restart

DONE.

On 03/31/2011 08:36 AM, suse kid wrote:
>
> SOLUTION_FOUND

congrats! did you figure it out by trial and error, or did you find
someone who know how to do what you wanted?

> Then goto
> /etc/NetworkManager/system-connections/

so, this may not always work…i say because i have no files in that
directory, named as the DSL connection or not…and, i am connected…

but i am happy it works for you…the way others need to set MTU for a
connection via ethernet remains as in my #2 in this thread…


CAVEAT: http://is.gd/bpoMD
Tried LibreOffice? Do that and help at http://is.gd/dZ9j2W
[NNTP via openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8]

I was facing this same problem in Ubuntu. A guy at ubuntuforums gave me the location of the file.
I edited it by a little trial an error.

Are you using your modem/router’s inbuilt dialer ? Because if you are there will be no such file there.

Just to find out if a file is created create a dsl connection by

right clicking on the nm applet (if you are using ifup then change it to user controlled with network manager via yast >>> Network Settings)

edit connections

DSL

Add

just enter any username & password & save it.

I think by now a file names dsl connection 1 (or similar) will be created.

On 03/31/2011 01:06 PM, suse kid wrote:
>
> find out if a file is created create a dsl connection by . . .
>

no thank you…i have a different plan: If it ain’t broke don’t fix it.

[when i installed openSUSE 11.3 (and several versions before that) it
‘saw’ my network, and used it…end of story, it was born connected to
net, i only had to configure my mail client with accounts, passwords
and etc…as far as i remember i’ve not seen or opened a “network
manager” or “network settings” since i had DSL–except as needed to
try to figure out a user problem in these or other fora…]


CAVEAT: http://is.gd/bpoMD
Tried LibreOffice? Do that and help at http://is.gd/dZ9j2W
[NNTP via openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8]