Article directory
1. Question raising
Mac
The convenient "airdrop" in the ecosystem must have impressed many people. However, due to the special requirements of various purposes and usage scenarios, it is difficult for us to complete the task completely only in a Mac
single Windows
scenario. In this way, Mac
the Windows
shared data will be in a certain situation. A degree of rigid need.
Of course, some people will say that there are many software for transferring files between LANs, such as LANDrop
etc., which greatly improves the efficiency of transferring files between two systems. However, in this scenario, on the one hand, there is uncertainty in the transmission speed and stability; on the other hand, such a LAN environment may not exist or may not be safe.
There are several problems after searching the relevant information on the Internet. First, the relevant articles introducing direct network connection are mainly focused on the Windows
environment. Second, some articles only focus on the purpose and the configuration is too simple and crude, which may lead to security risks during use. Third, some articles focus too much on network security, making the configuration too cumbersome.
Therefore, this article is based on the existing problems, focuses on data sharing Mac
between Windows
users, clarifies some issues that have not been discussed in the past, and provides a configuration solution suitable for actual environments that takes into account security and convenience.
2. Necessary conditions
- Hardware requirements:
First of all, two physical network cards are required.Windows
Equipment generally has two network cards, one wireless network card and one wired network card.Mac
Generally,USB Hub
a considerable number of devices needUSB Hub
to have their own network cards. - Parameter requirements:
Network cards currently on the market are generally Gigabit network cards. ConsideringUSB
the complexity of the interface standards of the equipment, Gigabit network cards can actually cope with most application scenarios. If you consider that some users may transfer video material or want a more extreme user experience, you may consider using2.5G
a network card. Mac
Network card parameters
Windows
Network card parameters
3. Parameter setting
3.1 Network card parameter setting
Connecting two computers through a network cable is the most primitive way of LAN networking. However, the two computers cannot communicate directly at this time. To be able to communicate between two computers, two conditions need to be met. First, the two computers need to establish an Physical connection, secondly, a logical connection needs to be established between the two computers. Because a direct connection has been established between the two computers through a network cable, the two computers communicate directly. At this time, you only need to configure the logical connection, that is, the IP
address and subnet mask, and there is no need to configure a gateway DNS
.
Because some network documents share data through routing or within an established LAN, the computer A
does not need to configure the gateway DNS
. The computer B
needs to set the gateway to the computer A
's IP
address, and DNS
does not need to be configured.
To establish a logical connection between two computers, you only need to set the two computers on the same network segment, that is, the IP
first three digits of the address are the same and the last digit is different. In addition, it should be noted that the focus of this tutorial is that the sharing of data Mac
between Windows
computers does not involve the sharing of the network. The connection between the two computers and the Internet is handled by separate network cards, so there is no need to modify the routing table. . Some network literature here will emphasize the configuration of the gateway, which is actually not accurate because Windwos
two gateways are not allowed to exist at the same time. If you must share the network or use it in a LAN environment, please consider using route
the command to modify the routing table information to configure dual network cards.
Windows
Network card configuration
Mac
Network card configuration
- Network connectivity test.
If the two computers canping
communicate, it means that the logical connection is successfully established. If they cannot, itping
means that the logical connection is not established. At this time, you need to check whether the network card configuration is correct or modify the firewall configuration.
ping 192.168.1.2
3.2 Create dedicated shared users
This part of the configuration has two main purposes. One is to deal with the situation where some Windwos
users Administrator
fail to share after opening the user. The other is for network security purposes. Of course, this tutorial only considers basic security configuration. Windows
After the user turns on Administrator
the user, the user will be asked to enter a password during the process of sharing data. In fact, the account may not have a password, causing the data sharing to fail. In addition, when the sharing fails, some online tutorials give The solution is to enable SMB V1.0
or enable Guest
the user or Everyone
add the user to the security group. Doing so has very large potential security risks.
Based on security considerations, this tutorial creates a new user specifically for data and performs basic configuration of user permissions.
- Create dedicated user
3.3 Configure user permissions
Windows
Use in to win + r
call "Run" and secpol.msc
open the "Local Security Policy" settings window via
- Grant the user "Access this computer from the network" permission
- Restrict this user from logging into the system
3.4 Shared parameter configuration
- Network discovery does not need to be turned on
- File and printer sharing must be turned on
- It is recommended to enable password-protected sharing to prevent unexpected situations.
4. SMB share configuration
What this tutorial shares is composed of two small-capacity solid-state drives Raid
, Windows
which is equivalent to a disk in . If you turn on "Sharing without password protection" and add it Everyone
to the security policy group according to the relevant literature in the network, there will be quite serious security risks. This tutorial adopts "Sharing with password protection" while taking into account security and convenience. ”, so you only need to consider the shared permission configuration without having to modify the security policy.
5. Effect test
Mac
ConnectWindows
shared disk- Shortcut key
command + k
to open the connection server interface and enter the addressWindows
ofIP
- Shortcut key
192.168.1.1
- speed test
6.09GB
The file transfer takes less than 1 minute, and the speed easily exceeds 100Mb/s
references
- Two computers are connected with a network cable (can the two computers communicate with each other if they are directly connected to the network cable?)
- Share files between two computers directly connected via network cable
- Mac OS X access Windows shared folders
- MAC computer connected to windows desktop
- mac configuration dual network card mac uses the internal network and external network at the same time
- The easiest way to connect two computers: direct connection
- Use SMB sharing safely and correctly under Windows 10/11
- Windows network shared files
- win10 "You cannot access this shared folder because your organization's security policy blocks unauthenticated guest access."
- Folder settings sharing, add Everyone
- Windows shared folder, set up passwordless access