Skip to content

Instantly share code, notes, and snippets.

@rahman541
Last active October 18, 2017 10:08
Show Gist options
  • Save rahman541/bbb3b335903fe7901c80c9b21eb66fa0 to your computer and use it in GitHub Desktop.
Save rahman541/bbb3b335903fe7901c80c9b21eb66fa0 to your computer and use it in GitHub Desktop.
MTU Problem. Cant open/connect some website.

MTU Problem. Cant open/connect some website.

Per RFC 1191 leavingcisco.com, a router that returns an ICMP message which indicates "fragmentation needed and DF set" should include the MTU of that next-hop network in the low-order 16 bits of the ICMP additional header field that is labeled "unused" in the ICMP specification RFC 792 leavingcisco.com.

Determining best MTU

Windows:

ping www.google.com -f -l 1472

Linux

ping -M do -s 1428 google.com

If return a reply, then it best MTU set

Set MTU in linux

ifconfig eth0 mtu 1454

REF: http://unix.stackexchange.com/questions/4261/cant-access-select-https-sites-on-linux-over-pppoe

Test

ssh -Tv [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment