- server1端操作(客户端)
1)yum install samba-client
2)smbclient -L //ip
3)smbclient //ip/sharename
[[email protected] root]$ smbclient -L //172.25.254.2
Enter guest‘s password:
Connection to 172.25.254.2 succes
[[email protected] root]$ smbclient //ip/sharename
Enter guest‘s password:
- server2端操作(服务端)
yum install cifs-utils -y
mount //ip/sharename /mountpoint -o username=guest
vim /etc/fstab
//ip/sharename /mountpoint cifsdefaults,username=guest 0 0
mount -a
[[email protected] ~]# mkdir /mountpoint
[[email protected] ~]# mount //172.25.254.2/sharename /mountpoint -o username=guest
Password for [email protected]//172.25.254.2/sharename: ******
Unable to find suitable address.
[[email protected] ~]# vim /etc/fstab
@//172.25.254.2/sharename /mountpoint cifs defaults,username=guest 0 [email protected]
[[email protected] ~]# mount -a
Password for [email protected]//172.25.254.2/sharename: ******
Unable to find suitable address.