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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting MTU size in Linux OS

Status
Not open for further replies.

beuism

MIS
Dec 22, 2003
1
US
The default MTU size is 1500 for Linux OS, but our PIX firewall only handles MTUs up to 1494. We are experiencing lag up to 10 times worse for certain Mysql traffic when going through the PIX. Is there a way to permanently set the MTU to a lower value? Thanks.
 
Append

LINK_OPTIONS="mtu xxxx"

to /etc/sysconfig/networking/devices/ifcfg-ethX

Of course, replace the xxxx with the desired MTU. Keep the quotes around mtu xxxx. Replace the ethX in the name of the interface, so it would be ifcfg-eth0 for most single ethernet card systems.

Also, the file moves a bit between distributions, so it may be in /etc/sysconfig/network or otherwise, but the naming is generally consistent.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top