cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
47082
Views
28
Helpful
6
Replies

Changing MTU on Cisco 1841 Router

johnlloyd_13
Level 9
Level 9

hi all,

a client was having some email issue and was requested to change the 1841's LAN and WAN interface MTU to 1400 bytes. i've used 'mtu' command but was rejected and got an error like to one attached. so i used 'ip mtu' instead to make the change.

could someone advise what's the difference between the 2 commands and if this would achieve the said change. i've checked using the show interface it's still showing MTU of 1500 bytes. thanks in advance!

6 Replies 6

ajay chauhan
Level 7
Level 7

MTU is the Maximum Transmission Unit of general frames entering/exiting

the interface.

IP MTU is the MTU for IP packets entering/exiting the interface.

The difference is there because of the different features you can add

(ie. run IPX etc.)

If you have MTU-problems, try setting "ip tcp adjust-mss 536" on your

inside interface... you could always adjust to a bigger value.. use a

ping with different sizes to see which size gets through..

If you use the microsoft-ping, remember that the "-l size" parameter

(-s for unix-version) is the payload of the ICMP-packets, so you should

subtract 28 bytes (20 bytes IP header + 8 bytes ICMP header) from the

total.. If you ping with a size of 1472, this would equal a IP-packet

with MTU of 1500.

The MSS is the Maximum Segment Size, ie the data payload of

TCP-packets.. this should be (normally in a ethernet-environment) 1500

- 20 bytes IP header - 20 bytes TCP header = 1460 bytes. The minimum IP

MTU which must be supported on the 'net is 576 bytes, which gives an

MSS of 536.


Hope this help.

ty

thanks for your inputs! so which one is would meet the this requirement? ip mtu or ip tcp adjust-mss command?

Router(config-if)#ip tcp ad

Router(config-if)#ip tcp adjust-mss ?

  <500-1460>  Maximum segment size in bytes

Router(config-if)#ip tcp adjust-mss 1400

SunilKhanna
Level 1
Level 1

I agree to Ajay. Here is the command reference link, thought might be useful.

http://www.cisco.com/en/US/docs/ios/12_2/ipaddr/command/reference/1rfip2.html#wp1081151

Regards,

Sunil

Regards, Sunil Khanna

tcp adjust-mss 1360  << For LAN

set ip mtu 1400  <<< For WAN

TY

tcp adjust-mss --> is at layet 4

set ip mtu --> is setting the fragment size.

Regards, Sunil Khanna

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer

The  Author of this posting offers the information contained within this  posting without consideration and with the reader's understanding that  there's no implied or expressed suitability or fitness for any purpose.  Information provided is for informational purposes only and should not  be construed as rendering professional advice of any kind. Usage of this  posting's information is solely at reader's own risk.

Liability Disclaimer

In  no event shall Author be liable for any damages whatsoever (including,  without limitation, damages for loss of use, data or profit) arising out  of the use or inability to use the posting's information even if Author  has been advised of the possibility of such damage.

Posting

Normally, you shouldn't need to modify both LAN and WAN interfaces; often just the WAN (or tunnel) interface needs the configuration change.

The difference between the two commands, MTU should correspond to the interface's physical capabilities, IP MTU impacts just IP packets.  Normally both are equal, but IP MTU might be set when something on an interface is going to reduce the size available to IP such as tunneling and/or PPoE.  In such cases, you would configure the IP MTU to the reduced space.  For example, if using a GRE tunnel, you'll lose 24 bytes to GRE, so if the MTU is 1500 you could set the IP MTU to 1476 (on the tunnel interface).

PS:

tcp adjust-mss is normally set to 40 bytes less than IP MTU.  It would be set where you set IP MTU.  It only affects TCP connection setup.

PPS:

Before reducing IP MTU to 1400, I would first suggest trying to determine why there's an email issue. If it is related to MTU, and if you're not using tunnels, it's often worthwhile to identify why.  Is this PPoE?  Might there be mis-configured MPLS by the Service Provider?  (I've seen a Service Provider "forget" to properly adjust for MPLS tag.)

Review Cisco Networking products for a $25 gift card