Linux Ubuntu (or Windows) Can Not Connect to Facebook, Youtube etc [SOLVED by MTU]

Hardware configuration: PC –> wired ethernet/wifi –> DSL –> ISP (Telkom speedy)

Ethernet MTU (Automatic/default): 1500

Windows has no problem in facebook connection. It turns out that Windows’ MTU is NOT 1500, but 1464+28 = 1492. Hence setting Linux’s MTU to 1492 solve the problem.
C:\Users\surya>ping -f -l 1400 http://www.google.com

Pinging http://www.l.google.com [74.125.236.81] with 1400 bytes of data:
Reply from 74.125.236.81: bytes=1400 time=135ms TTL=53
Reply from 74.125.236.81: bytes=1400 time=190ms TTL=53
Reply from 74.125.236.81: bytes=1400 time=164ms TTL=53

Ping statistics for 74.125.236.81:
Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 135ms, Maximum = 190ms, Average = 163ms
Control-C
^C
C:\Users\surya>ping -f -l 1492 http://www.google.com

Pinging http://www.l.google.com [74.125.236.81] with 1492 bytes of data:
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.

Ping statistics for 74.125.236.81:
Packets: Sent = 3, Received = 0, Lost = 3 (100% loss),
Control-C
^C
C:\Users\surya>ping -f -l 1490 http://www.google.com

Pinging http://www.l.google.com [74.125.236.81] with 1490 bytes of data:
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.

Ping statistics for 74.125.236.81:
Packets: Sent = 2, Received = 0, Lost = 2 (100% loss),
Control-C
^C
C:\Users\surya>ping -f -l 1464 http://www.google.com

Pinging http://www.l.google.com [74.125.236.81] with 1464 bytes of data:
Reply from 74.125.236.81: bytes=1464 time=139ms TTL=53
Reply from 74.125.236.81: bytes=1464 time=169ms TTL=53
Reply from 74.125.236.81: bytes=1464 time=138ms TTL=53
Reply from 74.125.236.81: bytes=1464 time=139ms TTL=53

Ping statistics for 74.125.236.81:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 138ms, Maximum = 169ms, Average = 146ms

C:\Users\surya>ping -f -l 1465 http://www.google.com

Pinging http://www.l.google.com [74.125.236.81] with 1465 bytes of data:
Request timed out.

Ping statistics for 74.125.236.81:
Packets: Sent = 1, Received = 0, Lost = 1 (100% loss),
Control-C
^C
C:\Users\surya>ping -f -l 1464 http://www.google.com

Pinging http://www.l.google.com [74.125.236.81] with 1464 bytes of data:
Reply from 74.125.236.81: bytes=1464 time=136ms TTL=53
Reply from 74.125.236.81: bytes=1464 time=136ms TTL=53
Reply from 74.125.236.81: bytes=1464 time=135ms TTL=53

Ping statistics for 74.125.236.81:
Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 135ms, Maximum = 136ms, Average = 135ms
Control-C

c:\>netsh interface ipv4 show subinterfaces

c:\>netsh interface ipv4 set subinterface "Local Area Connection" mtu=1492 store=persistent

Network GUI Ubuntu



Advertisements
Posted in Linux, Windows

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: