Koozali.org: home of the SME Server

MTU Settings

Dom

MTU Settings
« on: June 06, 2002, 11:13:30 PM »
How do I change the MTU settings on my network card.  Would I do this on the external nic or the internal.  What is the default that the SME box sets this at.  I am using ADSL.  
I know the max. for DSL is 1492.

Please Help,

Dom.

Bill Talcott

Re: MTU Settings
« Reply #1 on: June 07, 2002, 12:32:31 AM »
Max MTU size depends on your ISP's settings. You can find your max MTU by pinging your ISP with different size packets.

First you'll want to raise your MTU to something super high, so you know your settings aren't limiting it. According to http://www.linuxnewbie.org/nhf/intel/modems/modemtweak.html you can do that with "ifconfig eth1 mtu 5000". Just "ifconfig" will tell you which interface is which, and the current MTU.

Then use "ping -s #### www.isp.net". That will send a packet of #### bytes to your ISP if it's not too big. You want to keep trying that until you find the biggest packet you can send to your ISP. There are 28 bytes of overhead, so the biggest ping you can send with a MTU of 1500 will be 1472. You want to keep trying bigger pings until you find the biggest you can send. If it maxes out at 1972, then you know that your ISP uses an MTU of 2000.

You want to set your MTU to the same thing so the packets don't have to be resized. (Like if you packed something in size 5 boxes, then the next guy had to break up your size 5 boxes and repack the contents in size 6 boxes to ship out.) Like the first step, you can set the new MTU with "ifconfig eth1 mtu 2000". I'm a Linux newbie though, so I don't know if that's a permanent change or if you'd have to edit something else...

Bob King

Re: MTU Settings
« Reply #2 on: December 26, 2002, 03:45:16 AM »
This doesn't seem to work on SME 5.1.2

[root@mabit01 /root]# ifconfig eth1 mtu 5000
SIOCSIFMTU: Invalid argument
Usage:
  ifconfig [-a] [-i] [-v] [-s] [[]
]
  [add
[/]]
  [del
[/]]
  [[-]broadcast [
]]  [[-]pointopoint [
]]
  [netmask
]  [dstaddr
]  [tunnel
]
  [outfill ] [keepalive ]
  [hw
]  [metric ]  [mtu ]
  [[-]trailers]  [[-]arp]  [[-]allmulti]
  [multicast]  [[-]promisc]
  [mem_start ]  [io_addr ]  [irq ]  [media ]
  [txqueuelen ]
  [[-]dynamic]
  [up|down] ...

  =Hardware Type.
  List of possible hardware types:
    loop (Local Loopback) slip (Serial Line IP) cslip (VJ Serial Line IP)
    slip6 (6-bit Serial Line IP) cslip6 (VJ 6-bit Serial Line IP) adaptive (Adaptive Serial Line IP)
    strip (Metricom Starmode IP) ash (Ash) ether (Ethernet)
    tr (16/4 Mbps Token Ring) tr (16/4 Mbps Token Ring (New)) ax25 (AMPR AX.25)
    netrom (AMPR NET/ROM) rose (AMPR ROSE) tunnel (IPIP Tunnel)
    ppp (Point-to-Point Protocol) hdlc ((Cisco)-HDLC) lapb (LAPB)
    arcnet (ARCnet) dlci (Frame Relay DLCI) frad (Frame Relay Access Device)
    sit (IPv6-in-IPv4) fddi (Fiber Distributed Data Interface) hippi (HIPPI)
    irda (IrLAP) ec (Econet) x25 (generic X.25)
  =Address family. Default: inet
  List of possible address families:
    unix (UNIX Domain) inet (DARPA Internet) inet6 (IPv6)
    ax25 (AMPR AX.25) netrom (AMPR NET/ROM) rose (AMPR ROSE)
    ipx (Novell IPX) ddp (Appletalk DDP) ec (Econet)
    ash (Ash) x25 (CCITT X.25)
[root@mabit01 /root]#