Unix Technical Forum

MTU and ifconfig

This is a discussion on MTU and ifconfig within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hello everyone, I tried to change the MTU size of my eht0 to 1480 using ifconfig: "ifconfig eht0 mut ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 04:39 PM
Roberto Gallo
 
Posts: n/a
Default MTU and ifconfig


Hello everyone,

I tried to change the MTU size of my eht0 to 1480 using ifconfig:
"ifconfig eht0 mut 1480". However every reboot I perform the old 1500 number
comes back. How can I save the changes made using ifconfig?
My second question is, after typing "ifconfig eht0 down" then "ifconfig
eth0 up", I cannot even ping any address. Do I need to restart any other
services?

Thank you,
Roberto.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 04:40 PM
Karl-Heinz Herrmann
 
Posts: n/a
Default Re: MTU and ifconfig


Hi,


"Roberto Gallo" <robertogallofilho@hotmail.com> writes:
> I tried to change the MTU size of my eht0 to 1480 using ifconfig:
> "ifconfig eht0 mut 1480". However every reboot I perform the old 1500 number

^^mtu?


> comes back. How can I save the changes made using ifconfig?


No. You put the ifconfig in the boot process. As this depends on your
distribution you'll have to tell us which if you need help. In SuSE
up to 7.X you could simply put the additional "mtu 1480" in the
interface config section using yast or editing /etc/rc.config. Later
SuSE replaced the rc.config by a set of files probably in
/etc/... too. /etc/init.d/boot.local might be another choice to simply
put the explicit ifconfig.

> My second question is, after typing "ifconfig eht0 down" then "ifconfig
> eth0 up", I cannot even ping any address. Do I need to restart any
> other services?


Well ifconfig eth0 down will also take down all routing entries for
eth0. On "up" ifconfig will set only the route for the specified
subnet of eth0 (netmask in ifconfig). You should reach whatever is on
the subnet eth0 is handling. If you want to ping anything "outside"
you'll have to redefine the default route -- see "man route".


K.-H.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:44 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com