差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン | |||
linux:fedora:fedora_31_samba_protocol_negotiation_failed [2024/02/04 13:34] – 削除 - 外部編集 (Unknown date) 非ログインユーザー | linux:fedora:fedora_31_samba_protocol_negotiation_failed [2024/02/04 13:34] (現在) – ↷ linux:fedora_31_samba_protocol_negotiation_failed から linux:fedora:fedora_31_samba_protocol_negotiation_failed へページを移動しました。 ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== Fedora 31 で protocol negotiation failed が発生する ====== | ||
+ | Fedora 31 で Samba のファイル共有にアクセスできない場合は以下の確認を行ってみる。\\ | ||
+ | |||
+ | ===== smbclient コマンドによる確認 ===== | ||
+ | < | ||
+ | $ smbclient -L 192.168.1.254 -U% -m SMB2 | ||
+ | protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED | ||
+ | </ | ||
+ | |||
+ | ===== testparm コマンドによる確認(クライアント側 Fedora 31) ===== | ||
+ | < | ||
+ | $ testparm -v | grep protocol | ||
+ | Load smb config files from / | ||
+ | Loaded services file OK. | ||
+ | Server role: ROLE_STANDALONE | ||
+ | |||
+ | Press enter to see a dump of your service definitions | ||
+ | |||
+ | client ipc max protocol = default | ||
+ | client ipc min protocol = default | ||
+ | client max protocol = default | ||
+ | client min protocol = SMB2_02 | ||
+ | server max protocol = SMB3 | ||
+ | server min protocol = SMB2_02 | ||
+ | </ | ||
+ | |||
+ | ===== クライアント側の Fedora 31 の設定変更 ===== | ||
+ | Samba の設定に以下(**client min protocol = NT1**)を追記する。\\ | ||
+ | < | ||
+ | $ sudo vi / | ||
+ | </ | ||
+ | <file / | ||
+ | [global] | ||
+ | |||
+ | ; max protocol = SMB2 | ||
+ | client min protocol = NT1 | ||
+ | |||
+ | </ | ||
+ | < | ||
+ | $ testparm -v | grep protocol | ||
+ | Load smb config files from / | ||
+ | Loaded services file OK. | ||
+ | Server role: ROLE_STANDALONE | ||
+ | |||
+ | Press enter to see a dump of your service definitions | ||
+ | |||
+ | client ipc max protocol = default | ||
+ | client ipc min protocol = default | ||
+ | client max protocol = default | ||
+ | client min protocol = NT1 | ||
+ | server max protocol = SMB3 | ||
+ | server min protocol = SMB2_02 | ||
+ | </ | ||
+ | |||
+ | ===== 再度 smbclient コマンドによる確認 ===== | ||
+ | 共有が確認できれば、アクセスエラーは回避できている。\\ | ||
+ | < | ||
+ | $ smbclient -L 192.168.1.254 -U% -m SMB2 | ||
+ | |||
+ | Sharename | ||
+ | --------- | ||
+ | IPC$ IPC IPC Service (GL-AR750S-d80) | ||
+ | sd128gb | ||
+ | Reconnecting with SMB1 for workgroup listing. | ||
+ | |||
+ | Server | ||
+ | --------- | ||
+ | GL-AR750S | ||
+ | |||
+ | Workgroup | ||
+ | --------- | ||
+ | MONSTERS-G | ||
+ | </ | ||
+ | |||
+ | ===== 参考文献 ===== | ||
+ | [[https:// | ||