Pppoeconf: differenze tra le versioni

Riga 99: Riga 99:
Se come output si ottiene quanto segue:
Se come output si ottiene quanto segue:
<pre>
<pre>
PING www.google.com (216.58.212.68) 1456('''1484''') bytes of data.
PING www.google.com (216.58.212.68) 1456(1484) bytes of data.
72 bytes from mil01s24-in-f68.1e100.net (216.58.212.68): icmp_seq=1 ttl=55 (truncated)
72 bytes from mil01s24-in-f68.1e100.net (216.58.212.68): icmp_seq=1 ttl=55 (truncated)
72 bytes from mil01s24-in-f68.1e100.net (216.58.212.68): icmp_seq=2 ttl=55 (truncated)
72 bytes from mil01s24-in-f68.1e100.net (216.58.212.68): icmp_seq=2 ttl=55 (truncated)
Riga 119: Riga 119:
</pre>
</pre>
A questo punto si è certi che l'ultimo valore che non ha prodotto errori e anche il valore massimo ammissibile (nel succitato esempio è 1456, visto che 1457 è il primo valore che produce un errore).
A questo punto si è certi che l'ultimo valore che non ha prodotto errori e anche il valore massimo ammissibile (nel succitato esempio è 1456, visto che 1457 è il primo valore che produce un errore).
Come ultima nota si evidenzia il fatto che l'output del comando ping cambia leggermente tra il caso in cui il modem-router sia in modalità PPPoE o RFC 1483/2684, in particolare cambia quello relativo al caso di insuccesso.
Il comando <code>ping www.google.com -c5 -s1464</code> resituisce nel caso PPPoE:
<pre>
PING www.google.com (149.3.176.53) 1464(1492) bytes of data.
1472 bytes from 149.3.176.53 (149.3.176.53): icmp_seq=1 ttl=57 time=36.8 ms
1472 bytes from 149.3.176.53 (149.3.176.53): icmp_seq=2 ttl=57 time=36.3 ms
1472 bytes from 149.3.176.53 (149.3.176.53): icmp_seq=3 ttl=57 time=35.6 ms
1472 bytes from 149.3.176.53 (149.3.176.53): icmp_seq=4 ttl=57 time=36.2 ms
1472 bytes from 149.3.176.53 (149.3.176.53): icmp_seq=5 ttl=57 time=38.8 ms
--- www.google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 35.699/36.792/38.893/1.115 ms
</pre>
Cioè successo.
Il comando <code>ping www.google.com -c5 -s1465</code> resituisce invece:
<pre>
PING www.google.com (149.3.176.22) 1465(1493) bytes of data.
From gateway (192.168.1.254) icmp_seq=1 Frag needed and DF set (mtu = 1492)
1473 bytes from 149.3.176.22 (149.3.176.22): icmp_seq=2 ttl=57 time=36.7 ms
1473 bytes from 149.3.176.22 (149.3.176.22): icmp_seq=3 ttl=57 time=39.9 ms
1473 bytes from 149.3.176.22 (149.3.176.22): icmp_seq=4 ttl=57 time=36.2 ms
1473 bytes from 149.3.176.22 (149.3.176.22): icmp_seq=5 ttl=57 time=36.1 ms
--- www.google.com ping statistics ---
5 packets transmitted, 4 received, +1 errors, 20% packet loss, time 4003ms
rtt min/avg/max/mdev = 36.189/37.285/39.947/1.569 ms
</pre>
Cioè fallimento.


== Approfondimenti ==
== Approfondimenti ==
2 853

contributi