Abstract: there are usually two scenarios for wireless network sharing in win7: the first is that your machine's wired network card is connected to the Internet; the second is that your machine's wireless network card is connected to the Internet.
Main content:
1. wired network card connected to the network
2. Connect the wireless network card to the network
3. Note
1. Connect a wired network card to the network
In the first case, we can use control panel, network and Internet, network and sharing center,
Manage wirless networks add
Create an Ad Hoc Network
Next
Next
In this way, a temporary wireless connection is created.
If you have never shared a network, the figure above does not show "to share files, open network and sharing center in Control Panel and turn on file sharing", but prompts you to share the network, in this case, you only need to click share. However, since I have previously shared networks, it is very easy to set them in the network sharing center.
Change adapter settings, right-click "Local Connection", and choose Properties> sharing.
Then select "allow other network users to connect through this computer's Internet connection" "OK. Next, other WiFi devices can access the Internet through this connection.
2. Connect the wireless network card to the network
The first case is to share the wired network with the wireless network, but the second case is not. First, the host itself accesses the Internet through a wireless network. How can we share it with other wireless networks? (of course, it is okay to share it with a wired network, but not today's content )? This is due to "Microsoft Virtual WiFi miniport adapter. A virtual Wi-Fi adapter is integrated in win7. In other words, although you have only one physical wireless network adapter on your machine, a virtual wireless network adapter can be created on this basis. In this way, you only need to share your "wireless network connection" with a virtual connection.
Alt + R cmd OK enter the following command in the command line
Netsh WLAN set hostednetwork mode = allow SSID = "kenshincuiwiap" Key = kenshincui
If mode is set to allow, virtual WiFi adapter is allowed.
The SSID is the name of the wireless network.
Key is the password of the wireless network.
After executing this command, you will see an additional wireless connection "wireless network connection 2" in network connections.
Select "wireless network connection", that is, your physical network connection. Right click Properties> sharing
Then select "allow other network users to connect through this computer's Internet connection" in the figure ".
Because I have already shared this network to "wireless network connection 2", "wireless network connection 2" has been selected in the "home network connection" option ", if it is not shared before and there are other networks on your machine, it will provide you with the connection you want to share.
After the sharing is complete, run the following command to start the virtual WiFi adapter.
Netsh WLAN start hostednetwork
The connection is started.
Now you can view the status of "wireless network connection 2"
OK, so that other WiFi devices can find the connection and use the previous password to establish a wireless connection.
3. Note
1. Wireless sharing in any situation must be ensured.Internet Connection Sharing (ICS)The service is started.
2. in the second case, it is best to disable other network connections when setting the sharing. Only "wireless network connection" and "wireless network connection 2" are retained ", in this case, the system will automatically give "wireless network connection 2" information such as the IP address. If other network connections are not disabled, the allocated IP address segment may conflict with existing connections and the sharing will fail.
| |
This Work is licensed using the "knowledge sharing signature" 2.5 mainland China license agreement. You are welcome to reprint, interpret, or use it for commercial purposes. However, please indicate that the record is from Cui jiangtao (kenshincui) and contains related links. |