Koozali.org: home of the SME Server

mtu eth0 eth1 versus ppp0 ???

toyman

mtu eth0 eth1 versus ppp0 ???
« on: November 21, 2003, 09:41:02 PM »
Hello,
I have sme 5.6 running on aDSL internet.

My local computer has mtu 1492 (windo$e xp)

sme 5.6 server (ifconfig)
eth0      MTU:1500  Metric:1
eth1      MTU:1500  Metric:1
lo        MTU:16436  Metric:1
ppp0      MTU:1492  Metric:1

If I'm on the sme console and set eth0 and eth1 to mtu 1492 I have better connection speed on my local machine

commands:
- ifconfig eth0 mtu 1492
- ifconfig eth1 mtu 1492

HOW CAN I CHANGE PERMANENTLY THE MTU 1492 TO ETH0 AND ETH1 ? WHAT SCRIPT I HAVE TO EDIT AND WHERE TO PASTE THE COMMANDS ? WHY SME DOESN'T CHANGE THE MTU OF THE ETHx AUTOMATICALLY WHEN CONNECTING BY DSL ?

ANY HELP HERE ? THANK YOU

toyman

Paul

Re: mtu eth0 eth1 versus ppp0 ???
« Reply #1 on: November 23, 2003, 03:28:44 AM »
You could do this with a custom template.  Here is quick lesson on custom templates.  You should probably read the section on custom templates first at http://www.e-smith.org/custom/

Create the following file using pico:
# pico /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth0/10mtuset

Place the following line in it and save:

MTU=1492

Do the same for eth1:

# pico /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1/10mtuset

Expand the templates:
/sbin/e-smith/expand-template /etc/sysconfig/network-scripts/ifcfg-eth0
/sbin/e-smith/expand-template /etc/sysconfig/network-scripts/ifcfg-eth1

Restart network:
/etc/rc.d/rc7.d/S10network restart

Good Luck,

Paul

Paul

Re: mtu eth0 eth1 versus ppp0 ???
« Reply #2 on: November 23, 2003, 03:30:16 AM »
You may have to re-start network several times or even re-boot for this to take effect.  I had to re-boot to get mine back to normal.

Sandra

Re: mtu eth0 eth1 versus ppp0 ???
« Reply #3 on: November 24, 2003, 03:25:08 AM »
> WHY SME DOESN'T CHANGE THE MTU OF THE ETHx AUTOMATICALLY WHEN CONNECTING BY DSL ?

Because it doesn't need to. The MTU size on the internal interfaces is configured for normal LAN traffic. Your Windows XP machine is at fault. Change the MTU in Windows to 1500.