SMB Service Some IP can connect with some IP problems

Source: Internet
Author: User

Ifconfig | grep mask


inet 127.0.0.1 netmask 0xff000000
inet 192.168.1.77 netmask 0xfffffe00 broadcast 192.168.1. 255

Modify the configuration file for SMB vim/etc/samba/smb.conf

90:workgroup = MyGroup
91:server string = Samba Server Version%v
92
: NetBIOS name = MYSERVER
94
: Interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
: Hosts allow = 127. 192.168.1. 192.168.13.
97
98: Max protocol = SMB2

Configure the blue section above to the hosts allow.

Then restart the SMBD service/USR/SBIN/SMBD

See if the service is started Ps-ef | grep SMBD

View Port Netstat-tplun | grep Sbmd

Last Connection Smb://[email protected]:1445

SMB Service Some IP can connect with some IP problems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.