You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-network/how-to-virtual-machine-mtu.md
+62-1Lines changed: 62 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,11 +182,27 @@ Use the following steps to change the MTU size on a Linux virtual machine:
182
182
183
183
1. Verify the MTU size on the network interface using `PING`. For Linux, use the -M, -s, and -c flags. The -M option instructs ping to NOT fragment, -s sets the packet size, and -c sets the number of pings to send. To determine the packet size, subtract 28 from the MTU setting of 3900.
184
184
185
-
```bash
185
+
```bash
186
186
ping 10.0.0.5 -c 10 -M do -s 3872
187
187
```
188
188
189
189
```output
190
+
azureuser@vm-1:~/GetPathMTU$ ping 10.0.0.5 -c 10 -M do -s 3872
191
+
PING 10.0.0.5 (10.0.0.5) 3872(3900) bytes of data.
192
+
3880 bytes from 10.0.0.5: icmp_seq=1 ttl=64 time=3.70 ms
193
+
3880 bytes from 10.0.0.5: icmp_seq=2 ttl=64 time=1.08 ms
194
+
3880 bytes from 10.0.0.5: icmp_seq=3 ttl=64 time=1.51 ms
195
+
3880 bytes from 10.0.0.5: icmp_seq=4 ttl=64 time=1.25 ms
196
+
3880 bytes from 10.0.0.5: icmp_seq=5 ttl=64 time=1.29 ms
197
+
3880 bytes from 10.0.0.5: icmp_seq=6 ttl=64 time=1.05 ms
198
+
3880 bytes from 10.0.0.5: icmp_seq=7 ttl=64 time=5.67 ms
199
+
3880 bytes from 10.0.0.5: icmp_seq=8 ttl=64 time=1.92 ms
200
+
3880 bytes from 10.0.0.5: icmp_seq=9 ttl=64 time=2.72 ms
201
+
3880 bytes from 10.0.0.5: icmp_seq=10 ttl=64 time=1.20 ms
202
+
203
+
--- 10.0.0.5 ping statistics ---
204
+
10 packets transmitted, 10 received, 0% packet loss, time 9014ms
205
+
rtt min/avg/max/mdev = 1.051/2.138/5.666/1.426 ms
190
206
```
191
207
192
208
1. Sign-in to **vm-2**.
@@ -208,6 +224,51 @@ Use the following steps to change the MTU size on a Linux virtual machine:
208
224
3900
209
225
```
210
226
227
+
1. Verify the MTU size on the network interface using `PING`. For Linux, use the -M, -s, and -c flags. The -M option instructs ping to NOT fragment, -s sets the packet size, and -c sets the number of pings to send. To determine the packet size, subtract 28 from the MTU setting of 3900.
228
+
229
+
```bash
230
+
ping 10.0.0.5 -c 10 -M do -s 3872
231
+
```
232
+
233
+
```output
234
+
azureuser@vm-1:~/GetPathMTU$ ping 10.0.0.5 -c 10 -M do -s 3872
235
+
PING 10.0.0.5 (10.0.0.5) 3872(3900) bytes of data.
236
+
3880 bytes from 10.0.0.5: icmp_seq=1 ttl=64 time=3.70 ms
237
+
3880 bytes from 10.0.0.5: icmp_seq=2 ttl=64 time=1.08 ms
238
+
3880 bytes from 10.0.0.5: icmp_seq=3 ttl=64 time=1.51 ms
239
+
3880 bytes from 10.0.0.5: icmp_seq=4 ttl=64 time=1.25 ms
240
+
3880 bytes from 10.0.0.5: icmp_seq=5 ttl=64 time=1.29 ms
241
+
3880 bytes from 10.0.0.5: icmp_seq=6 ttl=64 time=1.05 ms
242
+
3880 bytes from 10.0.0.5: icmp_seq=7 ttl=64 time=5.67 ms
243
+
3880 bytes from 10.0.0.5: icmp_seq=8 ttl=64 time=1.92 ms
244
+
3880 bytes from 10.0.0.5: icmp_seq=9 ttl=64 time=2.72 ms
245
+
3880 bytes from 10.0.0.5: icmp_seq=10 ttl=64 time=1.20 ms
246
+
247
+
--- 10.0.0.5 ping statistics ---
248
+
10 packets transmitted, 10 received, 0% packet loss, time 9014ms
249
+
rtt min/avg/max/mdev = 1.051/2.138/5.666/1.426 ms
250
+
```
251
+
252
+
An indication that there is a mismatch in settings between the source and destination displays as an error message in the output. In this case, the MTU isn't set on the source network interface.
253
+
254
+
```output
255
+
azureuser@vm-1:~/GetPathMTU$ ping 10.0.0.5 -c 10 -M do -s 3872
256
+
PING 10.0.0.5 (10.0.0.5) 3872(3900) bytes of data.
0 commit comments