Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MTU Size adjustment

Status
Not open for further replies.

warmongr

MIS
Mar 17, 1999
214
US
I have a 3com 3c996 SX card and a requirement to adjust the MTU size down below 1500. I can do this manually with ifconfig but was wondering if there was a modules.conf file entry with an alias that could be added to sustain a reboot. Any ideas would be appreciated.

Natr (Warmongr) Brazell
 
Thanks,

We modified the rc.local file however that is not very elegant and is usually considered last ditch effort. Can you provide an example of what would go in the network init file to adjust the MTU?

War.
 
Probably the same commands, if no ways are provided by your distro.
Debian's /etc/network/interfaces would support such, but it all ends in the same, an ifconfig exec with mtu args

. Mac for productivity
.. Linux for developement
... Windows for solitaire
 
Your distro will determine how you modify the interface's configuration file. Debian, as xmb said, has the mtu setting available in /etc/network/interfaces

redhat tends to have the eth0.cfg file in
/etc/sysconfig/network-scripts
where you might be able to specify the MTU as a parameter

I don't personally find the setting via rc.local to be inelegant but that might be a stylistic difference of opinion.

Internet Directory
 
Thanks for all the input. I figured as much but thought I would ask anyway. Using rc.local to force parameters on the environment seems a little brute force to me given that there is a config file for nearly everything anymore. Not like the old days where the rc.local was one for the first places you went.

Again,
My appreciation. I'll play around with it and see what I find out.

N
 
warmongr, you still don't mention the distro, but on redhat/fedora, if you read the /etc/sysconfig/network-scripts/ifup script you'll see that setting MTU in /etc/sysconfig/network-scripts/ifcfg-eth0 will set the MTU for that interface.
 
man sysctl.
There is no standard mechanism to manipulate low level
sets like this for 'linux' as a whole..rc.local/boot.local is as good a choice as any.
 
eric,

Thanks for the help. I tried this out on Friday and it worked fine. I appreciate it. To all. Tek-Tips is still the place. I owe some posts here so don't let me off the hook.

N
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top