我有一台 CentOS 6,可以从 Windows Server 2008 挂载共享。但是,它无法从新购买的 NAS 或 Windows 11 计算机上的共享挂载共享。
如何查看CentOS机器上支持的SMB协议?
从 Windows 11 计算机安装共享时:
mount -t cifs -o username=TEST //172.17.154.188/New /mnt/ntfs
我也尝试使用vers=3.0
和指定不同的版本vers=2.0
。
和错误
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
以下是连接到 Windows 11 共享时的调试信息:
INFO: Current debug levels:
all: 256
tdb: 256
printdrivers: 256
lanman: 256
smb: 256
rpc_parse: 256
rpc_srv: 256
rpc_cli: 256
passdb: 256
sam: 256
auth: 256
winbind: 256
vfs: 256
idmap: 256
quota: 256
acls: 256
locking: 256
msdfs: 256
dmapi: 256
registry: 256
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
INFO: Current debug levels:
all: 256
tdb: 256
printdrivers: 256
lanman: 256
smb: 256
rpc_parse: 256
rpc_srv: 256
rpc_cli: 256
passdb: 256
sam: 256
auth: 256
winbind: 256
vfs: 256
idmap: 256
quota: 256
acls: 256
locking: 256
msdfs: 256
dmapi: 256
registry: 256
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = MYGROUP
doing parameter server string = Samba Server Version %v
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 50
doing parameter security = user
doing parameter passdb backend = tdbsam
doing parameter load printers = yes
doing parameter cups options = raw
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_STANDALONE
Substituting charset 'UTF-8' for LOCALE
added interface eth0 ip=fe80::921b:eff:fe63:ec14%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=172.17.154.1 bcast=172.17.154.255 netmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="N30PMDS"
Client started (version 3.6.23-12.el6).
Enter TEST's password:
s3_event: Added timed event "tevent_req_timedout": 0x7ffc77194bc0
s3_event: Added timed event "tevent_req_timedout": 0x7ffc771951b0
Running timed event "tevent_req_timedout" 0x7ffc77194bc0
s3_event: Destroying timer event 0x7ffc77194bc0 "tevent_req_timedout"
s3_event: Added timed event "tevent_req_timedout": 0x7ffc77194bc0
Connecting to 172.17.154.188 at port 445
s3_event: Added timed event "tevent_req_timedout": 0x7ffc77195a70
s3_event: Destroying timer event 0x7ffc77195a70 "tevent_req_timedout"
s3_event: Destroying timer event 0x7ffc77194bc0 "tevent_req_timedout"
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 1
TCP_KEEPCNT = 9
TCP_KEEPIDLE = 7200
TCP_KEEPINTVL = 75
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_REUSEPORT = 0
SO_SNDBUF = 19800
SO_RCVBUF = 87380
SO_SNDLOWAT = 1
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
TCP_QUICKACK = 1
session request ok
Substituting charset 'UTF-8' for LOCALE
s3_event: Added timed event "tevent_req_timedout": 0x7ffc77195a10
s3_event: Schedule immediate event "tevent_queue_immediate_trigger": 0x7ffc771924c0
s3_event: Run immediate event "tevent_queue_immediate_trigger": 0x7ffc771924c0
s3_event: Destroying timer event 0x7ffc77195a10 "tevent_req_timedout"
lang_tdb_init: /usr/lib64/samba/en_US.UTF-8.msg: No such file or directory
protocol negotiation failed: NT_STATUS_CONNECTION_RESET
答案1
您的 CentOS 客户端的 IP 地址为 172.17.154.1,并尝试连接到 IP 地址为 172.17.154.188 的服务器。
此操作失败,因为 172.17.154.188 处的系统没有响应。
它与您给我们的命令不匹配mount
,因此无法进一步诊断。