我正在嘗試使用 SMB 設定 CentOS 7 檔案伺服器,但遇到了一些障礙。我可以從我的 Windows 10 機器上很好地 ping 伺服器:
Pinging green-lightning [192.168.1.191] with 32 bytes of data:
Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
Reply from 192.168.1.191: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.1.191:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
但是當我嘗試在文件資源管理器中存取伺服器時,出現以下錯誤:
Windows can't find '\\green-lightning'. Check the spelling and try again.
我嘗試連接到 IP 位址,但遇到了相同的錯誤。我還嘗試將我的用戶名放入伺服器防火牆的公共區域,然後重新啟動 SMB 服務。
使用 TCPing 檢查伺服器上的連接埠 445 是否打開,結果顯示:
Probing 192.168.1.191:445/tcp - Port is open - time=8.373ms
Probing 192.168.1.191:445/tcp - Port is open - time=8.301ms
Probing 192.168.1.191:445/tcp - Port is open - time=7.904ms
Probing 192.168.1.191:445/tcp - Port is open - time=7.636ms
Ping statistics for 192.168.1.191:445
4 probes sent.
4 successful, 0 failed. (0.00% fail)
Approximate trip times in milli-seconds:
Minimum = 7.636ms, Maximum = 8.373ms, Average = 8.054ms
TCP 連接埠 139 也已開啟。
我顯然在這裡做錯了什麼;它是什麼?
答案1
只是檢查;你在做SMBv1嗎? Windows 10 SMBv1 已停用 - 因此請嘗試從「開啟或關閉 Windows 功能」->「SMB 1.0/CIFS 檔案共用支援」啟用它