2010年4月9日 星期五

使用 ping 指令,出現錯誤訊息:bad option specified

今天在使用 PING 127.0.0.1 或 any IP address 都出現「bad option specified」的錯誤訊息


一般來說會出現這個問題是因為相關網路設備或軟體的 TTL 設定值錯誤所造成的,被設定成 > 255,此時是否針對 ping 的對象(目的地)進行檢查,以上面的例子來說,是 ping 本機,因此就從本機的 Windows 設定著手。

Windows 95/98/Me
找到:HKEY_LOCAL_MACHINESystemCurrentControlSetServicesVxDMSTCP
修改:DefaultTTL
資料型態:REG_SZ (字串)(1-255 十進位,預設值:64)

Windows 2000/XP/2003
找到:HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters
修改:DefaultTTL
資料型態:REG_DWORD (1-255 十進位,預設值:128)

沒有留言:

張貼留言

How to use simple speedtest in RaspberryPi CLI

  pi@ChunchaiRPI2:/tmp $  wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py --2023-06-26 10:4...