We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a33398 commit b4872d4Copy full SHA for b4872d4
lisa/tools/ip.py
@@ -220,6 +220,9 @@ def is_valid_mtu(self, value: Optional[int] = None) -> bool:
220
return False
221
try:
222
mtu = int(value)
223
+ # typical MTU values are between 576 and 9000
224
+ # 576 is the minimum possible MTU for IPv4 and 1280 for IPv6
225
+ # 9000 is a common value for jumbo frames on Ethernet networks
226
return 576 <= mtu <= 9000
227
except ValueError:
228
raise LisaException("MTU value is not an integer")
0 commit comments